@@ -20,21 +20,21 @@ public class VCFComparatorIntegrationTest extends CommandLineProgramTest {
20
20
21
21
@ DataProvider (name = "getTestVcfs" )
22
22
public Object [][] getTestVcfs () {
23
- return new Object [][] {
24
- { " -L chr1:186475" , "expected_warning_as_vqslod.txt" },
25
- { " -L chr1:186475 --ignore-attribute AS_VQSLOD" , "empty_file.txt" },
26
- { " -L chr1:187471 --ignore-attribute AS_VQSLOD" , "expected_warning_filter.txt" },
27
- { " -L chr1:186475-945669 " + DEFAULT_WARP_SETTINGS , "empty_file.txt" },
28
- { " -L chr1:945670 " + DEFAULT_WARP_SETTINGS , "qual_diff_warning.txt" }, // different QUAL values
29
- { " -L chr1:945670 --qual-change-allowed 0.1 --ignore-attribute AS_VQSLOD" , "empty_file.txt" },
30
- { " -L chr1:186475 --mute-acceptable-diffs" , "empty_file.txt" } // low quality site is muted even though the AS_VQSLOD is different
23
+ return new Object [][]{
24
+ {" -L chr1:186475" , "expected_warning_as_vqslod.txt" },
25
+ {" -L chr1:186475 --ignore-attribute AS_VQSLOD" , "empty_file.txt" },
26
+ {" -L chr1:187471 --ignore-attribute AS_VQSLOD" , "expected_warning_filter.txt" },
27
+ {" -L chr1:186475-945669 " + DEFAULT_WARP_SETTINGS , "empty_file.txt" },
28
+ {" -L chr1:945670 " + DEFAULT_WARP_SETTINGS , "qual_diff_warning.txt" }, // different QUAL values
29
+ {" -L chr1:945670 --qual-change-allowed 0.1 --ignore-attribute AS_VQSLOD" , "empty_file.txt" },
30
+ {" -L chr1:186475 --mute-acceptable-diffs" , "empty_file.txt" } // low quality site is muted even though the AS_VQSLOD is different
31
31
};
32
32
}
33
33
34
34
@ Test (dataProvider = "getTestVcfs" )
35
35
public void testAnnotationDifferences (String args , String expectedWarnings ) throws IOException {
36
36
final IntegrationTestSpec testSpec = new IntegrationTestSpec (
37
- " -R " + hg38Reference +
37
+ " -R " + hg38Reference +
38
38
" -V:actual " + TEST_DATA_DIRECTORY + "actual.vcf" +
39
39
" -V:expected " + TEST_DATA_DIRECTORY + "expected.vcf" +
40
40
" --output-warnings %s" +
@@ -66,13 +66,16 @@ public void testExpectedFailure() {
66
66
67
67
@ DataProvider (name = "getTestGvcfs" )
68
68
public Object [][] getTestGvcfs () {
69
- return new Object [][] {
70
- { " -L chr1:864084-864610" , "empty_file.txt" }, //matching ref blocks
71
- { " -L chr1:54682-347969" , "ref_block_warning.txt" }, // non-matching ref block
72
- { " -L chr1:792417" , "tree_score_warning.txt" }, // variant site
73
- { " -L chr1:792417 --ignore-non-ref-data --" +
69
+ return new Object [][]{
70
+ {" -L chr1:864084-864610" , "empty_file.txt" }, //matching ref blocks
71
+ {" -L chr1:54682-347969" , "ref_block_warning.txt" }, // non-matching ref block
72
+ {" -L chr1:792417" , "tree_score_warning.txt" }, // variant site
73
+ {" -L chr1:792417 --ignore-non-ref-data --" +
74
74
ReblockGVCF .ANNOTATIONS_TO_KEEP_LONG_NAME + " TREE_SCORE" , "tree_score_warning.txt" }, // when non-ref data is dropped non-GATK annotations can be dropped
75
- { " -L chr1:792417 --ignore-attribute TREE_SCORE" , "empty_file.txt" }
75
+ {" -L chr1:792417 --ignore-attribute TREE_SCORE --ignore-non-ref-data" , "empty_file.txt" }, // check that RAW_MQandDP matches with and without --ignore-non-ref-data
76
+ {" -L chr1:792417 --ignore-attribute TREE_SCORE" , "empty_file.txt" },
77
+ {" -L chr1:950542" , "depth_warning.txt" },
78
+ {" -L chr1:950542 --ignore-gq0" , "empty_file.txt" }
76
79
};
77
80
}
78
81
0 commit comments