Skip to content

Commit

Permalink
basic_functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
AggressiveHayBale committed Oct 4, 2022
1 parent b2a7aeb commit 5274bfc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflows/annotation_wf.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ include { prokka } from './workflows/subworkflows/prokka_wf.nf'

workflow annotation_wf{
take:
csv_ch //val(name) path(to_fasta)
fasta_mod_ch // val(name), path(dir), path(contigsplit), path(noise)

main:
//prokka

//if (params.prokka_db) { prokka_db = file(params.prokka_db) }
// else { prokka_db = prokka_database() }
prokka(Path)
prokka(name, dir)
//bakta

//if (params.bakta_db) { bakta_db = file(params.bakta_db) }
Expand Down
18 changes: 18 additions & 0 deletions workflows/fasta_mod_wf.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
process fasta_mod_wf {
label 'ubuntu'
input:
tuple val(name), path(dir), val(contig), val(noise)

output:
tuple val(name), path(dir), path("${name}_contigsplit.fasta"), path("${name}_noise.fasta"), emit: fasta_mod_ch
script:
"""
splitter.sh ${name} ${dir} ${contig}
noise.sh ${name} ${dir} ${noise}
"""
stub:
"""
touch "${name}"_contigsplit.fasta
touch "${name}"_noise.fasta
"""

0 comments on commit 5274bfc

Please sign in to comment.