Skip to content

Commit 436c16b

Browse files
committed
uniform module loading
1 parent 0de30af commit 436c16b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

main.nf

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ process check_do_merge {
5959

6060
process tar {
6161
publishDir "${alpha}/logs/${fcid}/archive/tar/", mode:'copy', failOnError: true, pattern: '.command.*'
62-
62+
module "$PBZIP2_MODULE"
6363
tag "${fcid}"
6464

6565
output:
@@ -70,7 +70,6 @@ process tar {
7070
"""
7171
# need the h flag to follow symlinks (?)
7272
# tar hcvjf ${run_dir_name}.tar.bz2 ${run_dir_path}
73-
module load pbzip2/1.1.13
7473
tar -c ${run_dir_path} | pbzip2 -c -p${task.cpus} -m2000 > ${run_dir_name}.tar.bz2
7574
"""
7675
}
@@ -104,6 +103,9 @@ process _basecall {
104103

105104
tag "${fcid}"
106105

106+
module "$PICARD_MODULE"
107+
108+
107109
input:
108110
val lane
109111

@@ -136,9 +138,6 @@ process _basecall {
136138
tmp_work_dir="${tmp_dir}${fcid}/${lane}"
137139
mkdir -p \$tmp_work_dir
138140
139-
module load $PICARD_MODULE
140-
module load $JDK_MODULE
141-
142141
java -jar -Xmx58g \$PICARD_JAR IlluminaBasecallsToFastq \
143142
LANE=${lane} \
144143
READ_STRUCTURE=\${read_structure} \
@@ -217,7 +216,7 @@ process demux_reports {
217216

218217
tag "${fcid}"
219218

220-
module "anaconda3/2020.07"
219+
module "$ANACONDA_MODULE"
221220
conda "/scratch/cgsb/gencore/mk5636/conda/slime"
222221

223222
input:
@@ -354,7 +353,7 @@ process multiqc {
354353

355354
tag "${fcid}"
356355

357-
module "multiqc/1.9"
356+
module "$MULTIQC_MODULE"
358357

359358
input:
360359
tuple(val(path_to_data), path(fastqc))

nextflow.config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ env.archive_path=""
99

1010
// modules
1111
env.PICARD_MODULE = "picard/2.23.8"
12-
env.PYTHON_MODULE = "interop/python3.6/1.1.4"
1312
env.PHENIQS_MODULE = "pheniqs/1.1.0"
14-
env.JDK_MODULE = "jdk/1.8.0_271"
13+
env.PBZIP2_MODULE = "pbzip2/1.1.13"
14+
env.MULTIQC_MODULE = "multiqc/1.9"
15+
env.ANACONDA_MODULE = "anaconda3/2020.07"
1516

1617
// nextflow work dir
1718
workDir = ""

0 commit comments

Comments
 (0)