-
Notifications
You must be signed in to change notification settings - Fork 5
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
Covbuildmerge #89
Covbuildmerge #89
Conversation
…r filtering depending on whether the user has specified their own value or if there are enough fastq files to fit the mixture model
…r a value passed by user
… cli.rs and tidied code in lib.rs by moving min-kmer logic to io_utils.rs
…e --min-count flag
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 good! One question about whether we can use a generic
And I guess we should merge in master which will hopefully fix codecov
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #89 +/- ##
==========================================
+ Coverage 93.10% 96.07% +2.96%
==========================================
Files 16 16
Lines 2263 2803 +540
==========================================
+ Hits 2107 2693 +586
+ Misses 156 110 -46 ☔ View full report in Codecov by Sentry. |
… Had to make quality mutable
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.
Nice!
For the
build
command the user can now specify--min-count auto
and the mixture model from thecov
command will be fit to the first two fastq files provided by the user. This calculates a minimum kmer cutoff which is subsequently used in thebuild
command.min-count
is now a struct that can handle a mix ofauto
andu16
values. There is a parser incli.rs
calledvalid_min_kmer
that goes from the user provided string to the required struct (ValidMinKmer
, defined incli.rs
).io_utils.rs
. Also wrote an iterator version of the functionany_fastq
.min-count
it is used unless it is <1. If they specifyauto
an attempt is made to fit the mixture model. If this works the inferred value is used. If there are less than 2 fastq files passed by the user the default value of 5 is used. If no value is provided formin-count
the default value of 5 is used. All activity regarding the value used is reported to the user vialog::info!
.