Skip to content

Commit eb92dc9

Browse files
committed
Apply fixes, linting
1 parent fdb5d8c commit eb92dc9

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

modules/local/peach/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ channels:\n\
1212
- defaults'
1313

1414
RUN \
15-
conda create -y -p /env/ \
16-
'openjdk >=8'
15+
conda create -y -p /env/ \
16+
'openjdk >=8'
1717

1818
RUN \
19-
mkdir -p /opt/peach/ && \
20-
wget -O /opt/peach/peach.jar 'https://github.com/hartwigmedical/hmftools/releases/download/peach-v2.0.0/peach_v2.0.0.jar'
19+
mkdir -p /opt/peach/ && \
20+
wget -O /opt/peach/peach.jar 'https://github.com/hartwigmedical/hmftools/releases/download/peach-v2.0.0/peach_v2.0.0.jar'
2121

2222
RUN \
2323
conda clean -yaf

modules/local/peach/main.nf

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ process PEACH {
4242
"""
4343
mkdir -p peach/
4444
45-
touch peach/${meta.tumor_id}.peach.events.tsv
46-
touch peach/${meta.tumor_id}.peach.gene.events.tsv
47-
touch peach/${meta.tumor_id}.peach.haplotypes.all.tsv
48-
touch peach/${meta.tumor_id}.peach.haplotypes.best.tsv
49-
touch peach/${meta.tumor_id}.peach.qc.tsv
45+
touch peach/${meta.sample_id}.peach.events.tsv
46+
touch peach/${meta.sample_id}.peach.gene.events.tsv
47+
touch peach/${meta.sample_id}.peach.haplotypes.all.tsv
48+
touch peach/${meta.sample_id}.peach.haplotypes.best.tsv
49+
touch peach/${meta.sample_id}.peach.qc.tsv
5050
5151
echo -e '${task.process}:\\n stub: noversions\\n' > versions.yml
5252
"""

subworkflows/local/peach_calling/main.nf

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ workflow PEACH_CALLING {
3434
]
3535
}
3636
.branch { meta, purple_dir ->
37-
runnable: purple_dir
37+
38+
def has_normal = Utils.hasNormalDna(meta)
39+
40+
runnable: purple_dir && has_normal
3841
skip: true
3942
return meta
4043
}

0 commit comments

Comments
 (0)