-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
102 lines (81 loc) · 2.12 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
import java.time.*
// REQUIRED PARAMETERS
params {
// path to raw/cleaned illumina reads
illumina1 = null
illumina2 = null
// path to raw/cleaned pacbio reads
pacbio = null
// path to raw/cleaned nanopore reads
nanopore = null
longReads = null
// path to chromosome/plasmid assembly
assembly = null
// output directory
outdir = null
}
// OPTIONAL PARAMETERS
// optional workflow execution params
params {
threads = 1
// path to directory where conda envs are stored
condaEnvsDir = "$HOME/.conda/envs/"
}
// optional program parameters
params {
// Assembly related
// short reads cleaning
shortReadsKeepPercent = 80
shortReadsStartTrimq = 40
shortReadsMinTrimq = 28
bbdukArgs = 'qtrim=rl minlength=40'
filtlongArgs = '--min_length 1000 --keep_percent 90 --trim --split 500 --mean_q_weight 10'
filtlongCheckThreshold = '10k'
flyeArgs = ''
raconMaxIters = 4
raconArgs = '-m 8 -x -6 -g -8 -w 500'
pilonMaxIters = 6
pilonArgs = ''
pilonMemory = '13G'
canuGenomeSize = null
canuArgs = ''
circlatorArgs = ''
// whether to run circlator (+canu) or not
forceCirclator = false
noCirclator = false
kofamscan = false
}
// internal params: should not need to be adjusted
params {
// conda env names
mainEnv = 'ap-main'
circlatorEnv = 'ap-circlator'
checkmEnv = 'ap-checkm'
kofamscanEnv = 'ap-kofamscan'
}
// WORKFLOW ANALYSIS: report, timeline and trace
Date now = new Date()
params.timestamp = now.format("yyyyMMdd-HH-mm-ss")
report {
enabled = true
file = "${params.outdir == null ? '.' : params.outdir}/nextflow-report-${params.timestamp}.html"
}
timeline {
enabled = true
file = "${params.outdir == null ? '.' : params.outdir}/nextflow-timeline-${params.timestamp}.html"
}
trace {
enabled = true
file = "${params.outdir == null ? '.' : params.outdir}/nextflow-trace-${params.timestamp}.tsv"
sep = '\t'
}
// PROFILES
profiles {
nscc {
workDir = "$HOME/scratch/work/"
params.threads = 20
}
local {
params.threads = 4
}
}