-
Notifications
You must be signed in to change notification settings - Fork 4
/
nextflow.config
118 lines (96 loc) · 2.78 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
manifest {
author = 'connor-lab: Matt Bull, Sendu Bala. BCCDC-PHL: Dan Fornika. oicr-gsi: Jared Simpson, Michael Laszloffy'
description = 'Nextflow for running the Artic mpxv pipeline'
mainScript = 'main.nf'
name = 'BCCDC-PHL/mpxv-artic-nf'
nextflowVersion = '>=20.01.0'
version = '0.1.2'
}
def makeFastqSearchPath ( illuminaSuffixes, fastq_exts ) {
if ( params.directory ) {
def fastq_searchpath = []
for (item in illuminaSuffixes){
for(thing in fastq_exts){
fastq_searchpath.add(params.directory.toString() + '/**' + item.toString() + thing.toString())
}
}
return fastq_searchpath
}
}
params {
illuminaSuffixes = ['*_R{1,2}_001', '*_R{1,2}', '*_{1,2}' ]
fastq_exts = ['.fastq.gz', '.fq.gz']
fastqSearchPath = makeFastqSearchPath( params.illuminaSuffixes, params.fastq_exts )
// Boilerplate options
directory = false
prefix = false
ref = false
bed = false
gff = 'NO_FILE'
primer_pairs_tsv = 'NO_FILE'
profile = false
help = false
outdir = './results'
tracedir = "${params.outdir}/pipeline_info"
// depth normalization
skip_normalize_depth = false
// host filtering
composite_ref = false
viral_contig_name = 'NC_063383.1'
// Repo to download your primer scheme from
schemeRepoURL = 'https://github.com/BCCDC-PHL/artic-mpxv2022.git'
// Directory within schemeRepoURL that contains primer schemes
schemeDir = 'primer_schemes'
// Scheme name
scheme = 'mpxv-2022'
// Scheme version
schemeVersion = 'V2.4'
// Target depth for bbnorm kmer-based depth normalization
normalizationTargetDepth = 200
// Minimum depth for bbnorm kmer-based depth normalization
normalizationMinDepth = 5
// Length of reads to keep after primer trimming
keepLen = 50
// Sliding window quality threshold for keeping reads after primer trimming (illumina)
qualThreshold = 20
// frequency threshold to call ambiguous variant
varMinFreqThreshold = 0.25
// frequency threshold for unambiguous variant
varFreqThreshold = 0.75
// Minimum coverage depth to call variant
varMinDepth = 10
}
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
}
withName: makeQCCSV {
conda = "$baseDir/environments/extras.yml"
}
}
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"
}