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
          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
          ...
          Yesterday, 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, Yesterday, 02:55 AM
        0 responses
        9 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-24-2026, 12:17 PM
        0 responses
        12 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-23-2026, 11:41 AM
        0 responses
        12 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-20-2026, 11:10 AM
        0 responses
        24 views
        0 reactions
        Last Post SEQadmin2  
        Working...