Skip to content

Commit

Permalink
Additional tweaks for GvsExtractCohortFromSampleNames [VS-283] (#7698)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsasch authored Feb 25, 2022
1 parent 1b53369 commit d2ebecb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .dockstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ workflows:
- ah_var_store
- rsa_split_intervals_part_2
- kc_cluster_vqsr
- kc_quoting_bug
- kc_quoting_bug
- name: GvsCreateAltAllele
subclass: WDL
primaryDescriptorPath: /scripts/variantstore/wdl/GvsCreateAltAllele.wdl
Expand All @@ -101,7 +101,7 @@ workflows:
branches:
- master
- ah_var_store
- kc_quoting_bug
- kc_quoting_bug
- name: GvsCreateTables
subclass: WDL
primaryDescriptorPath: /scripts/variantstore/wdl/GvsCreateTables.wdl
Expand Down Expand Up @@ -178,7 +178,7 @@ workflows:
branches:
- master
- ah_var_store
- rsa_wire_cohort_wdl
- rsa_cohort_wdl_fixes
- name: MitochondriaPipeline
subclass: WDL
primaryDescriptorPath: /scripts/mitochondria_m2_wdl/MitochondriaPipeline.wdl
Expand Down
3 changes: 2 additions & 1 deletion scripts/variantstore/wdl/GvsExtractCallset.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ workflow GvsExtractCallset {
output_gcs_dir = output_gcs_dir,
split_intervals_disk_size_override = split_intervals_disk_size_override,
split_intervals_mem_override = split_intervals_mem_override,
service_account_json_path = service_account_json_path
service_account_json_path = service_account_json_path,
gatk_override = gatk_override
}

call Utils.GetBQTablesMaxLastModifiedTimestamp {
Expand Down
26 changes: 22 additions & 4 deletions scripts/variantstore/wdl/GvsExtractCohortFromSampleNames.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ workflow GvsExtractCohortFromSampleNames {
String query_project
String gvs_project
String gvs_dataset
String cohort_table_prefix

# not using the defaults in GvsPrepareCallset because we're using pre created datasets defined by the caller
String fq_gvs_extraction_destination_dataset
String fq_gvs_extraction_temp_tables_dataset

String extraction_uuid
String? output_gcs_dir
String? service_account_json_path

# Extract parameters
File wgs_intervals
Expand All @@ -40,12 +42,17 @@ workflow GvsExtractCohortFromSampleNames {
Float? snps_truth_sensitivity_filter_level_override
Float? indels_truth_sensitivity_filter_level_override

Int? extract_preemptible_override
Int? extract_maxretries_override
Int? split_intervals_disk_size_override
Int? split_intervals_mem_override

File? gatk_override
}

call GvsPrepareCallset.GvsPrepareCallset {
input:
destination_cohort_table_prefix = extraction_uuid,
destination_cohort_table_prefix = cohort_table_prefix,
sample_names_to_extract = cohort_sample_names,
data_project = gvs_project,
query_labels = ["extraction_uuid=~{extraction_uuid}"],
Expand All @@ -54,15 +61,16 @@ workflow GvsExtractCohortFromSampleNames {
fq_petvet_dataset = "~{gvs_project}.~{gvs_dataset}",
fq_sample_mapping_table = "~{gvs_project}.~{gvs_dataset}.sample_info",
fq_temp_table_dataset = fq_gvs_extraction_temp_tables_dataset,
fq_destination_dataset = fq_gvs_extraction_destination_dataset
fq_destination_dataset = fq_gvs_extraction_destination_dataset,
service_account_json_path = service_account_json_path
}

call GvsExtractCallset.GvsExtractCallset {
input:
data_project = gvs_project,
query_project = query_project,
default_dataset = gvs_dataset,
extract_table_prefix = extraction_uuid,
extract_table_prefix = cohort_table_prefix,

wgs_intervals = wgs_intervals,
scatter_count = scatter_count,
Expand All @@ -78,7 +86,17 @@ workflow GvsExtractCohortFromSampleNames {

output_file_base_name = output_file_base_name,
output_gcs_dir = output_gcs_dir,
gatk_override = gatk_override
service_account_json_path = service_account_json_path,
gatk_override = gatk_override,
fq_samples_to_extract_table = "~{GvsPrepareCallset.fq_cohort_extract_table_prefix}__SAMPLES",
fq_ranges_cohort_vet_extract_table = "~{GvsPrepareCallset.fq_cohort_extract_table_prefix}__VET_DATA",
fq_ranges_cohort_ref_extract_table = "~{GvsPrepareCallset.fq_cohort_extract_table_prefix}__REF_DATA",

extract_preemptible_override = extract_preemptible_override,
extract_maxretries_override = extract_maxretries_override,
split_intervals_disk_size_override = split_intervals_disk_size_override,
split_intervals_mem_override = split_intervals_mem_override

}

output {
Expand Down

0 comments on commit d2ebecb

Please sign in to comment.