esteinig / nanoq

Minimal but speedy quality control for nanopore reads in Rust :bear:
MIT License
118 stars 10 forks source link

Summary stats on filtered #8

Closed esteinig closed 4 years ago

esteinig commented 4 years ago

Stats pushes should be moved into the filter block so that the summaries are computed on the filtered set.

Add a conditional to write reads only if the --length and --quality filters are the default 0 so that the costly writing operation is not executed when no filters are specified.

esteinig commented 4 years ago

Add a check after iterating over the reads that if no reads where detected or all reads were filtered to exit gracefully with a message.