-
Notifications
You must be signed in to change notification settings - Fork 1
/
nextflow.config
129 lines (107 loc) · 3.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
profiles
{
standard {
process.executor = 'local'
process.conda = "${HOME}/miniconda3/envs/tpd"
}
// Run pipeline on SLURM cluster
slurm_denglab {
process.executor = 'slurm'
process.cpus = 1
process.memory = '4 GB'
process.queue = 'normal_q'
process.time = "12 h"
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
singularity.cacheDir = "/project/genomics/jru/singularity"
singularity.runOptions = "--writable-tmpfs -B /project/genomics/jru/data2:/project/genomics/jru/data2 -B /project/genomics/jru/data2/db/dfast:/opt/conda/opt/dfast-1.2.18/db"
process.container = "jinlongru/tpd"
}
}
trace
{
enabled = true
fields = 'task_id,hash,tag,process,status,exit,submit,realtime,%cpu,%mem,peak_rss,peak_vmem'
}
timeline
{
enabled = true
}
process {
cache = "lenient"
withLabel: "small" {
cpus = 1
memory = "8 GB"
time = "24 h"
}
withLabel: "medium" {
cpus = 2
memory = "10 GB"
time = "24 h"
}
withLabel: "big" {
cpus = 2
memory = "12 GB"
time = "24 h"
}
withName: "DFAST" {
cpus = 10
memory = "120 GB"
time = "24 h"
}
withName: "predict_prophage_phageboost" {
container = "jinlongru/phageboost"
cpus = 1
memory = "20 GB"
time = "5 h"
}
withName: "predict_prophage_phispy" {
cpus = 1
memory = "10 GB"
time = "20 h"
}
withName: "predict_CRISPR" {
cpus = 1
memory = "8 GB"
time = "24 h"
conda = "${HOME}/miniconda3/envs/cctyper"
}
}
params
{
/*--------------------------------*
* GENERAL PARAMETERS
*--------------------------------*/
outdir = "result"
report = "report"
mode = 'all' // {all, genome}
min_contig = 500
assembler="megahit" // {spades, megahit}
qvalue=0.01
extra_prophage_coord = "false"
old_prophage_feature_name = "prophage"
ref_fna = "${baseDir}/ref.fasta"
ref_gbk = "${baseDir}/ref.gbk"
// sid_scaffolds.fna without sample id in FASTA header
datadir = "${baseDir}/data"
old_prophage_ext = "_old.gbk"
contig_minlen = 1000
flank_len = 1000
// Tools and databases
db_VOGDB="/project/genomics/jru/data2/db/VOGDB/current/VOGs.hmm"
desc_VOGDB="/project/genomics/jru/data2/db/VOGDB/current/vog_desc.tsv"
db_PFAM="/project/genomics/jru/data2/db/PFAM/current/Pfam-A.hmm"
desc_PFAM="/project/genomics/jru/data2/db/PFAM/current/pfam_desc.tsv"
db_pVOG="/project/genomics/jru/data2/db/pVOG/current/pVOGs.hmm"
desc_pVOG="/project/genomics/jru/data2/db/pVOG/current/pvog_desc.tsv"
db_KEGG="/project/genomics/jru/data2/db/vibrant2/vibrant-1.2.1/db/databases/KEGG_profiles_prokaryotes.HMM"
desc_KEGG="/project/genomics/jru/data2/db/KEGG/ko2pathway.tsv"
db_phispy="/project/genomics/jru/data2/db/phispy/pVOGs_VOGDBs.hmm"
cfg_phigaro="/project/genomics/jru/data2/db/phigaro/config.yml"
}