-
Notifications
You must be signed in to change notification settings - Fork 587
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
Refactor to put 'Lite' functionality into ExtractCohort. #8295
Refactor to put 'Lite' functionality into ExtractCohort. #8295
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## ah_var_store #8295 +/- ##
================================================
Coverage ? 86.188%
Complexity ? 35524
================================================
Files ? 2192
Lines ? 166470
Branches ? 17917
================================================
Hits ? 143478
Misses ? 16606
Partials ? 6386 |
Github actions tests reported job failures from actions build 4824196683
|
Github actions tests reported job failures from actions build 4833917205
|
…geExtractCohortLiteIntoExtractCohort
Github actions tests reported job failures from actions build 4875101629
|
Github actions tests reported job failures from actions build 4875090542
|
Github actions tests reported job failures from actions build 4875589595
|
Github actions tests reported job failures from actions build 4875986159
|
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 despite my "Stream" of comments 😛
doc = "If true, use VQSR 'Classic' scoring (vqs Lod score). Otherwise use VQSR 'Lite' scoring (calibration_sensitivity) ", | ||
optional = true | ||
) | ||
private boolean isVQSRClassic = true; |
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.
The way I'm reading the doc
it sounds like the default should be Lite, but actually the default is Classic.
@@ -143,28 +118,33 @@ public enum VQSLODFilteringType { GENOTYPE, SITES, NONE } | |||
) | |||
private boolean emitADs = false; | |||
|
|||
// what if this was a flag input only? |
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.
I am also wondering this
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Outdated
Show resolved
Hide resolved
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Outdated
Show resolved
Hide resolved
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Outdated
Show resolved
Hide resolved
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Outdated
Show resolved
Hide resolved
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Outdated
Show resolved
Hide resolved
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Outdated
Show resolved
Hide resolved
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Outdated
Show resolved
Hide resolved
doc = "If true, use VQSR 'Classic' scoring (vqs Lod score). Otherwise use VQSR 'Lite' scoring (calibration_sensitivity) ", | ||
optional = true | ||
) | ||
private boolean isVQSRClassic = true; |
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.
same comment here as before
…ExtractCohortEngine.java Co-authored-by: Miguel Covarrubias <[email protected]>
…ExtractCohortEngine.java Co-authored-by: Miguel Covarrubias <[email protected]>
…ExtractCohortEngine.java Co-authored-by: Miguel Covarrubias <[email protected]>
…ExtractCohortEngine.java Co-authored-by: Miguel Covarrubias <[email protected]>
…ExtractCohortEngine.java Co-authored-by: Miguel Covarrubias <[email protected]>
…ExtractCohortEngine.java Co-authored-by: Miguel Covarrubias <[email protected]>
…ExtractCohortEngine.java Co-authored-by: Miguel Covarrubias <[email protected]>
…geExtractCohortLiteIntoExtractCohort
Github actions tests reported job failures from actions build 4927370223
|
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Show resolved
Hide resolved
.filter(d -> !(d.isNaN()||d.isInfinite())) | ||
.max(Double::compareTo); | ||
return maxVal.isPresent() && maxVal.get() < vqScoreThreshold; | ||
} |
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.
not necessary for this pr, but I think additional documentation around this is necessary.
also lol do we really get vqscores of "infinite"?
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.
Yeah, that's a good point. Not sure if we'd ever see infinite, but am hesitant to pull that check out.
src/main/java/org/broadinstitute/hellbender/tools/gvs/extract/ExtractCohortEngine.java
Show resolved
Hide resolved
throw new UserException("Vqslod filtering thresholds for SNPs and INDELs must be defined."); | ||
boolean noVQScoreFilteringRequested = vqScoreFilteringType.equals(ExtractCohort.VQScoreFilteringType.NONE); | ||
if (!noVQScoreFilteringRequested) { | ||
// ensure vqScore filters (vqsLod or Sensitivity) are defined. this really shouldn't ever happen, said the engineer. |
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.
dont we have defaults?
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.
Yeah, we do. I didn't write that comment, but I can dig a little deeper to see if it could.
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.
A few nits that I'm happy to be talked out of
Github actions tests reported job failures from actions build 4929394589
|
retest this please |
No description provided.