Skip to content

Commit

Permalink
Merge pull request #23 from hoelzer/publish-gff
Browse files Browse the repository at this point in the history
Publish Prokka GFF and not only the FAA file
  • Loading branch information
hoelzer authored Oct 16, 2024
2 parents cc4a4b3 + 86f1e2a commit 1367922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ include {pocp; pocp_matrix} from './modules/pocp'
// main workflow
workflow {
if (params.genomes) {
proteins_ch = prokka(genome_input_ch)
proteins_ch = prokka(genome_input_ch).proteins
} else {
proteins_ch = proteins_input_ch
}

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

if (params.genome || params.protein) {
Expand Down
2 changes: 2 additions & 0 deletions modules/prokka.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
process prokka {
label 'prokka'
publishDir "${params.output}/prokka", mode: 'copy', pattern: "${name}/${name}.faa"
publishDir "${params.output}/prokka", mode: 'copy', pattern: "${name}/${name}.gff"

input:
tuple val(name), path(fasta)

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

script:
"""
Expand Down

0 comments on commit 1367922

Please sign in to comment.