Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • genefan
    Junior Member
    • Nov 2013
    • 7

    #1

    BSmooth alignment problem

    I was aligning short reads obtained from Illumina but always got an error as following:

    ###############################################
    perl bswc_bowtie2_align.pl --out=./outReadslevel/ --sam=./outputSAM/chr ./h.sapiens.bsIndex/chr ./h.sapiens.ref/chr*.fa ./SRA/sra_data.fastq
    ###############################################
    Error: <mate1s/reads> not specified

    The alignment pipeline is followed by:
    Alignment of bisulfite sequence reads and tabulation of read-level methylation measurements - BenLangmead/bsmooth-align

    Alignment of bisulfite sequence reads and tabulation of read-level methylation measurements - BenLangmead/bsmooth-align

    # sra_data.fastq is built successfully in the first step..
    Does anyone know how to solve this problem?
    Thank you in advance!!
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Originally posted by genefan View Post
    I was aligning short reads obtained from Illumina but always got an error as following:

    ###############################################
    perl bswc_bowtie2_align.pl --out=./outReadslevel/ --sam=./outputSAM/chr ./h.sapiens.bsIndex/chr ./h.sapiens.ref/chr*.fa ./SRA/sra_data.fastq
    ###############################################
    Error: <mate1s/reads> not specified

    The alignment pipeline is followed by:
    Alignment of bisulfite sequence reads and tabulation of read-level methylation measurements - BenLangmead/bsmooth-align

    Alignment of bisulfite sequence reads and tabulation of read-level methylation measurements - BenLangmead/bsmooth-align

    # sra_data.fastq is built successfully in the first step..
    Does anyone know how to solve this problem?
    Thank you in advance!!
    While I've never actually used bsmooth, I can tell you that the syntax isn't quite what you would expect. You might try:

    Code:
    perl bswc_bowtie2_align.pl --out=outReadslevel/ --sam=outputSAM/chr -- h.sapiens.bsIndex/chr -- h.sapiens.ref/chr*.fa -- -- SRA/sra_data.fastq --
    The "--" is important for the parsing. I think you need the "-- --" part near the end as well as it may otherwise assume that the fastq file is actually an option for bowtie2.
    Last edited by dpryan; 11-18-2013, 04:38 AM.

    Comment

    • genefan
      Junior Member
      • Nov 2013
      • 7

      #3
      Originally posted by dpryan View Post
      While I've never actually used bsmooth, I can tell you that the syntax isn't quite what you would expect. You might try:

      Code:
      perl bswc_bowtie2_align.pl --out=outReadslevel/ --sam=outputSAM/chr -- h.sapiens.bsIndex/chr -- h.sapiens.ref/chr*.fa -- -- SRA/sra_data.fastq --
      The "--" is important for the parsing. I think you need the "-- --" part near the end as well as it may otherwise assume that the fastq file is actually an option for bowtie2.
      Thanks a lot, the problem is solved! The "-- --" part near the end is mattered..

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Glad that fixed things. I've seen enough code from Ben Langmead to know that his stuff is rather particular about input syntax.

        Comment

        • genefan
          Junior Member
          • Nov 2013
          • 7

          #5
          Originally posted by dpryan View Post
          Glad that fixed things. I've seen enough code from Ben Langmead to know that his stuff is rather particular about input syntax.
          Yes, this is quite tricky..

          Comment

          • genefan
            Junior Member
            • Nov 2013
            • 7

            #6
            Originally posted by dpryan View Post
            Glad that fixed things. I've seen enough code from Ben Langmead to know that his stuff is rather particular about input syntax.
            One more question:
            bowtie2_bs_align.pl [options*] -- <index> -- <refs> -- <bowtie2-args> -- [<mate2s>]

            <index>: Name prefix for index files. E.g. if index is in /tmp/idx.*.watson.bt2 and /tmp/idx.*.crick.bt2, specify "/tmp/idx"..

            chr1.crick.1.bt2, chr1.crick.2.bt2,chr1.crick.3.bt2, chr1.crick.4.bt2,
            chr1.watson.3.bt2 ,chr1.watson.4.bt2, chr1.watson.rev.1.bt2, chr1.watson.rev.2.bt2
            chr1.crick.rev.1.bt2 ,chr1.crick.rev.2.bt2 ,chr1.watson.1.bt2 ,chr1.watson.2.bt2
            chr2.... and all the other chromosomes..

            How should I define the index correctly?
            if /tmp/chr is used, it gives "Index with basename does not exist"... when I use /tmp/chr*.bt2, the program works fine, but is this the right solution?
            The output is given: chrY.ev.tsv
            Is there any way to combine the bt2 files?
            Many thanks!!

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              How exactly did you create the index files? You should have only a set of index files each strand, not one for each chromosome for each strand.

              Comment

              • genefan
                Junior Member
                • Nov 2013
                • 7

                #8
                Originally posted by dpryan View Post
                How exactly did you create the index files? You should have only a set of index files each strand, not one for each chromosome for each strand.
                I used the following command:
                perl bswc_bowtie2_index.pl --name=chr --bowtie2-build=/.../bowtie2-build ./ref/*.fa
                Alignment of bisulfite sequence reads and tabulation of read-level methylation measurements - BenLangmead/bsmooth-align

                there are 24 fasta files (chr1.fa, chr2.fa....) in the ref folder..
                This will then output the above index files.

                Comment

                • GenoMax
                  Senior Member
                  • Feb 2008
                  • 7142

                  #9
                  You can "cat" the *.fa files into a single multi-fasta file and then use that single file as your "reference" for bowtie2-build. That will create one set of index files for the entire genome.

                  Comment

                  • genefan
                    Junior Member
                    • Nov 2013
                    • 7

                    #10
                    Originally posted by GenoMax View Post
                    You can "cat" the *.fa files into a single multi-fasta file and then use that single file as your "reference" for bowtie2-build. That will create one set of index files for the entire genome.
                    Thank you for the suggestion! It should work well in this way..

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                      by SEQadmin2



                      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                      ...
                      10-14-2026, 09:55 AM
                    • SEQadmin2
                      New Genomics Technologies Take Aim at Long-Standing Limits
                      by SEQadmin2


                      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                      ...
                      09-28-2026, 10:25 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, Yesterday, 11:13 AM
                    0 responses
                    16 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, Yesterday, 10:48 AM
                    0 responses
                    17 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-15-2026, 10:52 AM
                    0 responses
                    35 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-14-2026, 05:39 AM
                    0 responses
                    42 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...