-
Notifications
You must be signed in to change notification settings - Fork 597
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
VS-1549 Add VAT to integration tests #9085
Changes from 21 commits
b7e44b1
db98831
d11cb2b
7b9cb64
ea3c082
de4a19b
6324fe5
ad8bbfc
bfbcb7c
9e991e0
fba4bd7
879599e
ebf544e
e87c588
05cdc13
747ca56
9a673f8
57d2e77
505e5f2
1e7f0f9
99dc3bd
8f56aa8
f9fd042
7a7256d
31210ec
26fc0f0
53385a7
7929086
bb95780
4efd1f6
b6cdfed
ecf4e2b
97acc25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ workflow GvsValidateVat { | |
String project_id | ||
String dataset_name | ||
String vat_table_name | ||
Boolean? is_small_callset | ||
String? cloud_sdk_docker | ||
String? variants_docker | ||
} | ||
|
@@ -25,20 +26,23 @@ workflow GvsValidateVat { | |
String effective_cloud_sdk_docker = select_first([cloud_sdk_docker, GetToolVersions.cloud_sdk_docker]) | ||
String effective_variants_docker = select_first([variants_docker, GetToolVersions.variants_docker]) | ||
|
||
call Utils.GetBQTableLastModifiedDatetime as SampleDateTime { | ||
input: | ||
project_id = project_id, | ||
fq_table = fq_vat_table, | ||
cloud_sdk_docker = effective_cloud_sdk_docker, | ||
} | ||
# Definining is_small_callset allows us to run this WDL on a dataset that has not had samples loaded (for testing) | ||
gbggrant marked this conversation as resolved.
Show resolved
Hide resolved
|
||
if (!defined(is_small_callset)) { | ||
call Utils.GetBQTableLastModifiedDatetime as SampleDateTime { | ||
input: | ||
project_id = project_id, | ||
fq_table = fq_sample_table, | ||
cloud_sdk_docker = effective_cloud_sdk_docker, | ||
} | ||
|
||
call Utils.GetNumSamplesLoaded { | ||
input: | ||
fq_sample_table = fq_sample_table, | ||
project_id = project_id, | ||
sample_table_timestamp = SampleDateTime.last_modified_timestamp, | ||
control_samples = false, | ||
cloud_sdk_docker = effective_cloud_sdk_docker, | ||
call Utils.GetNumSamplesLoaded { | ||
input: | ||
fq_sample_table = fq_sample_table, | ||
project_id = project_id, | ||
sample_table_timestamp = SampleDateTime.last_modified_timestamp, | ||
control_samples = false, | ||
cloud_sdk_docker = effective_cloud_sdk_docker, | ||
} | ||
} | ||
|
||
call Utils.GetBQTableLastModifiedDatetime as VatDateTime { | ||
|
@@ -153,7 +157,7 @@ workflow GvsValidateVat { | |
} | ||
|
||
# only check certain things if the callset is larger than 10,000 samples (a guess) | ||
Boolean callset_is_small = GetNumSamplesLoaded.num_samples < 10000 | ||
Boolean callset_is_small = select_first([is_small_callset, select_first([GetNumSamplesLoaded.num_samples, 1]) < 10000]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does this do? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe a comment would be helpful or am I just WDL illiterate? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm adding a comment. Basically just checking if the |
||
if (!callset_is_small) { | ||
call ClinvarSignificance { | ||
input: | ||
|
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 "qualified" ? whats the goal of this? maybe we should just pass the name?
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 needed
vat_table_name
to be an output of the wdl, and couldn't name an internal variable with the same name, so I changed it toeffective_vat_table_name
- using the pattern of a lot of naming nearby.