Skip to content

Commit

Permalink
manual add of vat val #3
Browse files Browse the repository at this point in the history
  • Loading branch information
rsasch committed Jul 21, 2021
1 parent c0d3432 commit 373e486
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion scripts/variantstore/wdl/GvsValidateVAT.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ workflow GvsValidateVatTable {
last_modified_timestamp = GetBQTableLastModifiedDatetime.last_modified_timestamp
}

call SpotCheckForExpectedTranscripts {
input:
query_project_id = query_project_id,
fq_vat_table = fq_vat_table,
service_account_json_path = service_account_json_path,
last_modified_timestamp = GetBQTableLastModifiedDatetime.last_modified_timestamp
}

call SchemaOnlyOneRowPerNullTranscript {
input:
query_project_id = query_project_id,
Expand All @@ -36,7 +44,7 @@ workflow GvsValidateVatTable {
}

output {
Array[Map[String, String]] validation_results = [EnsureVatTableHasVariants.result, SchemaOnlyOneRowPerNullTranscript.result]
Array[Map[String, String]] validation_results = [EnsureVatTableHasVariants.result, SpotCheckForExpectedTranscripts.result, SchemaOnlyOneRowPerNullTranscript.result]
}
}

Expand Down Expand Up @@ -90,6 +98,35 @@ task EnsureVatTableHasVariants {
}
}

task SpotCheckForExpectedTranscripts {
input {
String query_project_id
String fq_vat_table
String? service_account_json_path
String last_modified_timestamp
}

String has_service_account_file = if (defined(service_account_json_path)) then 'true' else 'false'

command <<<

>>>

# ------------------------------------------------
# Runtime settings:
runtime {
docker: "gcr.io/google.com/cloudsdktool/cloud-sdk:305.0.0"
memory: "1 GB"
preemptible: 3
cpu: "1"
disks: "local-disk 100 HDD"
}

output {
Map[String, String] result = {"SpotCheckForExpectedTranscripts": read_string('validation_results.txt')}
}
}

task SchemaOnlyOneRowPerNullTranscript {
input {
String query_project_id
Expand Down

0 comments on commit 373e486

Please sign in to comment.