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

Small ONT optimization: length filtering before applying trimming #743

Open
rhpvorderman opened this issue Nov 29, 2023 · 1 comment
Open

Comments

@rhpvorderman
Copy link
Collaborator

For illumina reads that are always 151 bp it makes sense to trim the adapter first, apply quality trimming, and only after that do length and quality filtering.

On nanopore however, this means that with a length filter of say 500 bp, a certain amount of reads get the expensive adapter trimming applied first while they were never able to pass the length filter in the first place. A read of length 400 bp will never pass the length filter, even after adapter trimming.
Therefore applying a very cheap length filter at the beginning of the pipeline can lead to better performance.

@marcelm
Copy link
Owner

marcelm commented Dec 4, 2023

Good idea, but I’ll need to think about how to do this the best way. Because the adapter trimming statistics would change, it is a backwards-incompatible change.

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

No branches or pull requests

2 participants