-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
105 lines (80 loc) · 2.23 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
manifest {
name = 'BEAST-FLOW'
author = 'Jessica M Caleta'
homePage = 'https://github.com/j3551ca/BEAST-FLOW/'
description = 'Bayesian Evolutionary Analysis Sampling Trees (BEAST) - Nextflow\
\n-- Molecular Clock --'
mainScript = 'main.nf'
version = '0.1.7'
}
//pipeline parameters
params{
//help message
help = null
//version number
version = null
//mandatory: input multifasta of seqs under analysis
multi_fa = null
//mandatory: name stem for output files
prefix = null
//cache for conda env
conda_cache = null
//output directory
out_dir = "${projectDir}/output"
//evolutionary model
evo_model = 'GTR+G'
/**proceed with beast analysis after checking for temporal signal and
mistakenly labeled sequences in TempEst
*/
run_part2 = false
/**proceed with generation of max clade credibility consensus tree
after checking beast output in Tracer
*/
run_part3 = false
/**beauti additional arguments for use in BEAST:
Markov chain length &
how often paramter values are sampled/logged - too infrequent will
result in inaccurate estimates of parameter distributions.
*/
xml_args = $/--chainLength 1000000 \
--traceLogEvery 100 \
--treeLogEvery 100 \
--screenLogEvery 100 \
--sequenceIdDateRegex '^[RE]\d+_(?P<year>\d\d\d\d)-(?P<month>\d\d)-(?P<day>\d\d)' \
--dateDirection backward /$
xml_temp = "${projectDir}/resources/xml_templates/strict.xml"
//BEAST additional options
beast_args = '-overwrite'
//treeannotator
treeann_args = '-burnin 10' //percentage
//iqtree arguments
iqtree_args = '-T 4 -B 1000'
}
//run pipeline on different execution systems by modifying the process section
process {
executor='sge'
queue = 'cn-el6'
conda {
process.conda = "$projectDir/beastflow_env.yml"
conda.createTimeout = '1 h'
if (params.conda_cache) {
conda.cacheDir = params.conda_cache
}
}
//profile{
//}
//html displaying breakdown of time taken to execute workflow
timeline {
enabled = true
file = "${params.out_dir}/${params.prefix}/reports/beast-flow_timeline.html"
}
//html of cpu/mem usage
report {
enabled = true
file = "${params.out_dir}/${params.prefix}/reports/beast-flow_report.html"
}
//dag of beast-flow workflow
dag {
enabled = true
file = "${params.out_dir}/${params.prefix}/reports/beast-flow_dag.html"
}