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

Refactor to put 'Lite' functionality into ExtractCohort. #8295

Merged

Conversation

gbggrant
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

❗ No coverage uploaded for pull request base (ah_var_store@0b4e305). Click here to learn what that means.
The diff coverage is n/a.

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           

@gatk-bot
Copy link

gatk-bot commented Apr 27, 2023

Github actions tests reported job failures from actions build 4824196683
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 11 4824196683.13 logs
unit 8 4824196683.1 logs

@gatk-bot
Copy link

gatk-bot commented Apr 28, 2023

Github actions tests reported job failures from actions build 4833917205
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 11 4833917205.13 logs
unit 8 4833917205.1 logs

@gatk-bot
Copy link

gatk-bot commented May 3, 2023

Github actions tests reported job failures from actions build 4875101629
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 11 4875101629.13 logs
unit 8 4875101629.1 logs

@gatk-bot
Copy link

gatk-bot commented May 3, 2023

Github actions tests reported job failures from actions build 4875090542
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 11 4875090542.13 logs
unit 8 4875090542.1 logs

@gatk-bot
Copy link

gatk-bot commented May 3, 2023

Github actions tests reported job failures from actions build 4875589595
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 11 4875589595.13 logs
unit 8 4875589595.1 logs

@gatk-bot
Copy link

gatk-bot commented May 3, 2023

Github actions tests reported job failures from actions build 4875986159
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 11 4875986159.13 logs
integration 11 4875986159.12 logs

@gbggrant gbggrant changed the title Starting refactoring of ExtractCohortLite into ExtractCohort. Refactor to put 'Lite' functionality into ExtractCohort. May 4, 2023
@gbggrant gbggrant marked this pull request as ready for review May 5, 2023 01:02
@gbggrant
Copy link
Collaborator Author

gbggrant commented May 5, 2023

Passing VQSR Lite Run Here
Passing VQSR Classic Run Here.

Copy link
Collaborator

@mcovarr mcovarr left a 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;
Copy link
Collaborator

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?
Copy link
Collaborator

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

doc = "If true, use VQSR 'Classic' scoring (vqs Lod score). Otherwise use VQSR 'Lite' scoring (calibration_sensitivity) ",
optional = true
)
private boolean isVQSRClassic = true;
Copy link
Collaborator

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

gbggrant and others added 13 commits May 8, 2023 10:10
…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]>
@gatk-bot
Copy link

gatk-bot commented May 9, 2023

Github actions tests reported job failures from actions build 4927370223
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 11 4927370223.13 logs
unit 8 4927370223.1 logs

.filter(d -> !(d.isNaN()||d.isInfinite()))
.max(Double::compareTo);
return maxVal.isPresent() && maxVal.get() < vqScoreThreshold;
}
Copy link
Contributor

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"?

Copy link
Collaborator Author

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.

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont we have defaults?

Copy link
Collaborator Author

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.

Copy link
Contributor

@RoriCremer RoriCremer left a 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

@gatk-bot
Copy link

gatk-bot commented May 9, 2023

Github actions tests reported job failures from actions build 4929394589
Failures in the following jobs:

Test Type JDK Job ID Logs
unit 11 4929394589.13 logs
unit 8 4929394589.1 logs

@gbggrant
Copy link
Collaborator Author

gbggrant commented May 9, 2023

Passing VQSR Lite Run Here
Passing VQSR Classic Run Here.

@gbggrant
Copy link
Collaborator Author

retest this please

@gbggrant gbggrant merged commit 834e6da into ah_var_store May 10, 2023
@gbggrant gbggrant deleted the gg_VS-892_MergeExtractCohortLiteIntoExtractCohort branch May 10, 2023 18:05
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

Successfully merging this pull request may close these issues.

4 participants