Skip to content

Commit 66854cb

Browse files
committed
Switch to PEACH BioContainers, update command
1 parent eb92dc9 commit 66854cb

File tree

2 files changed

+15
-44
lines changed

2 files changed

+15
-44
lines changed

modules/local/peach/Dockerfile

-32
This file was deleted.

modules/local/peach/main.nf

+15-12
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ process PEACH {
22
tag "${meta.id}"
33
label 'process_single'
44

5-
container 'docker.io/scwatts/peach:2.0--0'
5+
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
6+
'https://depot.galaxyproject.org/singularity/hmftools-peach:2.0.0--hdfd78af_1' :
7+
'biocontainers/hmftools-peach:2.0.0--hdfd78af_1' }"
68

79
input:
810
tuple val(meta), path(germline_vcf)
@@ -20,21 +22,22 @@ process PEACH {
2022
script:
2123
def args = task.ext.args ?: ''
2224

25+
def xmx_mod = task.ext.xmx_mod ?: 0.75
26+
2327
"""
24-
java \\
25-
-Xmx${Math.round(task.memory.bytes * 0.95)} \\
26-
-jar /opt/peach/peach.jar \\
27-
${args} \\
28-
-sample_name ${meta.sample_id} \\
29-
-vcf_file ${germline_vcf} \\
30-
-haplotypes_file ${haplotypes} \\
31-
-function_file ${haplotype_functions} \\
32-
-drugs_file ${drug_info} \\
33-
-output_dir peach/
28+
peach \\
29+
-Xmx${Math.round(task.memory.bytes * xmx_mod)} \\
30+
${args} \\
31+
-sample_name ${meta.sample_id} \\
32+
-vcf_file ${germline_vcf} \\
33+
-haplotypes_file ${haplotypes} \\
34+
-function_file ${haplotype_functions} \\
35+
-drugs_file ${drug_info} \\
36+
-output_dir peach/
3437
3538
cat <<-END_VERSIONS > versions.yml
3639
"${task.process}":
37-
peach: \$(java -jar /opt/peach/peach.jar -version | sed 's/^.* //')
40+
peach: \$(peach -version | sed -n '/Peach version/ { s/^.* //p }')
3841
END_VERSIONS
3942
"""
4043

0 commit comments

Comments
 (0)