Skip to content
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

Merged
merged 11 commits into from
Jun 12, 2017
Merged

Conversation

benjjneb
Copy link
Collaborator

@benjjneb benjjneb commented Jun 5, 2017

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...

bcallah and others added 10 commits June 1, 2017 23:08
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?
@thermokarst thermokarst added the stat:DO-NOT-MERGE Please do not merge this until this label has been removed. label Jun 5, 2017
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.
@benjjneb benjjneb removed the stat:DO-NOT-MERGE Please do not merge this until this label has been removed. label Jun 10, 2017
@benjjneb
Copy link
Collaborator Author

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.

@benjjneb benjjneb changed the title DO NOT MERGE: Variable length amplicons Variable length amplicons Jun 10, 2017
Copy link
Member

@ebolyen ebolyen left a 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")) {
Copy link
Member

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.
Copy link
Member

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! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants