Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • history_of_robots
    Junior Member
    • May 2011
    • 9

    #1

    BWA on raw sequences?

    Hi guys,

    I previously run Bowtie on short read sequences in raw format (i.e. one sequence per lane with no other lines in the file). I want to compare the alignment by Bowtie to BWA. I looked through BWA manual (http://bio-bwa.sourceforge.net/bwa.shtml) and it seems to me that only fastq input format is acceptable. Is it so? And if it is so, can I make a fake fastq with mock ID and quality lines and expect BWA to work appropriately?

    Also, I am not sure if I should use 'bwa aln' or 'bwa samse'. I want to produce SAM in the end, so it seems that I need to use samse. However I don't see how I can control any of the parameters with samse. I would like to discard alignments that map to more than one place in the genome, not to allow any gaps, at most allow one mismatch and run the program on 4 cores and produce SAM. It's really easy with Bowtie, but is it something that I can do with BWA?

    thanks
    "Let’s start with the three fundamental Rules of Robotics...."
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    You run aln, then samse.

    aln with -e 0 -n 1 -t 4 should turn off gaps, only allow one mismatch, and run on 4 threads. After you run samse on the output, you can filter the .sam file with grep, or whatever. XT:A:U will be in the unique lines, XT:A:R lines are repetative.

    Comment

    • nxtgenkid10
      Member
      • Feb 2011
      • 16

      #3
      bwa alignment how

      I like to know how to run bwa to align my pe reads to the reference genome

      first i tried to create the reference of the bac genome bwa index -a is /Reference/ref.fa

      I tried the following command to align
      bwa sampe /DATA/Read1.fastq /DATA/Read2.fastq

      But i couldn t find an option to put my reference sequence for alignment

      and should i use bwa aln also if so y and how?

      Thanks

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        Sampe clearly takes five files as input, not just two, and yes, the name of the reference is the first of those inputs.

        The method for using bwa is you index the sequence (you only have to do this one no matter how many different datasets you align to that genome). Then you use bwa aln to make intermediate files, and sampe or samse to turn those intermediate files into .sams. Aln can be the most time consuming step; that's the one where you really ought to use the -t option to utilize multiple processors, if you have them.

        Also, .sams are huge, you really ought to pipe the output of sampe into samtools view to convert it to a .bam right away. You can always convert it (or more likely, a small part of it) back to .sam with samtools view later if you need to eyeball something.

        Comment

        Latest Articles

        Collapse

        • kinpict.com
          Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by kinpict.com
          The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
          Today, 06:37 PM
        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2





          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
          10-30-2026, 06:46 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 11-12-2026, 07:59 AM
        0 responses
        27 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-05-2026, 09:25 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-03-2026, 11:54 AM
        2 responses
        56 views
        0 reactions
        Last Post kinpict.com  
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        175 views
        0 reactions
        Last Post SEQadmin2  
        Working...