SEQanswers

Go Back   SEQanswers > Sequencing Technologies/Companies > Illumina/Solexa



Similar Threads
Thread Thread Starter Forum Replies Last Post
Introducing BBDuk: Adapter/Quality Trimming and Filtering Brian Bushnell Bioinformatics 281 11-20-2017 10:38 AM
How do you specify error rate in BBduk adapter trimming? antifolate Bioinformatics 11 07-07-2016 04:00 PM
Adapter trimming with BBduk PeatMaster Illumina/Solexa 4 04-01-2016 12:18 PM
Miseq Custom primer for 16s V1V3 region lmma Illumina/Solexa 12 02-26-2015 02:13 PM
Quality trimming of 16S MiSeq data before or after merging paired reads? chris_s Illumina/Solexa 2 08-01-2014 10:02 AM

Reply
 
Thread Tools
Old 04-01-2016, 12:28 PM   #1
PeatMaster
Junior Member
 
Location: Houghton, MI

Join Date: Mar 2016
Posts: 8
Default 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 at 11:09 AM.
PeatMaster is offline   Reply With Quote
Old 04-15-2016, 10:49 AM   #2
PeatMaster
Junior Member
 
Location: Houghton, MI

Join Date: Mar 2016
Posts: 8
Default 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
PeatMaster is offline   Reply With Quote
Reply

Tags
bbduk

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 06:09 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO