Unconfigured Ad

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

    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
                      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                      by SEQadmin2


                      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                      The systematic characterization of the human proteome has
                      ...
                      07-20-2026, 11:48 AM
                    • SEQadmin2
                      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                      by SEQadmin2



                      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                      ...
                      07-09-2026, 11:10 AM
                    • SEQadmin2
                      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                      by SEQadmin2



                      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                      07-08-2026, 05:17 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 07-24-2026, 12:17 PM
                    0 responses
                    26 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-23-2026, 11:41 AM
                    0 responses
                    21 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-20-2026, 11:10 AM
                    0 responses
                    210 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-13-2026, 10:26 AM
                    0 responses
                    78 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...