Skip to content

Commit

Permalink
Updated exact-match tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelklee committed Mar 7, 2022
1 parent af18085 commit 612bcc3
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public void testBothAggregateRecalMode() throws IOException {
spec.executeTest("testBothRecalMode", this);
}

private final String tmpDir = "/home/slee/test"; //createTempDir(this.getTestedClassName()).getAbsolutePath();
private final String tmpDir = createTempDir(this.getTestedClassName()).getAbsolutePath();
private final String modelReportFilename = tmpDir + "/snpSampledModel.report";
private final String modelReportRecal = getLargeVQSRTestDataDir() + "expected/snpSampledRecal.vcf";
private final String modelReportTranches = getLargeVQSRTestDataDir() + "expected/snpSampledTranches.txt";
Expand Down Expand Up @@ -497,6 +497,7 @@ public void testVariantRecalibratorSNPscattered(final String[] params) throws IO
}

//One of the Gaussians has a covariance matrix with a determinant of zero, (can be confirmed that the entries of sigma for the row and column with the index of the constant annotation are zero) which leads to all +Inf LODs if we don't throw
//This convergence failure was fixed in https://github.com/broadinstitute/gatk/pull/7709
@Test(expectedExceptions = {UserException.VQSRPositiveModelFailure.class}, enabled = false)
public void testAnnotationsWithNoVarianceSpecified() throws IOException {
// use an ArrayList - ArgumentBuilder tokenizes using the "=" in the resource args
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/large/VQSR/bothRecal.vcf
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/test/resources/large/VQSR/bothRecalWithAggregate.vcf
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/test/resources/large/VQSR/expected/SNPDefaultTranches.txt
Git LFS file not shown
2 changes: 1 addition & 1 deletion src/test/resources/large/VQSR/expected/bothTranches.txt
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/test/resources/large/VQSR/expected/expected.AS.recal.vcf
Git LFS file not shown
2 changes: 1 addition & 1 deletion src/test/resources/large/VQSR/expected/indelTranches.txt
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/test/resources/large/VQSR/expected/snpSampledRecal.vcf
Git LFS file not shown
Git LFS file not shown
2 changes: 1 addition & 1 deletion src/test/resources/large/VQSR/indelRecal.vcf
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/test/resources/large/VQSR/snpRecal.vcf
Git LFS file not shown
2 changes: 1 addition & 1 deletion src/test/resources/large/VQSR/snpTranches.scattered.txt
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Variant quality score tranches file
# Version number 5
targetTruthSensitivity,numKnown,numNovel,knownTiTv,novelTiTv,minVQSLod,filterName,model,accessibleTruthSites,callsAtTruthSites,truthSensitivity
90.00,0,2507,0.0000,3.2205,-1.4017,VQSRTrancheSNP0.00to90.00,SNP,2786,2507,0.8999
97.00,0,2702,0.0000,3.2351,-2.1306,VQSRTrancheSNP90.00to97.00,SNP,2786,2702,0.9698
98.00,0,2730,0.0000,3.2457,-2.4533,VQSRTrancheSNP97.00to98.00,SNP,2786,2730,0.9799
99.00,0,2758,0.0000,3.2496,-3.2164,VQSRTrancheSNP98.00to99.00,SNP,2786,2758,0.9899
99.30,0,2766,0.0000,3.2488,-4.0653,VQSRTrancheSNP99.00to99.30,SNP,2786,2766,0.9928
99.40,0,2769,0.0000,3.2469,-5.1648,VQSRTrancheSNP99.30to99.40,SNP,2786,2769,0.9939
99.50,0,2772,0.0000,3.2450,-5.9262,VQSRTrancheSNP99.40to99.50,SNP,2786,2772,0.9950
99.60,0,2774,0.0000,3.2416,-6.5841,VQSRTrancheSNP99.50to99.60,SNP,2786,2774,0.9957
99.80,0,2780,0.0000,3.2314,-58913.3494,VQSRTrancheSNP99.60to99.80,SNP,2786,2780,0.9978
99.90,0,2783,0.0000,3.2295,-59210.6252,VQSRTrancheSNP99.80to99.90,SNP,2786,2783,0.9989
90.00,0,2507,0.0000,3.2205,-1.4040,VQSRTrancheSNP0.00to90.00,SNP,2786,2507,0.8999
97.00,0,2702,0.0000,3.2351,-2.1257,VQSRTrancheSNP90.00to97.00,SNP,2786,2702,0.9698
98.00,0,2730,0.0000,3.2457,-2.4547,VQSRTrancheSNP97.00to98.00,SNP,2786,2730,0.9799
99.00,0,2758,0.0000,3.2496,-3.2147,VQSRTrancheSNP98.00to99.00,SNP,2786,2758,0.9899
99.30,0,2766,0.0000,3.2488,-4.0541,VQSRTrancheSNP99.00to99.30,SNP,2786,2766,0.9928
99.40,0,2769,0.0000,3.2469,-5.1892,VQSRTrancheSNP99.30to99.40,SNP,2786,2769,0.9939
99.50,0,2772,0.0000,3.2450,-5.9606,VQSRTrancheSNP99.40to99.50,SNP,2786,2772,0.9950
99.60,0,2774,0.0000,3.2416,-6.6171,VQSRTrancheSNP99.50to99.60,SNP,2786,2774,0.9957
99.80,0,2780,0.0000,3.2314,-59920.6582,VQSRTrancheSNP99.60to99.80,SNP,2786,2780,0.9978
99.90,0,2783,0.0000,3.2295,-60223.0295,VQSRTrancheSNP99.80to99.90,SNP,2786,2783,0.9989
100.00,0,2786,0.0000,3.2340,-Infinity,VQSRTrancheSNP99.90to100.00,SNP,2786,2786,1.0000
99.95,0,2786,0.0000,3.2340,-Infinity,VQSRTrancheSNP100.00to99.95,SNP,2786,2786,1.0000
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Variant quality score tranches file
# Version number 5
targetTruthSensitivity,numKnown,numNovel,knownTiTv,novelTiTv,minVQSLod,filterName,model,accessibleTruthSites,callsAtTruthSites,truthSensitivity
90.00,0,2507,0.0000,3.2205,-1.4017,VQSRTrancheSNP0.00to90.00,SNP,2786,2507,0.8999
99.00,0,2758,0.0000,3.2496,-3.2164,VQSRTrancheSNP90.00to99.00,SNP,2786,2758,0.9899
99.90,0,2783,0.0000,3.2295,-59210.6252,VQSRTrancheSNP99.00to99.90,SNP,2786,2783,0.9989
90.00,0,2507,0.0000,3.2205,-1.4040,VQSRTrancheSNP0.00to90.00,SNP,2786,2507,0.8999
99.00,0,2758,0.0000,3.2496,-3.2147,VQSRTrancheSNP90.00to99.00,SNP,2786,2758,0.9899
99.90,0,2783,0.0000,3.2295,-60223.0295,VQSRTrancheSNP99.00to99.90,SNP,2786,2783,0.9989
100.00,0,2786,0.0000,3.2340,-Infinity,VQSRTrancheSNP99.90to100.00,SNP,2786,2786,1.0000

0 comments on commit 612bcc3

Please sign in to comment.