Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikeworth
    Junior Member
    • Jul 2011
    • 8

    #1

    using bwa to map illumina paired end reads

    hello,

    ugh... this is such a stupid question, i'm embarrassed to ask it, but i must. i can't find a definition of the workflow to use bwa to map paired end reads anywhere (am i simply missing it?). i'm starting with fastq seq files and i know how to index the genome. compiling info from the snooping i've done - this is what i believe the workflow to be:

    $ bwa aln genome.index.fa s_4_1_sequence.fastq > s_4_1.sai
    $ bwa aln genome.index.fa s_4_2_sequence.fastq > s_4_2.sai

    $ bwa sampe genome.index.fa s_4_1.sai s_4_2.sai s_4_1_sequence.fastq s_4_2_sequence.fastq > s_4.sam

    then, using samtools and s_4.sam i can create .bam and .bam.bai files.

    is this correct? i think i understand the -b1 and -b2 options, but those are only used when starting w/ .bam files, which i'm not.

    what is a little confusing to me is the two separate calls to 'bwa aln'. i suppose it's wildly wrong to (unix) cat the two s_4_[12]_sequence.fastq files together and make one call to 'bwa aln'?

    thanks for your help,
    mike
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    I don't know that the sam file will reflect that you have paired reads if you cat the two fastqs together. It probably won't. If you carry out the default commands as you have written them, the software will figure out that the read are paired, and will set the flags, and ISIZE, etc correctly.

    Comment

    • mikeworth
      Junior Member
      • Jul 2011
      • 8

      #3
      thanks for the help.

      Comment

      • mikeworth
        Junior Member
        • Jul 2011
        • 8

        #4
        thanks. i've run bwa, as described above, w/ the paired end data and i believe everything went properly.

        thanks again
        mike

        Comment

        • cdry7ue
          Member
          • Feb 2011
          • 20

          #5
          Mikeworth,
          Did you remove the sequencing adaptors or are you relying on BWA to do the soft clipping at the ends of the reads?

          Comment

          • mikeworth
            Junior Member
            • Jul 2011
            • 8

            #6
            i removed the adapters (and more) from the reads. our data was barcoded and i separated the reads via a perl script based on the barcodes and removed everything up to and including the barcodes.

            i'm curious why you're asking?

            thanks,
            mike

            Comment

            • jp.
              Senior Member
              • Jul 2013
              • 142

              #7
              May please I get the commands to remove the seq-adaptor prior to bwa for PE Illumina ?

              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, 10-22-2026, 11:13 AM
              0 responses
              22 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              19 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              36 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...