Repository navigation
Covbuildmerge - #89
Merged
Merged
Conversation
added 11 commits
January 20, 2025 10:37
…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
johnlees
requested changes
Jan 23, 2025
johnlees
left a comment
Member
There was a problem hiding this comment.
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
jhellewell14
marked this pull request as ready for review
January 27, 2025 07:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For the
buildcommand the user can now specify--min-count autoand the mixture model from thecovcommand will be fit to the first two fastq files provided by the user. This calculates a minimum kmer cutoff which is subsequently used in thebuildcommand.min-countis now a struct that can handle a mix ofautoandu16values. There is a parser incli.rscalledvalid_min_kmerthat 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-countit is used unless it is <1. If they specifyautoan 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-countthe default value of 5 is used. All activity regarding the value used is reported to the user vialog::info!.