forked from BCCDC-PHL/amplicone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
98 lines (72 loc) · 1.87 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
manifest {
author = 'BCCDC-PHL: Tara Newman. ART: Weichun Huang, Leping Li, Jason R. Myers, Gabor T. Marth'
description = 'Nextflow for running ART read simuator with modifications for amplicon sequencing and varying amplicon depth.'
mainScript = 'main.nf'
nextflowVersion = '>=20.01.0'
version = '0.1.0'
}
def stringIFY(dir){
fasta_dir_string = params.fasta_dir.toString() + '/*'
return fasta_dir_string
}
params {
// Boilerplate options
bed = false
profile = false
help = false
outdir = './results'
tracedir = "${params.outdir}/pipeline_info"
// directory of fastas to convert to amplicons
fasta_dir = 'NO_FILE'
// turn into search string for Nextflow
fasta_dir_string = stringIFY(params.fasta_dir)
// error model for R1
model_R1 = 'NO_FILE'
// error model for R2
model_R2 = 'NO_FILE'
// simulated read depths - csv file of individual amplicon depth
amplicon_depths = 'NO_FILE'
// vary amplicon depths
vary_amplicon_depths = false
// simulated read depth
depth = 50
// mean genomic fragment size
fragment_mean = 600
// genomic fragment standard deviation
fragment_sd = 75
// simulated read length
read_length = 150
// length of ends to add extra depth for
end_length = 100
}
profiles {
conda {
process.conda = "$baseDir/environments/environment.yml"
if (params.cache) {
conda.cacheDir = params.cache
}
}
}
// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']
process {
withLabel: largecpu {
cpus = 8
}
}
timeline {
enabled = false
file = "${params.tracedir}/execution_timeline.html"
}
report {
enabled = false
file = "${params.tracedir}/execution_report.html"
}
trace {
enabled = false
file = "${params.tracedir}/execution_trace.txt"
}
dag {
enabled = false
file = "${params.tracedir}/pipeline_dag.svg"
}