Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose optional input parameter disk_size for kraken2 standalone wfs #316

Merged
merged 7 commits into from
Feb 8, 2024
3 changes: 2 additions & 1 deletion tasks/taxon_id/task_kraken2.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ task kraken2_standalone {
String unclassified_out = "unclassified#.fastq"
Int mem = 32
Int cpu = 4
Int disk_size = 100
}
command <<<
echo $(kraken2 --version 2>&1) | sed 's/^.*Kraken version //;s/ .*$//' | tee VERSION
Expand Down Expand Up @@ -138,7 +139,7 @@ task kraken2_standalone {
docker: "~{docker}"
memory: "~{mem} GB"
cpu: cpu
disks: "local-disk 100 SSD"
disks: "local-disk " + disk_size + " SSD"
preemptible: 0
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@
- path: miniwdl_run/wdl/tasks/taxon_id/task_gambit.wdl
md5sum: 4e1d4f6b8085a209f9721748a0c0fef0
- path: miniwdl_run/wdl/tasks/taxon_id/task_kraken2.wdl
md5sum: 164c9186746bfc4c89907a43af56328c
md5sum: 37a1bccc53b5ff8e1968f07a85bb328f
- path: miniwdl_run/wdl/tasks/taxon_id/task_midas.wdl
md5sum: faacd87946ee3fbdf70f3a15b79ce547
- path: miniwdl_run/wdl/tasks/utilities/task_broad_terra_tools.wdl
Expand Down
4 changes: 2 additions & 2 deletions tests/workflows/theiaprok/test_wf_theiaprok_illumina_se.yml
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@
- path: miniwdl_run/wdl/tasks/taxon_id/task_gambit.wdl
md5sum: 4e1d4f6b8085a209f9721748a0c0fef0
- path: miniwdl_run/wdl/tasks/taxon_id/task_kraken2.wdl
md5sum: 164c9186746bfc4c89907a43af56328c
md5sum: 37a1bccc53b5ff8e1968f07a85bb328f
- path: miniwdl_run/wdl/tasks/taxon_id/task_midas.wdl
md5sum: faacd87946ee3fbdf70f3a15b79ce547
- path: miniwdl_run/wdl/tasks/utilities/task_broad_terra_tools.wdl
Expand All @@ -602,6 +602,6 @@
- path: miniwdl_run/wdl/workflows/utilities/wf_merlin_magic.wdl
md5sum: 90eb6ac7463058a81da77120aa45138b
- path: miniwdl_run/wdl/workflows/utilities/wf_read_QC_trim_se.wdl
md5sum: 891579890a8a46d794d0cc9dee38c29a
md5sum: 10e8a4bad676c1a5eedf01f65bc70fda
- path: miniwdl_run/workflow.log
contains: ["wdl", "theiaprok_illumina_se", "NOTICE", "done"]
6 changes: 5 additions & 1 deletion workflows/utilities/wf_read_QC_trim_pe.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ workflow read_QC_trim_pe {
Boolean call_midas = false
File? midas_db
Boolean call_kraken = false
Int? kraken_disk_size
Int? kraken_memory
File? kraken_db
String? target_org
File? adapters
Expand Down Expand Up @@ -132,7 +134,9 @@ workflow read_QC_trim_pe {
samplename = samplename,
read1 = read1_raw,
read2 = read2_raw,
kraken2_db = select_first([kraken_db])
kraken2_db = select_first([kraken_db]),
disk_size = kraken_disk_size,
mem = kraken_memory
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion workflows/utilities/wf_read_QC_trim_se.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ workflow read_QC_trim_se {
File? midas_db
Boolean call_kraken = false
File? kraken_db
Int? kraken_disk_size
Int? kraken_memory
String read_processing = "trimmomatic" # options: trimmomatic, fastp
String read_qc = "fastq_scan" # options: fastq_scan, fastqc
String fastp_args = "-g -5 20 -3 20"
Expand Down Expand Up @@ -104,7 +106,9 @@ workflow read_QC_trim_se {
input:
samplename = samplename,
read1 = read1_raw,
kraken2_db = select_first([kraken_db])
kraken2_db = select_first([kraken_db]),
disk_size = kraken_disk_size,
mem = kraken_memory
}
}
}
Expand Down