Skip to content

Commit 1367922

Browse files
authored
Merge pull request #23 from hoelzer/publish-gff
Publish Prokka GFF and not only the FAA file
2 parents cc4a4b3 + 86f1e2a commit 1367922

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ include {pocp; pocp_matrix} from './modules/pocp'
106106
// main workflow
107107
workflow {
108108
if (params.genomes) {
109-
proteins_ch = prokka(genome_input_ch)
109+
proteins_ch = prokka(genome_input_ch).proteins
110110
} else {
111111
proteins_ch = proteins_input_ch
112112
}
113113

114114
// switch to one-vs-all
115-
if (params.genome) { protein_ch = prokka_single(genome_single_input_ch) }
115+
if (params.genome) { protein_ch = prokka_single(genome_single_input_ch).proteins }
116116
if (params.protein) { protein_ch = protein_single_input_ch }
117117

118118
if (params.genome || params.protein) {

modules/prokka.nf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
process prokka {
44
label 'prokka'
55
publishDir "${params.output}/prokka", mode: 'copy', pattern: "${name}/${name}.faa"
6+
publishDir "${params.output}/prokka", mode: 'copy', pattern: "${name}/${name}.gff"
67

78
input:
89
tuple val(name), path(fasta)
910

1011
output:
1112
tuple val(name), path("${name}/${name}.faa"), emit: proteins
13+
tuple val(name), path("${name}/${name}.gff"), emit: annotations
1214

1315
script:
1416
"""

0 commit comments

Comments
 (0)