-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnextflow.config
187 lines (163 loc) · 5.83 KB
/
nextflow.config
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
//working directory for temporary/intermediate files produced in the workflow processes
workDir = "$HOME/temp"
//global parameters
params {
// general options
sample_sheet = "test_data/paired_end_sample_sheet.csv"
queue = 'paidq'
project = '207f23bf-acb6-4835-8bfe-142436acb58c'
// Input and output options
download_sra_fqs = false
outdir = "./paired_end_results/"
publish_dir_mode = 'copy'
// STAR specific params
index = '/gpfs/shared_data/STAR/human_GRCh38_ensembl_v106/star'
build_index = false
gtf = '/gpfs/shared_data/STAR/human_GRCh38_ensembl_v106/Homo_sapiens.GRCh38.106.gtf' // required
fasta = '/gpfs/shared_data/STAR/human_GRCh38_ensembl_v106/Homo_sapiens.GRCh38.dna.primary_assembly.fa' // required
star_ignore_sjdbgtf = false
seq_platform = ''
seq_center = ''
// trimgalore specific parameters
trim = false
// RSEQC specific parameters
rRNA_transcripts = '/gpfs/shared_data/rseqc/hg38/GRCh38_rRNA_transcripts.txt'
// fasterq-dump params
user_settings = './ncbi-user-settings.mkfg'
//MultiQC params
multiqc_config = ''
extra_multiqc_config = ''
multiqc_logo = ''
}
// Computational resource allocation for the processes run in the workflow
process {
publishDir = [
path: { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
errorStrategy = "retry"
maxRetries = 2
//STAR-aligner process specific parameters
//https://www.nextflow.io/docs/latest/process.html#dynamic-computing-resources
withName: STAR_ALIGN {
cpus = { 4 * task.attempt }
memory = { 32.GB * task.attempt }
ext.args = '--quantMode GeneCounts --outSAMtype BAM SortedByCoordinate --readFilesCommand "gunzip -c" --twopassMode Basic --twopass1readsN -1 --outSAMattributes NH HI NM MD AS nM jM jI XS'
}
withName: PICARD_MARKDUPLICATES {
cpus = { 2 * task.attempt }
memory = { 16.GB * task.attempt }
ext.args = ''
}
//STAR index process specific parameters
withName: STAR_GENOMEGENERATE {
cpus = { 8 * task.attempt }
memory = { 64.GB * task.attempt }
ext.args = ''
}
//Trimgalore process specific parameters
withName: TRIMGALORE {
cpus = { 2 * task.attempt }
memory = { 8.GB * task.attempt }
ext.args = ''
}
//FastQC process specific parameters
withName: FASTQC {
cpus = 1
memory = 8.GB
ext.args = '--quiet'
}
//RSEQC process params
withLabel: RSEQC {
cpus = { 1 * task.attempt }
memory = { 8.GB * task.attempt }
ext.args = ''
}
//RSEQC process params
withName: RSEQC_TIN {
cpus = { 1 * task.attempt }
memory = { 8.GB * task.attempt }
ext.args = ''
}
//RSEQC reference files params
withName: UCSC_GTFTOGENEPRED {
cpus = { 1 * task.attempt }
memory = { 8.GB * task.attempt }
ext.args = "-ignoreGroupsWithoutExons -geneNameAsName2 -genePredExt"
}
//MULTIQC process specific parameters
withName: MULTIQC {
cpus = 1
memory = 8.GB
ext.args = '--export --data-dir --verbose'
}
//SRA process specific parameters
withName: SRATOOLS_FASTERQDUMP {
cpus = { 2 * task.attempt }
memory = { 16.GB * task.attempt }
ext.args = '--verbose'
ext.args2 = '--verbose'
}
}
//Create profiles to easily switch between the different process executors and platforms.
profiles {
//For running on an interactive session on cybertron with singularity module loaded
local_singularity {
process.executor = 'local'
singularity.enabled = true
}
//For executing the jobs on the HPC cluster with singularity containers
PBS_singularity {
process.executor = 'pbspro'
process.queue = "${params.queue}"
process.clusterOptions = "-P ${params.project}"
process.beforeScript = 'module load singularity'
singularity.enabled = true
}
/*
//For executing the jobs on the HPC cluster with apptainer containers
PBS_apptainer {
process.executor = 'pbspro'
process.queue = "${params.queue}"
process.clusterOptions = "-P ${params.project}"
process.beforeScript = 'module load apptainer'
apptainer.enabled = true
}
//For running on cybertron with apptainer module loaded
local_apptainer {
process.executor = 'local'
apptainer.enabled = true
}
*/
}
// Set default registry for Apptainer, Docker, Podman and Singularity independent of -profile
// Will not be used unless Apptainer / Docker / Podman / Singularity are enabled
// Set to your registry if you have a mirror of containers
// https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/nextflow.config
apptainer.registry = 'quay.io'
docker.registry = 'quay.io'
podman.registry = 'quay.io'
singularity.registry = 'quay.io'
//Configs for singularity containers on cybertron
singularity {
autoMounts = true
cacheDir = "$HOME/singularity"
runOptions = '--containall --no-home'
}
apptainer {
autoMounts = true
cacheDir = "$HOME/apptainer"
runOptions = '--containall --no-home'
}
//Use personal conda environments on cybertron
conda {
cacheDir = "$HOME/miniconda3/envs/"
}
//overwrite reports when the workflow is executed again
report {
overwrite = true
}
dag {
overwrite = true
}