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

        • 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
        17 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        18 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...