Skip to content

Commit 0649425

Browse files
committed
export CONDA_PREFIX into container when using Singularity and Apptainer
1 parent 03ac573 commit 0649425

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

modules/local/aspera_cli/main.nf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ process ASPERA_CLI {
1818

1919
script:
2020
def args = task.ext.args ?: ''
21+
def conda_prefix = ['singularity', 'apptainer'].contains(workflow.containerEngine) ? "export CONDA_PREFIX=/usr/local" : ""
2122
if (meta.single_end) {
2223
"""
24+
$conda_prefix
25+
2326
ascp \\
2427
$args \\
2528
-i \$CONDA_PREFIX/etc/aspera/aspera_bypass_dsa.pem \\
@@ -36,6 +39,8 @@ process ASPERA_CLI {
3639
"""
3740
} else {
3841
"""
42+
$conda_prefix
43+
3944
ascp \\
4045
$args \\
4146
-i \$CONDA_PREFIX/etc/aspera/aspera_bypass_dsa.pem \\

nextflow.config

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ try {
7070
// Workflow specific configs
7171
includeConfig './workflows/sra/nextflow.config'
7272

73-
// Load nf-core/fetchngs custom profiles from different institutions.
74-
// Warning: Uncomment only if a pipeline-specific institutional config already exists on nf-core/configs!
75-
// try {
76-
// includeConfig "${params.custom_config_base}/pipeline/fetchngs.config"
77-
// } catch (Exception e) {
78-
// System.err.println("WARNING: Could not load nf-core/config/fetchngs profiles: ${params.custom_config_base}/pipeline/fetchngs.config")
79-
// }
80-
8173
profiles {
8274
debug {
8375
dumpHashes = true

0 commit comments

Comments
 (0)