Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • PeatMaster
    Junior Member
    • Mar 2016
    • 8

    BBDuk primer trimming on MiSeq 16S data_primers with deletion errors not trimmed

    Hi,

    I am trying to figure out the best way to trim primers from MiSeq 16S amplicon data with BBduk. I have already filtered phix and trimmed adapters when the fastq file was interleaved. Then I deinterleaved the file and trimmed primers. My basic approach is below. This script is for trimming 515F from the forward reads, and i have a similar approach to trimming 806R from the reverse reads.

    bbduk.sh in=SingleFileTest/Deinterleaved_reads/forward_reads.fastq
    out=SingleFileTest/BBDUKPrimerTrim/forward_reads_PrimerTrimmed.fastq
    literal=GTGCCAGCMGCCGCGGTAA ktrim=l hdist=2 k=19

    However, after running this, not all sequences in a file are trimmed. For example, I did this on a fastq file containing data from a single sample; it started with 107179 forward reads, clipped 515F from 104227 reads, and then the resulting file has all 107179 reads with most but not all clipped. I managed to figure out how to isolate some of the unclipped reads from the resulting fastq and it seems that primers on reads that were not clipped tended to have a missing base in their middles. For example, instead of the primer being "GTGCCAGCMGCCGCGGTAA", it was "GTGCCAGCGCCGCGGTAA" and another was "GTGCCGCAGCCGCGGTAA". Here they are aligned just to make the issue more clear.


    GTGCCAGCMGCCGCGGTAA
    GTGCCAGC GCCGCGGTAA
    GTGCC GCAGCCGCGGTAA


    I guess it is also possible that there could be primers with extra bases that are also not trimmed, although I have not found any of these yet. Does anyone have any thoughts on how to make sure the clipping catches all these primers with errors, also? I figured out a way to filter the sequences with the remaining primer errors out of the files that all the correct primers were trimmed from. However, that makes it so the matching pair of deinterlieved files has different numbers of relsulting sequences, which is obviously a problem when joining reads. Any help would be greatly appreciated. Also, is there an approach to primer trimming that could be done prior to deinterleaving that I am somehow spacing out on?

    Thanks for the help
    Last edited by PeatMaster; 04-11-2016, 10:09 AM.
  • PeatMaster
    Junior Member
    • Mar 2016
    • 8

    #2
    Any input?

    Hi, I'm curious if anyone has any input on the post I made a couple weeks ago. I would be grateful for some advice.

    To clarify my main questions:

    1) What is the best way to remove primers using BBDuk

    2) How can I deal with primer sequences sometimes missing a base? My current method does not catch these. Should they just be thrown out because they are likely errors?

    Thanks

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
      by SEQadmin2



      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
      Yesterday, 05:17 AM
    • GATTACAT
      Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by GATTACAT
      Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
      07-01-2026, 11:43 AM
    • SEQadmin2
      Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by SEQadmin2


      I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

      Here are nine questions we think about, in roughly the order they matter, before...
      06-18-2026, 07:11 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Today, 10:04 AM
    0 responses
    6 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 10:08 AM
    0 responses
    6 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-07-2026, 11:05 AM
    0 responses
    9 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 07-02-2026, 11:08 AM
    0 responses
    31 views
    0 reactions
    Last Post SEQadmin2  
    Working...