-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
107 lines (91 loc) · 2.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
#! /usr/bin/env nextflow
// covid_analysis - NextFlow configuration script
params {
// These 3 variables should be passed in through the command line for each plate so you don't have to edit the config with each one.
// plate = ""
// fastqs = "./"
// meta = "./"
// Variables that are best kept in the config:
scheme_details = "$projectDir/scheme_details.csv"
out = "$launchDir/output"
// we have our kraken db as a softlink (at the path below) to another location
kraken_db = "$projectDir/human_kraken_db"
// Edit if more source labs added (leave as empty string )
// If reportMap is an empty string (''), we'll write out one file for samples from each source lab and one combined report file
// reportMap = ''
// // If reportMap is an empty python dict ('{}'), only the report file will be produced
// reportMap = '{}'
// // If reportMap is a filled python dict ('{}'), we'll write out one file for samples from each dict key and one combined report file
// This is a python dictionary mapping the NAME that will appear in the report name (Sequencing-report-NAME.csv) to:
// the SOURCE_LAB(s) to include and (default: same as NAME)
// a string that must be in the sample names (default: None)
// If supplying a config, all source labs that need an individual report must be listed. Use an empty dict if accepting the defaults.
// notice how lines must end with '\' if spanning multiple lines with text
reportMap = "\
{'Mecklenburg':{\
'source_lab':'Starmed|StarMed',\
'limit_to':'MCPH'\
},\
'StarMed':{\
'source_lab':'Starmed|StarMed'\
},\
'Campus':{},\
'Mission':{}\
}"
maxCpus = 16
maxMem = '12 GB'
}
// source for below code: https://github.com/CFSAN-Biostatistics/C-WAP/blob/main/nextflow.config
process {
shell = ['/bin/bash','-e']
//clusterOptions = '-x n141,n147,n225,n227,n228'
}
// This block needs to be modified to customise for the available computational resources
profiles {
local_only {
process.executor = 'local'
}
// For more on executors, see https://www.nextflow.io/docs/latest/process.html#executor
standard {
executor {
name = 'slurm'
queueSize = 400
// queueStatInterval = '30 sec'
}
process {
executor = 'slurm'
// queue = <partition name here>
time = '1 h'
cpus = 2
memory = '8 GB'
withLabel: high_cpu {
cpus = 20
}
}
}
aws {
executor {
name = 'slurm'
queueSize = 400
}
process {
time = '1 h'
cpus = 2
memory = '8 GB'
withLabel: high_cpu {
cpus = 15
}
withLabel: high_IO {
// Execute only a few at a time.
// This reduces storage IO by avoiding concurrent read access.
maxForks = 2
}
}
}
}
conda {
enabled = true
// cacheDir = "$projectDir/conda"
// createOptions = '-c bioconda -c conda-forge -c defaults'
// conda.createTimeout = '3 h'
}