@@ -2,7 +2,9 @@ process PEACH {
2
2
tag " ${ meta.id} "
3
3
label ' process_single'
4
4
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' } "
6
8
7
9
input:
8
10
tuple val(meta), path(germline_vcf)
@@ -20,21 +22,22 @@ process PEACH {
20
22
script:
21
23
def args = task. ext. args ?: ' '
22
24
25
+ def xmx_mod = task. ext. xmx_mod ?: 0.75
26
+
23
27
"""
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/
34
37
35
38
cat <<-END_VERSIONS > versions.yml
36
39
"${ task.process} ":
37
- peach: \$ (java -jar /opt/ peach/peach.jar -version | sed ' s/^.* //')
40
+ peach: \$ (peach -version | sed -n '/Peach version/ { s/^.* //p } ')
38
41
END_VERSIONS
39
42
"""
40
43
0 commit comments