File tree Expand file tree Collapse file tree 6 files changed +86
-9
lines changed Expand file tree Collapse file tree 6 files changed +86
-9
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ resolution
22
22
- Added component ` abyss ` .
23
23
- Added component ` bandage ` .
24
24
- Added component ` unicycler ` .
25
+ - Added component ` prokka ` .
25
26
26
27
### Minor/Other changes
27
28
Original file line number Diff line number Diff line change 1
1
mash_screen
2
- ==============
2
+ ===========
3
3
4
4
Purpose
5
5
-------
6
6
7
7
This component performes mash screen to find plasmids
8
- contained in high throughoput sequencing data, using as inputs read files
8
+ contained in high throughout sequencing data, using as inputs read files
9
9
(FastQ files). Then, the resulting file can
10
10
be imported into `pATLAS <http://www.patlas.site/ >`_.
11
11
This component searches for containment of a given sequence in read sequencing
Original file line number Diff line number Diff line change 1
1
prokka
2
2
======
3
3
4
- **Building... **
4
+
5
+ Purpose
6
+ -------
7
+
8
+ This component performs annotations using the annotations available in
9
+ `prokka <https://github.com/tseemann/prokka >`_.
10
+
11
+
12
+ Input/Output type
13
+ -----------------
14
+
15
+ - Input type: ``fasta ``
16
+ - Output type: ``None ``
17
+
18
+ .. note ::
19
+ - Although the component doesn't have an output channel it writes the results into the ``publishDir ``.
20
+
21
+
22
+ Parameters
23
+ ----------
24
+
25
+ - ``centre ``: sets the center to which the sequencing center id.
26
+ Default: 'UMMI'.
27
+
28
+ - ``kingdom ``: Selects the annotation mode between Archaea, Bacteria,
29
+ Mitochondria, Viruses. Default: Bacteria).
30
+
31
+ - ``genus ``: Allows user to select a genus name. Default: 'Genus' (same
32
+ as prokka). This also adds the use of the --usegenus flag to prokka.
33
+
34
+
35
+ Published results
36
+ -----------------
37
+
38
+ - ``results/annotation/prokka_<pid>/<sample_id> ``: All the outputs from prokka
39
+ will be available in these directories.
40
+
41
+
42
+ Published reports
43
+ -----------------
44
+
45
+ None.
46
+
47
+
48
+ Default directives
49
+ ------------------
50
+
51
+ - ``prokka ``:
52
+ - ``cpus ``: 2
53
+ - ``container ``: ummidock/prokka
54
+ - ``version ``: 1.12
Original file line number Diff line number Diff line change @@ -134,10 +134,27 @@ def __init__(self, **kwargs):
134
134
self .link_end .append ({"link" : "MAIN_assembly" ,
135
135
"alias" : "MAIN_assembly" })
136
136
137
+ self .params = {
138
+ "centre" : {
139
+ "default" : "'UMMI'" ,
140
+ "description" : "sequencing centre ID"
141
+ },
142
+ "kingdom" : {
143
+ "default" : "'Bacteria'" ,
144
+ "description" : "Annotation mode: Archaea|Bacteria|Mitochondria"
145
+ "|Viruses (default 'Bacteria')"
146
+ },
147
+ "genus" : {
148
+ "default" : "false" ,
149
+ "description" : "Genus name (default 'Genus'). This also adds"
150
+ "the --usegenus flag to prokka"
151
+ },
152
+ }
153
+
137
154
self .directives = {
138
155
"prokka" : {
139
156
"cpus" : 2 ,
140
- "container" : "ummidock/prokka-nf " ,
141
- "version" : "1.12.0-2 "
157
+ "container" : "ummidock/prokka" ,
158
+ "version" : "1.12"
142
159
}
143
160
}
Original file line number Diff line number Diff line change 90
90
"pilon" : ap .Pilon ,
91
91
"process_skesa" : ap .ProcessSkesa ,
92
92
"process_spades" : ap .ProcessSpades ,
93
- "progressive_mauve" :alignment .ProgressiveMauve ,
94
- # "prokka": annotation.Prokka,
93
+ "progressive_mauve" : alignment .ProgressiveMauve ,
94
+ "prokka" : annotation .Prokka ,
95
95
"quast" : ap .Quast ,
96
96
"raxml" : phylogeny .Raxml ,
97
97
"reads_download" : downloads .DownloadReads ,
Original file line number Diff line number Diff line change 1
1
2
+ IN_centre_ {{ pid }} = Channel . value(params. centre{{ param_id }})
3
+
4
+ IN_kingdom_ {{ pid }} = Channel . value(params. kingdom{{ param_id }})
5
+
6
+ // check if genus is provided or not
7
+ genusVar = (params. genus{{ param_id }} == false ) ? " " : " --usegenus --genus ${ params.genus{{param_id}}} "
8
+
2
9
process prokka_{{ pid }} {
3
10
4
11
// Send POST request to platform
@@ -9,6 +16,8 @@ process prokka_{{ pid }} {
9
16
10
17
input :
11
18
set sample_id, file(assembly) from {{ input_channel }}
19
+ val centre from IN_centre_ {{ pid }}
20
+ val kingdom from IN_kingdom_ {{ pid }}
12
21
13
22
output :
14
23
file " ${ sample_id} /*"
@@ -19,8 +28,8 @@ process prokka_{{ pid }} {
19
28
script :
20
29
"""
21
30
{
22
- prokka --outdir $sample_id --cpus $task . cpus --centre UMMI --compliant \
23
- --increment 10 $assembly >> .command.log 2>&1
31
+ prokka --outdir $sample_id --cpus $task . cpus --centre ${ centre } \
32
+ --compliant --kingdom ${ kingdom } ${ genusVar } --increment 10 $assembly
24
33
echo pass > .status
25
34
} || {
26
35
echo fail > .status
You can’t perform that action at this time.
0 commit comments