-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkraken2.config
72 lines (66 loc) · 2.13 KB
/
kraken2.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
/*
Copyright (C) 2020-2022 Yu Wan <[email protected]>
Licensed under the GNU General Public License v3.0
Publication: 24 March 2020; latest update: 14 October 2022
*/
params { // Parameters for each job
fastq = "*_[1,2].fastq.gz"
db = "bacteria" // Absolute path of the reference Kraken2 database
outdir = "report" // Absolute path of the output directory; subdirectories to be created automatically: kraken, bracken, top3_taxa
queueSize = 10
cpus = 8
mem = 64 // Memory requested per job (GB)
conda_env = "kraken2.1" // Name of the Conda environment where Kraken2, Python 3, and the pandas package are installed
bracken_dir = "Bracken" // Absolute path of the directory containing program 'bracken'
bracken_level = "S" // Taxonomical level for summary (default: 'S', species)
read_len = 100 // Read length used for building the Bracken database
script_dir = "." // Absolute path to the directory in which script top3_bracken_taxa.py is stored.
}
executor {
$local {
cpus = 1
memory = "4 GB" // The local executor is only used for the last step compile_reports.
}
$pbs {
queueSize = params.queueSize
}
}
process {
withLabel: PBS {
clusterOptions = "-l select=1:ncpus=${params.cpus}:mem=${params.mem}gb:ompthreads=${params.cpus}"
time = "24h"
errorStrategy = "retry"
maxRetries = 2
}
withLabel: PBS_light {
clusterOptions = "-l select=1:ncpus=1:mem=4gb"
time = "24h"
errorStrategy = "retry"
maxRetries = 2
}
}
trace {
// Default name of the trace file: trace.txt
enabled = true
fields = "task_id,\
hash,\
process,\
tag,\
status,\
exit,\
start,\
cpus,\
time,\
disk,\
memory,\
duration,\
realtime,\
%cpu,\
%mem"
}
manifest {
homePage = "https://github.com/wanyuac/Taxonomy_toolkit"
description = "Run Kraken2 and Bracken for taxonomical classification."
mainScript = "kraken2.nf"
version = "0.0.2"
}