Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thh32
    Member
    • Feb 2014
    • 60

    #1

    BWA with multi read files

    Hi I have never used BWA before and so was wondering if anyone knows how I can use BWA to map my reads to my reference genome. My data is as follows:

    L001_R1.fasta
    L001_R2.fasta
    L002_R1.fasta
    L002_R2.fasta
    etc
    There are 12 files in total and as you can see they are paired reads.
    So does anyone have any idea?
    Any help would be much appreciated.

    Thanks,
    Tom
  • thh32
    Member
    • Feb 2014
    • 60

    #2
    Also I have indexed my referance genomes (I have 93 genomes together in a single fasta) and been provided with 5 files : Combined_genomes_index_bwa.amb Combined_genomes_index_bwa.ann Combined_genomes_index_bwa.bwt Combined_genomes_index_bwa.pac Combined_genomes_index_bwa.sa

    How do I use these for my mapping as I want to use bwa mem as the reads length range from 40 to 140 but the manual doesnt state how to input these index files

    bwa mem [-aCHMpP] [-t nThreads] [-k minSeedLen] [-w bandWidth] [-d zDropoff] [-r seedSplitRatio] [-c maxOcc] [-A matchScore] [-B mmPenalty] [-O gapOpenPen] [-E gapExtPen] [-L clipPen] [-U unpairPen] [-R RGline] [-v verboseLevel] db.prefix reads.fq [mates.fq]

    Again, any help would be great.

    Comment

    • bruce01
      Senior Member
      • Mar 2011
      • 160

      #3
      From the manual:

      Code:
      bwa mem ref.fa read1.fq read2.fq > aln-pe.sam
      Just make sure your fasta file is in the same dir as your index files and there shouldn't be any problems.

      As to your first question, I presume the above command shows how to use PE data?

      Comment

      • mastal
        Senior Member
        • Mar 2009
        • 666

        #4
        Use the base name of the index files as 'db.prefix', so you would use
        'Combined_genomes_index_bwa' as the name of the index (and provide the complete path to the index files if necessary).

        The online manual doesn't seem to specify what to do if your reads are in more than 1 file. Try listing all the R1 files separated by commas but no spaces, followed by the R2 files, again separated by commas but no spaces.

        Code:
         L1_R1.fastq,L2_R1.fastq,L3_R1.fastq... L1_R2.fastq,L2_R2.fastq,L3_R2.fastq...
        If that doesn't work you could combine all your R1 files together and all your R2 files.

        Comment

        • thh32
          Member
          • Feb 2014
          • 60

          #5
          bruce01, I have tried your method and it just didnt work at all, no error message just a list of the commands.Will try the method you suggest mastal now.
          Last edited by thh32; 02-26-2014, 05:45 AM.

          Comment

          • thh32
            Member
            • Feb 2014
            • 60

            #6
            Right using mastal's method this error occured [E::main_mem] fail to open file ' LIST OF ALL FILES'

            It appears to be that if I leave spaces between the files it just ignores the whole thing and provides a list of the commands however if I remove the space and put commas then it see's it as one long file name which it cannot locate.

            Comment

            • bruce01
              Senior Member
              • Mar 2011
              • 160

              #7
              OK, can you tell me the exact command you used, and whether you want to align all your fastq at the same time (ie L001+L002+...+L00n), or individually (ie L001 makes single SAM file)?

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                by SEQadmin2



                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                ...
                07-31-2026, 11:01 AM
              • 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

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 08-06-2026, 07:41 AM
              0 responses
              13 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-03-2026, 10:13 AM
              0 responses
              30 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-31-2026, 02:55 AM
              0 responses
              40 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-24-2026, 12:17 PM
              0 responses
              26 views
              0 reactions
              Last Post SEQadmin2  
              Working...