-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration tests for running VEP and fixing another annotation alt m…
…atching edge case. (#234)
- Loading branch information
Showing
6 changed files
with
225 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
84 changes: 84 additions & 0 deletions
84
...ing/integration/presubmit_tests/medium_tests/platinum_NA12877_hg38_10K_lines_run_vep.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"test_name": "platinum-na12877-hg38-10k-lines-run-vep", | ||
"table_name": "platinum_NA12877_hg38_10K_lines_run_vep", | ||
"input_pattern": "gs://gcp-variant-transforms-testfiles/small_tests/platinum_NA12877_hg38_10K_lines_manual_vep_orig_output.vcf", | ||
"annotation_fields": "CSQ", | ||
"runner": "DataflowRunner", | ||
"run_annotation_pipeline": "True", | ||
"vep_image_uri": "gcr.io/gcp-variant-transforms-test/vep_91", | ||
"vep_cache_path": "gs://gcp-variant-transforms-test_vep_cache/vep_cache_homo_sapiens_GRCh38_91.tar.gz", | ||
"annotation_output_dir": "gs://integration_test_runs/temp/vep_output/{TABLE_NAME}", | ||
"num_workers": 1, | ||
"assertion_configs": [ | ||
{ | ||
"query": ["NUM_ROWS_QUERY"], | ||
"expected_result": {"num_rows": 9953} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(0) AS num_annotation_sets ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ AS CSQ" | ||
], | ||
"expected_result": {"num_annotation_sets": 45770} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(0) AS num_annotation_sets ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ_VT AS CSQ_VT" | ||
], | ||
"expected_result": {"num_annotation_sets": 45770} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT SUM(start_position * number_of_annotations) AS hash_sum ", | ||
"FROM ( ", | ||
" SELECT start_position, reference_bases, A.alt, ", | ||
" COUNT(0) AS number_of_annotations ", | ||
" FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ AS CSQ", | ||
" GROUP BY 1, 2, 3", | ||
")" | ||
], | ||
"expected_result": {"hash_sum": 143375297338} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT SUM(start_position * number_of_annotations) AS hash_sum ", | ||
"FROM ( ", | ||
" SELECT start_position, reference_bases, A.alt, ", | ||
" COUNT(0) AS number_of_annotations ", | ||
" FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ_VT AS CSQ_VT", | ||
" GROUP BY 1, 2, 3", | ||
")" | ||
], | ||
"expected_result": {"hash_sum": 143375297338} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(DISTINCT CSQ.Feature) AS num_features ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ AS CSQ" | ||
], | ||
"expected_result": {"num_features": 1576} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(DISTINCT CSQ_VT.Feature) AS num_features ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ_VT AS CSQ_VT" | ||
], | ||
"expected_result": {"num_features": 1576} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(DISTINCT CSQ.SYMBOL) AS num_symbol ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ AS CSQ" | ||
], | ||
"expected_result": {"num_symbol": 207} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(DISTINCT CSQ_VT.SYMBOL) AS num_symbol ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ_VT AS CSQ_VT" | ||
], | ||
"expected_result": {"num_symbol": 207} | ||
} | ||
] | ||
} |
46 changes: 46 additions & 0 deletions
46
...orms/testing/integration/presubmit_tests/small_tests/platinum_NA12877_hg38_10K_lines.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"test_name": "platinum-na12877-hg38-10k-lines", | ||
"table_name": "platinum_NA12877_hg38_10K_lines", | ||
"input_pattern": "gs://gcp-variant-transforms-testfiles/small_tests/platinum_NA12877_hg38_10K_lines_manual_vep_orig_output.vcf", | ||
"annotation_fields": "CSQ", | ||
"runner": "DataflowRunner", | ||
"assertion_configs": [ | ||
{ | ||
"query": ["NUM_ROWS_QUERY"], | ||
"expected_result": {"num_rows": 9953} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(0) AS num_annotation_sets ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ AS CSQ" | ||
], | ||
"expected_result": {"num_annotation_sets": 45770} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT SUM(start_position * number_of_annotations) AS hash_sum ", | ||
"FROM ( ", | ||
" SELECT start_position, reference_bases, A.alt, ", | ||
" COUNT(0) AS number_of_annotations ", | ||
" FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ AS CSQ", | ||
" GROUP BY 1, 2, 3", | ||
")" | ||
], | ||
"expected_result": {"hash_sum": 143375297338} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(DISTINCT CSQ.Feature) AS num_features ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ AS CSQ" | ||
], | ||
"expected_result": {"num_features": 1576} | ||
}, | ||
{ | ||
"query": [ | ||
"SELECT COUNT(DISTINCT CSQ.SYMBOL) AS num_symbol ", | ||
"FROM {TABLE_NAME} AS T, T.alternate_bases AS A, A.CSQ AS CSQ" | ||
], | ||
"expected_result": {"num_symbol": 207} | ||
} | ||
] | ||
} |
This file contains 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