Skip to content

Commit

Permalink
VS-942. Fix an error where NO variants were found (#8388)
Browse files Browse the repository at this point in the history
* Fix a bug where there were NO variants in a range.
  • Loading branch information
gbggrant authored Jun 28, 2023
1 parent 500b88a commit 8813ed0
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion .dockstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ workflows:
branches:
- master
- ah_var_store
- gg_VS-987_OutOfDateDocker
- name: GvsImportGenomes
subclass: WDL
primaryDescriptorPath: /scripts/variantstore/wdl/GvsImportGenomes.wdl
Expand Down
8 changes: 4 additions & 4 deletions scripts/variantstore/wdl/GvsCreateFilterSet.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ task ExtractFilterTask {
>>>

runtime {
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
memory: "7 GB"
disks: "local-disk 10 HDD"
bootDiskSizeGb: 15
Expand Down Expand Up @@ -397,7 +397,7 @@ task PopulateFilterSetInfo {
>>>

runtime {
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
memory: "3500 MB"
disks: "local-disk 250 HDD"
bootDiskSizeGb: 15
Expand Down Expand Up @@ -457,7 +457,7 @@ task PopulateFilterSetSites {
>>>

runtime {
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
memory: "3500 MB"
disks: "local-disk 200 HDD"
bootDiskSizeGb: 15
Expand Down Expand Up @@ -509,7 +509,7 @@ task PopulateFilterSetTranches {
>>>

runtime {
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
memory: "3500 MB"
disks: "local-disk 200 HDD"
bootDiskSizeGb: 15
Expand Down
2 changes: 1 addition & 1 deletion scripts/variantstore/wdl/GvsExtractCallset.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ task ExtractTask {
echo ~{interval_index},${OUTPUT_FILE_DEST},${OUTPUT_FILE_BYTES},${OUTPUT_FILE_INDEX_DEST},${OUTPUT_FILE_INDEX_BYTES} >> manifest.txt
>>>
runtime {
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
memory: "12 GB"
disks: "local-disk 150 HDD"
bootDiskSizeGb: 15
Expand Down
2 changes: 1 addition & 1 deletion scripts/variantstore/wdl/GvsImportGenomes.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ task LoadData {
>>>

runtime {
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
maxRetries: load_data_maxretries
memory: "3.75 GB"
disks: "local-disk 50 HDD"
Expand Down
2 changes: 1 addition & 1 deletion scripts/variantstore/wdl/GvsJointVariantCalling.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ workflow GvsJointVariantCalling {
Int SNP_VQSR_CLASSIC_mem_gb_override = ""
}
# This is the most updated snapshot of the code as of June 22, 2023
File gatk_override = "gs://gvs_quickstart_storage/jars/gatk-package-4.2.0.0-726-g63a0bea-SNAPSHOT-local.jar"
File gatk_override = "gs://gvs_quickstart_storage/jars/gatk-package-4.2.0.0-721-ga778e4c-SNAPSHOT-local.jar"
File interval_list = "gs://gcp-public-data--broad-references/hg38/v0/wgs_calling_regions.hg38.noCentromeres.noTelomeres.interval_list"

File interval_weights_bed = "gs://broad-public-datasets/gvs/weights/gvs_vet_weights_1kb.bed"
Expand Down
4 changes: 2 additions & 2 deletions scripts/variantstore/wdl/GvsUtils.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ task MergeVCFs {
}

runtime {
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
preemptible: select_first([preemptible_tries, 3])
memory: "3 GiB"
disks: "local-disk ~{disk_size} HDD"
Expand Down Expand Up @@ -127,7 +127,7 @@ task SplitIntervals {
>>>

runtime {
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
bootDiskSizeGb: 15
memory: "~{disk_memory} GB"
disks: "local-disk ~{disk_size} HDD"
Expand Down
2 changes: 1 addition & 1 deletion scripts/variantstore/wdl/GvsWarpTasks.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ task GatherTranches {
bootDiskSizeGb: 15
disks: "local-disk " + disk_size + " HDD"
preemptible: 1
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_21"
docker: "us.gcr.io/broad-dsde-methods/broad-gatk-snapshots:varstore_2023_06_22"
}

output {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ void createVariantsFromSortedRanges(final SortedSet<Long> sampleIdsToExtract,
}

// finish writing out reference rows
if (lastSample != maxSampleId) {
if ((lastSample != null) && (lastSample != maxSampleId)) {
processReferenceData(currentPositionRecords, sortedReferenceRangeIterator, referenceCache, lastPosition, lastSample + 1, maxSampleId, sampleIdsToExtract);
}

Expand Down

0 comments on commit 8813ed0

Please sign in to comment.