Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • haonmada
    Junior Member
    • Aug 2009
    • 5

    #1

    using bwt to align 454 reads

    Hello All,

    First of all I am very new at this NGS sequence analysis.
    I have a sff file generated by the 454 machine.
    In it I have 500000 reads
    200000 of them are <200bp
    300000 of them are >200bp (but less than 600bp)

    I want to use bwt to align the reads to a reference:

    1) Do I have to separate the short reads from the longer ones? if yes what is the fastest way to do so?
    2) What input files can I use with bwt. fasta? fastq?
    The 454 machine did not give any fastq files. I made one using the perl script that came with bwt. (how reliable is that perlscript)?


    at the moment I am issuing the following command:

    a) index the reference first
    bwa index -p ref_index -a is my_ref.fa (note: my reference is 1.5MB that is why I am using '-a is')

    b) align the reads to reference

    bwa aln -t 4 ref_index my_reads.fasta > my_reads.bwa

    c) convert to SAM

    bwa samse ref_index my_reads.bwa my_reads.fasta > my_reads.sam



    Are steps a to c right?
    I read that I should use 'bwa bwasw' to align long reads.


    Any guidance you are able to provide is greatly appreciated!!!1




    Thanks
    Noah
  • ketan_bnf
    Member
    • Oct 2010
    • 59

    #2
    hi haonmada,

    have you read this, FAQ on http://bio-bwa.sourceforge.net/

    according to bwa manual, for 454 reads you should use bwa bwasw, and for short reads less than 200 bp sensitivity is lower.

    i am attaching

    1) bioperl script for extracting reads greater than 200 bp, just change ">" sign to "<" sign in condition it will extract reads < 200p.

    -- usage - change file.fasta to yourfile.fasta

    2) perl script for converting fasta and qual file into fastq file.
    Attached Files

    Comment

    • haonmada
      Junior Member
      • Aug 2009
      • 5

      #3
      Thanks for the Info ketan_bnf!

      Yes I know about the "bwa bwasw" component of bwa. That is what confusing me at the moment.

      As I mentioned in the post I have a mixture of short reads and long reads. should I separate them and run them separately? or just use 'bwa bwasw' on all?

      If I run them separately how can I merge the two data sets?

      and thanks for the scripts .... FYI there is a perl script in bwa that does the same...


      Thanks
      Noah

      Comment

      • colindaven
        Senior Member
        • Oct 2008
        • 417

        #4
        In my experience the 454 package gsMapper will give you better results - more alignments - than aligners like bwasw or Stampy.

        You could try that first if you have access to the Roche Newbler software.

        Apparently LastZ is also good, but I haven't tried it.

        Comment

        • krobison
          Senior Member
          • Nov 2007
          • 734

          #5
          bwasw works very well with 454 reads. If the short reads correspond to junk (e.g. primer dimers in an amplicon experiment), you won't care about the sensitivity. In any case, bwasw will align a bunch of them.

          One way to check yourself is to first run bwasw, then take all the reads that didn't align and try running them through regular bwa. I know what the FAQ says, but I'd be surprised if many more align.

          Merging two datasets is easy with SAMtools -- "samtools merge" -- but I think you need to have both datasets sorted prior (if not, you'll want to do it afterwards). Alternatively, if you just concatenate one SAM header with the body of each of the files, that will generate a new legal SAM file (SAM does not track how many reads are in the file)

          Comment

          • haonmada
            Junior Member
            • Aug 2009
            • 5

            #6
            Thanks for the replies everyone!

            So far I have separated my sff file into shortreads(<200bp) and longreads(>200bp).

            have run the bwa short read aligner on the shortreads and the long read aligner on the longreads.

            have used samtools to sort the individual files.

            All I have to do now is create a new sam file with one header? is this correct?

            Comment

            • lh3
              Senior Member
              • Feb 2008
              • 686

              #7
              For 454, just use bwa-sw. You do not need to separate them.

              Comment

              • msutada@gmail.com
                Junior Member
                • May 2011
                • 6

                #8
                I used bwa sw on 454 reads, I got the sam file but there was something wrong as I could not convert it to bam either by samtools view -bS -t ref.fa.fai file.sam > file.bam, or by picard Sortsam.jar.

                My sam file from bwasw is as follow.
                GPYR5PO02HT2RB.f 0 Scaffold34 978186 203 1S65M1D90M * 0 0 TCACGAAAATACAAATGTAGCGACGTTCTATTCGTTTTATTGGATGCTTGGGCAATGAAATTTCCGTTAAGTTTTAATACCTGCTACTTTGCAGGGCCGAAGAAGCTTTGATGTGTAGTGACAAGGATATTGCCTATCTATTCAAAAGCGAAATAC GHG?;333370??@@GGIIIIIIIIIIHHIGBAA==>=I22==IIIIIIBB?GEEG?111111A=:--/1B9=77776FIIIIHHHIHGGGGIHEHIA177ADFFG??;;;CGEE????677BE77476???;;;>>;:;:>C8===EEE>>>?7C AS:i:148 XS:i:0 XF:i:3 XE:i:3 XN:i:0
                GPYR5PO02ICVBA.r 0 Scaffold139 669741 0 108M1S * 0 0 TTGAAAGCGTTTGCCACCCCCTTTCAACATTGTTGAAACGTGTTGAAAGGATGTTGAATCGATGTTGAAAGAGTTTAAAAGCCTTTAAACTTTGCTTCAACATCCATTA :<B===B<6/11>45<33335BBBFGGIIIIIHFBBBFFHIIHIIHHHIHHHIIICBBEEEIIHGD;555@7F76576<9E;;111555BBBBGGIIIIIIIIIIFIII AS:i:108 XS:i:108 XF:i:2 XE:i:0 XN:i:0

                Any suggestion will be very appreciated.

                Best,
                Sutada

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  The Factors Reshaping Genome Assembly
                  by SEQadmin2



                  When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
                  11-24-2026, 07:04 AM
                • 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-23-2026, 11:11 AM
                0 responses
                28 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-17-2026, 06:27 AM
                0 responses
                41 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-12-2026, 07:59 AM
                0 responses
                61 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 11-05-2026, 09:25 AM
                0 responses
                67 views
                0 reactions
                Last Post SEQadmin2  
                Working...