Skip to content

Commit

Permalink
correct disk size expression
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaning1120 committed Sep 13, 2024
1 parent c8f8efb commit f2a0a6c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions PeddyAnalysis/PeddyAnalysis.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,12 @@ task CombineGVCFs {
File interval_list
Array[File] family_gvcfs
Int memory = 32
Int disk_size = size(reference_fasta, 'GB') +
size(reference_fasta_index, 'GB') +
size(reference_dict, 'GB') +
size(interval_list, 'GB') +
sum(size(family_gvcfs, 'GB')) + disk_pad
Int disk_size = ceil(size(reference_fasta, 'GB') +
size(reference_fasta_index, 'GB') +
size(reference_dict, 'GB') +
(length(family_gvcfs) * 5)) + disk_pad
Int disk_pad = 32
Int preemptible = 2
}
Expand Down Expand Up @@ -447,6 +447,8 @@ task CombineGVCFs {
docker: "us.gcr.io/broad-gatk/gatk:4.6.0.0"
memory: memory + "GB"
disks: "local-disk " + disk_size + " HDD"
maxRetries: 2
preemptible: "${preemptible}"
}
}
Expand All @@ -457,16 +459,17 @@ task GenotypeGVCFs {
File reference_fasta_index
File reference_dict
String output_prefix
Int disk_size = 32
Int disk_pad = 32
Int disk_size = ceil(size(combined_gvcf, "GB") + disk_pad
Int memory = 32
Int preemptible = 2
}
command <<<
bcftools index -t ~{combined_gvcf} > ~{output_prefix}.g.vcf.gz.tbi
# genotype grouped a multiple-sample gVCF
gatk GenotypeGVCFs \
-R ~{reference_fasta} \
Expand All @@ -486,6 +489,8 @@ task GenotypeGVCFs {
memory: memory + "GB"
cpu: "2"
disks: "local-disk " + disk_size + " HDD"
maxRetries: 2
preemptible: "${preemptible}"
}
}
Expand Down

0 comments on commit f2a0a6c

Please sign in to comment.