Mercurial > repos > fubar > egapx_runner
view nf/subworkflows/ncbi/default/annotwriter/main.nf @ 6:a7304162d737 draft
planemo upload for repository https://github.com/ncbi/egapx commit 9e59da535540cb4d5c1c412bb2b0969744dfb0b0-dirty
author | fubar |
---|---|
date | Sun, 04 Aug 2024 02:30:36 +0000 |
parents | d9c5c5b87fec |
children |
line wrap: on
line source
#!/usr/bin/env nextflow nextflow.enable.dsl=2 workflow annotwriter { take: accept_asn_file // Channel: accept.asn file parameters // Map : extra parameter and parameter update main: c = run_annotwriter(accept_asn_file) emit: annoted_file = c } process run_annotwriter { input: path accept_asn_file output: path ('output/accept.gff'), emit: 'annoted_file' script: """ mkdir -p output if [ -s ${accept_asn_file} ]; then annotwriter -i ${accept_asn_file} -nogenbank -format gff3 -o output/accept.gff else touch output/accept.gff fi """ stub: """ mkdir -p output echo "1" > output/accept.gff """ }