Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Quality trimming with bwa-mem

    Hi,
    When using bwa-mem, is it necessary to use a different program for quality trimming prior to alignment? Since FASTX toolkit doesn't work with paired end reads I was thinking trimmomatic perhaps. But is this even necessary since bwa-mem has the -q flag for quality trimming?
    And if I should use trimmomatic, how do I align the output with bwa-mem? Because as I understand it creates outputs for mapped reads and unmapped reads seperately.
    Hope my question makes sense. I'm kinda new at this.

    Thanks!

  • #2
    For adapter and quality trimming in paired-end reads you can use cutadapt 1.8+:

    For example:

    Code:
    cutadapt -a AGATCGGAAGAGC -A AGATCGGAAGAGC -q 15 -o fq1.trim.fq -p fq2.trim.fq fq1.fq fq2.fq
    However, it's seems with bwa mem is not necessary to trim for quality. In fact it's not necessary to trim adapters either. I think the GATK guidelines do not recommend adapter & quality trimming.

    Comment


    • #3
      Thanks for the reply. So You're saying bwa mem should work better without trimming at all before using it?

      Comment


      • #4
        I haven't done any benchmark. Personally I do trim adapters and recently I do not quality trim. But yes, bwa mem should handle raw reads with adapters and bad quality ends "correctly" (...for some definition of correct!). Try aligning a bunch of reads with and without trimming and see what happens...

        Comment


        • #5
          NGS aligners will work without trimming. As to whether they will work "better" that is hard to say. Most aligners will "soft"-clip reads (parts that don't align). That said you want to start with minimal (ideally none) extraneous sequence that does not belong to your sample when you start the analysis.

          Trimmomatic/BBDuk.sh from BBMap suite are additional examples of trimming programs that will accept paired-end files and maintain the read order post trimming.

          Comment


          • #6
            Great. Will do. Thanks!

            Comment


            • #7
              I would always recommend adapter-trimming; adapter sequence at the ends of reads will never help you in mapping, and can only hurt. Quality-trimming is much more case-by-case, depending on your data quality, intended use, and specific software. I don't generally recommend it before mapping unless you have sufficiently low-quality data that it is reducing your mapping rate. Even low-quality bases can increase the ability to uniquely place a read, or to distinguish between substitutions and indels.

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Strategies for Sequencing Challenging Samples
                by seqadmin


                Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
                03-22-2024, 06:39 AM
              • seqadmin
                Techniques and Challenges in Conservation Genomics
                by seqadmin



                The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

                Avian Conservation
                Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
                03-08-2024, 10:41 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, Yesterday, 06:37 PM
              0 responses
              10 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, Yesterday, 06:07 PM
              0 responses
              9 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 03-22-2024, 10:03 AM
              0 responses
              51 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 03-21-2024, 07:32 AM
              0 responses
              67 views
              0 likes
              Last Post seqadmin  
              Working...
              X