-
Notifications
You must be signed in to change notification settings - Fork 0
/
nextflow.config
executable file
·114 lines (101 loc) · 2.38 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
process {
withLabel:process_1{
cpus = 1
memory = 1.GB
}
withLabel:process_2{
cpus = 1
memory = 1.GB
}
withLabel:process_3{
cpus = 1
memory = 2.GB
}
}
profiles {
standard {
conda.enabled = true
conda.useMamba = false
process.executor = 'local'
}
cluster {
conda.enabled = true
conda.useMamba = false
process.executor = 'slurm'
process.queue = 'Compute'
}
debug {
process.beforeScript = 'echo $HOSTNAME'
}
test {
timeline.enabled = false
report.enabled = false
trace.enabled = false
dag.enabled = false
}
gitlab_ci {
// these resources are limited in Gitlab CI
process {
withLabel:process_1{
cpus = 1
memory = 1.GB
time = 1.h
}
withLabel:process_2{
cpus = 1
memory = 1.GB
time = 1.h
}
withLabel:process_3{
cpus = 1
memory = 1.GB
time = 1.h
}
}
conda.enabled = true
conda.useMamba = true
}
lenient {
// this will ignore errors in any given step of the pipeline and proceed
// quite helpful when you want to process larger cohorts and cannot guarantee
// that every step is run successfully
process.errorStrategy = 'ignore'
}
}
// Export this variable to prevent local Python libraries from conflicting with those in the container
env {
PYTHONNOUSERSITE = 1
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
VERSION = '0.1'
manifest {
name = 'TRON-Bioinformatics/nf-template'
author = 'Your Name'
homePage = ''
description = 'nf template'
mainScript = 'main.nf'
nextflowVersion = '23.10.1'
version = VERSION
}
params.help = false
params.input_table = false
params.output = false
// Here you could specify your minimal reference fasta file
// that you generated
params.reference_fasta = "${baseDir}/resources/minigenome_200.fasta"
params.help_message = """
NF template v${VERSION}
Usage:
nextflow run tron-bioinformatics/nf-template -profile cluster --input_table input_table --output output_path
Input:
* input_table: the path to a comma-separated values file containing in each row the sample name, FASTQ 1 and FASTQ 2 files.
The input table does not have header!
Example input file:
name1 fastq1 fastq2
name2 fastq1 fastq2
Optional input:
*
Output:
* Output
"""