-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable length amplicons #66
Conversation
Special value of trunc_len=0 turns off truncation and length filtering, allowing variable length amplicons. Also migrated to the multithreaded filterAndTrim for filtering.
Special value of trunc_len_f=0/trunc_len_r=0 turns off truncation and length filtering, Added minLen=10 to denoise-paired and denoise-single. Document this?
For now just revert the updates to multithreaded filtering, as I’m failing to solve the Travis issue, in service of getting the variable-length functionality merged in.
This adds support for variable length amplicons. Setting trunc-len/trunc-len-f/trunc-len-r to zero turns off truncation, and everything else proceeds as normal. Truncation to a common length is still recommended for most use-cases (eg. 16S) but for loci like ITS it is sometimes strongly desirable to allow amplicons of variable length, and that should now be supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
If I understood correctly, nothing really needed to change functionally besides documentation to support variable length amplicons.
seqtab <- removeBimeraDenovo(seqtab, method=chimeraMethod, minFoldParentOverAbundance = minParentFold, multithread=multithread) | ||
} else if(chimeraMethod == "consensus") { | ||
seqtab <- removeBimeraDenovo(seqtab, method=chimeraMethod, minFoldParentOverAbundance = minParentFold, multithread=multithread) | ||
if(chimeraMethod %in% c("pooled", "consensus")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%in%
That's a very interesting spelling.
Thanks! This is much cleaner than what I had done to your R code.
# Ex: 240 | ||
# | ||
# 7) truncLenR - The position at which to truncate reverse reads. Reverse reads shorter | ||
# than truncLenR will be discarded. | ||
# Special values: 0 - no truncation or length filtering. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like 0
is already a supported value by the code! 👍
This adds support for variable length amplicons #64
It also adds the multithreaded filtering implemented in dada2 package version 1.4. However, that part is causing some Travis failures I'm having trouble figuring out...