Skip to content

Commit 1f9990e

Browse files
authored
Kvg locityper tweaks (#70)
* Tweak memory and disk space for tasks * Allow Rescue to retry * Disk space allocation proportional to number of loci to evaluate
1 parent 18ffef0 commit 1f9990e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

wdl/RescueAndLocityper.wdl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ task Rescue {
245245
}
246246

247247
Int disk_size_gb = 1 + 2*ceil(size([long_reads_fastx, short_reads_cram, short_reads_crai, ref_fa_with_alt, ref_fai_with_alt, ref_cache_tar_gz], "GB"))
248-
Int memory_gb = 5*num_cpus
248+
Int memory_gb = 6*num_cpus
249249

250250
command <<<
251251
set -euxo pipefail
@@ -274,7 +274,7 @@ task Rescue {
274274
memory: "~{memory_gb} GB"
275275
cpu: num_cpus
276276
disks: "local-disk ~{disk_size_gb} SSD"
277-
maxRetries: 0
277+
maxRetries: 2
278278
}
279279
}
280280

@@ -354,11 +354,13 @@ task LocityperPreprocessAndGenotype {
354354
String docker = "eichlerlab/locityper:0.19.1"
355355
}
356356

357-
Int disk_size = 80 + ceil(size(select_all([input_fq1, input_fq2, counts_file, reference, reference_index, db_targz]), "GiB"))
357+
Int disk_size = 1 + 1*length(locus_names) + 2*ceil(size(select_all([input_fq1, input_fq2, counts_file, reference, reference_index, db_targz]), "GiB"))
358358
String output_tar = sample_id + ".locityper.tar.gz"
359359

360360
command <<<
361361
set -euxo pipefail
362+
363+
df -h
362364
363365
gunzip -c ~{reference} > reference.fa
364366
samtools faidx reference.fa

0 commit comments

Comments
 (0)