Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Commit 3cbe715

Browse files
authored
Merge pull request #23 from ewels/master
Made env module MultiQC load only if not already found in PATH
2 parents 3266ece + 69e0e15 commit 3cbe715

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.nf

+3-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,6 @@ process sample_correlation {
670670
*/
671671
process multiqc {
672672
module 'bioinfo-tools'
673-
module 'MultiQC'
674673

675674
memory '4GB'
676675
time '4h'
@@ -694,7 +693,10 @@ process multiqc {
694693
file '*multiqc_report.html'
695694
file '*multiqc_data'
696695

696+
script:
697697
"""
698+
# Load MultiQC with environment module if not already in PATH
699+
type multiqc >/dev/null 2>&1 || { module load multiqc; };
698700
multiqc -f -t ngi .
699701
"""
700702
}

0 commit comments

Comments
 (0)