Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • flipwell
    Member
    • Feb 2011
    • 14

    BWA errors after quality trimming

    After I use the "-q 20" option in bwa aln I start getting errors down the road eg when i run ValidateSamFile in picard I get lots of "Mate negative strand flag does not match read negative strand flag of mate" and then "Sequence and quality are inconsistent" errors as well. I have run all the same commands without the -q option without these problems. I am very new to all this and not sure where I'm going wrong!
  • jflowers
    Member
    • Oct 2011
    • 42

    #2
    A little late, but I am also running -q option and curious if you identified the problem.

    Comment

    • flipwell
      Member
      • Feb 2011
      • 14

      #3
      No I ended up just running it without trimming as I decided it wasn't really necessary

      Comment

      • seq_lover
        Member
        • Oct 2011
        • 18

        #4
        This is a bug in BWA. If you use -q it puts the trimmed nucleotide read in the output SAM file but the quality sequence is not trimmed at all and thus there is a difference in the length of the read and the length of the quality string. Either use some third party tool like trimgalore to trim your fastq reads before aligning and don't use BWA -q option at all OR use some script that takes SAM file and trims off the base quality string accordingly.

        PS:This post may help- http://www.biostars.org/post/show/13...or-space-data/

        Comment

        Latest Articles

        Collapse

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 06-05-2026, 10:09 AM
        0 responses
        12 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-04-2026, 08:59 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-02-2026, 12:03 PM
        0 responses
        28 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-02-2026, 11:40 AM
        0 responses
        22 views
        0 reactions
        Last Post SEQadmin2  
        Working...