Skip to content

Commit

Permalink
Make output conform to remainder of modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Golob committed Nov 3, 2023
1 parent eeea94e commit c1b7348
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions modules/annotation.nf
Expand Up @@ -11,8 +11,7 @@ nextflow.enable.dsl=2

// Parameters
params.gene_fasta = false
params.output_hdf = false
params.output_folder = false
params.output = './results/'
params.help = false
params.min_coverage = 50
params.min_identity = 90
Expand All @@ -22,6 +21,12 @@ params.eggnog_db = false
params.eggnog_dmnd = false
params.noannot = false

// Make sure that --output ends with trailing "/" characters
if (!params.output.endsWith("/")){
params.output_folder = params.output.concat("/")
} else {
params.output_folder = params.output
}

process shard_genes {
tag "Split the gene catalog into smaller shards"
Expand Down Expand Up @@ -249,7 +254,7 @@ def helpMessage() {
Options:
--gene_fasta Location for input 'genes.fasta.gz'
--output_folder Location for output
--output Location for output (default 'results')
--taxonomic_dmnd Database used for taxonomic annotation (default: false)
--ncbi_taxdump Reference describing the NCBI Taxonomy
(default: ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz)
Expand Down

0 comments on commit c1b7348

Please sign in to comment.