-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnextflow.config
More file actions
111 lines (98 loc) · 4.6 KB
/
nextflow.config
File metadata and controls
111 lines (98 loc) · 4.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
manifest {
name = 'RAIN'
author = 'Jacques Dainat, Eduardo Ascarrunz'
homePage = 'https://github.com/Juke34/RAIN'
description = 'RNA Alterations Investigation using Nextflow'
mainScript = 'rain.nf'
nextflowVersion = '>=22.04.0'
version = '0.1'
}
// default parameters
params {
// to store general information about pipeline execution
pipeline_report="pipeline_report"
monochrome_logs = false
}
// Include a base config (2 forks of 1 CPU)
includeConfig "$baseDir/config/resources/base.config"
profiles {
itrop {
process {
executor = 'slurm' // Tells Nextflow to submit jobs using the SLURM workload manager
maxForks = 12 // Limits the maximum number of jobs that can be submitted concurrently for that process
shell = ['/bin/bash', '-euo', 'pipefail'] // Shell options: -e: Exit immediately on error (non-zero exit status); -u: Treat unset variables as an error; -o pipefail: The pipeline fails if any command in the pipeline fails
queue = 'normal' // Submits jobs to the SLURM partition (also called “queue”) named normal.
scratch = false // Use shared file system, not local node /tmp
stageOutMode = 'move' // Move is safe on shared FS and faster than copy
publishDirMode = 'rsync' // For final outputs, copy to results folder
errorStrategy = 'retry' // Retry failing jobs automatically
maxRetries = 3 // Retry up to 3 times
clusterOptions = "--constraint=infiniband" // extra parameters provided to the scheduler
}
singularity.enabled = true
params.sifPath = "${baseDir}/sif_images"
// singularity.envWhitelist = '' // Comma separated list of environment variable names to be included in the container environment.
includeConfig "$baseDir/config/softwares.config"
includeConfig "$baseDir/config/resources/hpc.config"
}
debug { process.beforeScript = 'env' }
docker {
docker.enabled = true
singularity.enabled = false // This attribute needs to exist for selecting the containers in config/softwares.config
includeConfig "$baseDir/config/softwares.config"
docker.runOptions='-u "$( id -u ):$( id -g )"'
}
singularity {
singularity.enabled = true
sifPath = "${baseDir}/sif_images"
includeConfig "$baseDir/config/softwares.config"
}
local {
includeConfig "$baseDir/config/resources/local.config"
}
test_short_single_list {
params.aligner = "STAR"
params.reads = "${baseDir}/data/chr21/rain_chr21_small_R1.fastq.gz,${baseDir}/data/chr21/rain_chr21_small_R2.fastq.gz"
params.genome = "${baseDir}/data/chr21/chr21_small.fasta.gz"
params.annotation = "${baseDir}/data/chr21/chr21_small_filtered.gff3.gz"
params.strandedness = "ISR"
params.read_type = "short_single"
}
test_short_paired_folder {
params.aligner = "STAR"
params.reads = "${baseDir}/data/chr21/"
params.genome = "${baseDir}/data/chr21/chr21_small.fasta.gz"
params.annotation = "${baseDir}/data/chr21/chr21_small_filtered.gff3.gz"
params.strandedness = "ISR"
params.read_type = "short_paired"
}
test_short_single_csv {
params.aligner = "STAR"
params.reads = "${baseDir}/data/chr21/chr21_small_single.csv"
params.genome = "${baseDir}/data/chr21/chr21_small.fasta.gz"
params.annotation = "${baseDir}/data/chr21/chr21_small_filtered.gff3.gz"
}
test_mix_csv {
params.aligner = "STAR"
params.reads = "${baseDir}/data/chr21/chr21_small_mix.csv"
params.genome = "${baseDir}/data/chr21/chr21_small.fasta.gz"
params.annotation = "${baseDir}/data/chr21/chr21_small_filtered.gff3.gz"
}
}
resume = true
timeline {
enabled = true
file = "${params.pipeline_report}/execution_timeline_${new Date().format('yyyyMMddHHmmss')}.html"
}
report {
enabled = true
file = "${params.pipeline_report}/execution_report_${new Date().format('yyyyMMddHHmmss')}.html"
}
trace {
enabled = true
file = "${params.pipeline_report}/execution_trace_${new Date().format('yyyyMMddHHmmss')}.txt"
}
dag {
enabled = true
file = "${params.pipeline_report}/pipeline_dag_${new Date().format('yyyyMMddHHmmss')}.svg"
}