Skip to content

Commit ba2a779

Browse files
committed
ensure cascadia can work in apptainer
1 parent 2ba110b commit ba2a779

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

container_images.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ params {
99
encyclopedia3_mriffle: 'quay.io/protio/encyclopedia:3.0.0-MRIFFLE',
1010
qc_pipeline: 'quay.io/mauraisa/dia_qc_report:2.3.1',
1111
proteowizard: 'quay.io/protio/pwiz-skyline-i-agree-to-the-vendor-licenses:3.0.24172-63d00b1',
12-
cascadia: 'quay.io/protio/cascadia:0.0.7',
12+
cascadia: 'quay.io/protio/cascadia:0.0.8',
1313
cascadia_utils: 'quay.io/protio/cascadia-utils:0.0.4'
1414
]
1515
}

modules/cascadia.nf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ process CASCADIA_SEARCH {
2020
// don't melt the GPU
2121
maxForks params.cascadia.use_gpu ? 1 : null
2222

23+
// add extra command for apptainer
24+
def extra_command = workflow.containerEngine in ['apptainer','singularity'] ? 'source /usr/local/bin/entrypoint.sh' : ''
25+
2326
input:
2427
path ms_file
2528

@@ -34,6 +37,7 @@ process CASCADIA_SEARCH {
3437
script:
3538

3639
"""
40+
${extra_command}
3741
cascadia sequence ${ms_file} /usr/local/bin/cascadia.ckpt --out ${ms_file.baseName}
3842
> >(tee "${ms_file.baseName}.stdout") 2> >(tee "${ms_file.baseName}.stderr" >&2)
3943

0 commit comments

Comments
 (0)