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
2222- Added component ` abyss ` .
2323- Added component ` bandage ` .
2424- Added component ` unicycler ` .
25+ - Added component ` prokka ` .
2526
2627### Minor/Other changes
2728
Original file line number Diff line number Diff line change 11mash_screen
2- ==============
2+ ===========
33
44Purpose
55-------
66
77This 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
99(FastQ files). Then, the resulting file can
1010be imported into `pATLAS <http://www.patlas.site/ >`_.
1111This component searches for containment of a given sequence in read sequencing
Original file line number Diff line number Diff line change 11prokka
22======
33
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):
134134 self .link_end .append ({"link" : "MAIN_assembly" ,
135135 "alias" : "MAIN_assembly" })
136136
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+
137154 self .directives = {
138155 "prokka" : {
139156 "cpus" : 2 ,
140- "container" : "ummidock/prokka-nf " ,
141- "version" : "1.12.0-2 "
157+ "container" : "ummidock/prokka" ,
158+ "version" : "1.12"
142159 }
143160 }
Original file line number Diff line number Diff line change 9090 "pilon" : ap .Pilon ,
9191 "process_skesa" : ap .ProcessSkesa ,
9292 "process_spades" : ap .ProcessSpades ,
93- "progressive_mauve" :alignment .ProgressiveMauve ,
94- # "prokka": annotation.Prokka,
93+ "progressive_mauve" : alignment .ProgressiveMauve ,
94+ "prokka" : annotation .Prokka ,
9595 "quast" : ap .Quast ,
9696 "raxml" : phylogeny .Raxml ,
9797 "reads_download" : downloads .DownloadReads ,
Original file line number Diff line number Diff line change 11
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+
29process prokka_{{ pid }} {
310
411 // Send POST request to platform
@@ -9,6 +16,8 @@ process prokka_{{ pid }} {
916
1017 input :
1118 set sample_id, file(assembly) from {{ input_channel }}
19+ val centre from IN_centre_ {{ pid }}
20+ val kingdom from IN_kingdom_ {{ pid }}
1221
1322 output :
1423 file " ${ sample_id} /*"
@@ -19,8 +28,8 @@ process prokka_{{ pid }} {
1928 script :
2029 """
2130 {
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
2433 echo pass > .status
2534 } || {
2635 echo fail > .status
You can’t perform that action at this time.
0 commit comments