-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnextflow.config
70 lines (62 loc) · 1.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
manifest {
author = 'Dan Fornika'
name = 'BCCDC-PHL/downsample-reads'
version = '0.2.0'
description = 'Downsample Reads'
mainScript = 'main.nf'
nextflowVersion = '>=20.01.0'
}
params {
illumina_suffixes = ['*_R{1,2}_001', '*_R{1,2}', '*_{1,2}' ]
long_read_suffixes = ['*_RL', '*_L']
fastq_exts = ['.fastq.gz', '.fq.gz', '.fastq', '.fq']
fastq_search_path = makeFastqSearchPath(illumina_suffixes, fastq_exts)
fastq_input = 'NO_FILE'
samplesheet_input = 'NO_FILE'
coverages = 'NO_FILE'
coverage = 30
genome_size = '5m'
random_seed = 0
enable_quality_trimming = false
disable_quality_filtering = false
collect_outputs = false
collected_outputs_prefix = 'collected'
}
def makeFastqSearchPath(illumina_suffixes, fastq_exts) {
def fastq_search_path = []
if (params.fastq_input.toString() != 'NO_FILE') {
for (suffix in illumina_suffixes) {
for (ext in fastq_exts) {
fastq_search_path.add(params.fastq_input.toString() + '/' + suffix.toString() + ext.toString())
}
}
}
return fastq_search_path
}
def makeLongReadsSearchPath(long_read_suffixes, fastq_exts) {
def fastq_search_path = []
if (params.fastq_input_long.toString() != 'NO_FILE') {
for (suffix in long_read_suffixes) {
for (ext in fastq_exts) {
fastq_search_path.add(params.fastq_input_long.toString() + '/' + suffix.toString() + ext.toString())
}
}
}
return fastq_search_path
}
profiles {
conda {
conda.enabled = true
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 {
withName: fastp {
cpus = 4
}
}