-
Notifications
You must be signed in to change notification settings - Fork 0
/
nf-m6anet.conf
144 lines (129 loc) · 4.31 KB
/
nf-m6anet.conf
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
params{
// Path to the sample description file
samples = "/path/to/samples.txt"
// Path to a folder where to store results
resultsDir = "/path/to/resultsDir"
// Path to the transcriptome fasta
transcriptome_fasta = "/path/to/transcriptome.fa"
// Gtf file
gtf = "/path/to/file.gtf"
// Min MAPQ
min_mapq = 20
// Probability modification threshold for calling a site as m6A+
prob_mod_thr = 0.9
// Optional arguments for f5c, for example "--kmer-model /path/to/rna004.nucleotide.5mer.model"
optArgs_f5c = ""
// Optional arguments for m6Anet, for example "--pretrained_model HEK293T_RNA004" or "--pretrained_model arabidopsis_RNA002"
optArgs_m6anet = ""
// Path to post-processing R script
postprocessingScript = "/path/to/file.R"
//Path to bulk level m6A estimator script
bulkLevelScript = "/path/to/file.R"
// Flags to select which process to run
minimap2 = true
nanopolish = true
m6anet1 = true
m6anet2 = true
postprocessing = true
}
tower {
enabled = false
endpoint = '-'
accessToken = 'nextflowTowerToken'
}
profiles {
singularity {
singularity.enabled = true
singularity.autoMounts = false
//singularity.cacheDir = "/path/to/singularity/cacheDir" // if commented, work dir is going to be usedd
process{
containerOptions = '--bind /home/:/home'
cpus = 1
executor = 'pbspro'
queue = 'workq'
perJobMemLimit = true
withName:minimap2{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.minimap2 ? 6 : 1 }
memory = { params.minimap2 ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:nanopolish{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.nanopolish ? 6 : 1 }
memory = { params.nanopolish ? 5.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:m6anet1{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.m6anet1 ? 6 : 1 }
memory = { params.m6anet1 ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:m6anet2{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.m6anet2 ? 6 : 1 }
memory = { params.m6anet2 ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:postprocessing{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.postprocessing ? 6 : 1 }
memory = { params.postprocessing ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
}
}
docker {
docker.enabled = true
docker.autoMounts = false
//docker.cacheDir = "/path/to/docker/cacheDir" // if commented, work dir is going to be used
process{
containerOptions = '-v /home/:/home'
cpus = 1
executor = 'pbspro'
queue = 'workq'
perJobMemLimit = true
withName:minimap2{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.minimap2 ? 6 : 1 }
memory = { params.minimap2 ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:nanopolish{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.nanopolish ? 6 : 1 }
memory = { params.nanopolish ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:m6anet1{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.m6anet1 ? 6 : 1 }
memory = { params.m6anet1 ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:m6anet2{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.m6anet2 ? 6 : 1 }
memory = { params.m6anet2 ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
withName:postprocessing{
container = 'maestsi/nf-m6anet:latest'
cpus = { params.postprocessing ? 6 : 1 }
memory = { params.postprocessing ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
maxRetries = 3
}
}
}
}