annotate 0.2.1/lib/help/seqsero2.nf @ 0:77494b0fa3c7

"planemo upload"
author kkonganti
date Mon, 27 Jun 2022 15:55:37 -0400
parents
children
rev   line source
kkonganti@0 1 def seqsero2Help(params) {
kkonganti@0 2
kkonganti@0 3 Map tool = [:]
kkonganti@0 4 Map toolspecs = [:]
kkonganti@0 5 tool.text = [:]
kkonganti@0 6 tool.helpparams = [:]
kkonganti@0 7
kkonganti@0 8 toolspecs = [
kkonganti@0 9 'seqsero2_run': [
kkonganti@0 10 clihelp: "Run SeqSero2 tool. Default: ${params.seqsero2_run}",
kkonganti@0 11 cliflag: null,
kkonganti@0 12 clivalue: null
kkonganti@0 13 ],
kkonganti@0 14 'seqsero2_t': [
kkonganti@0 15 clihelp: "'1' for interleaved paired-end reads, '2' for " +
kkonganti@0 16 "separated paired-end reads, '3' for single reads, '4' for " +
kkonganti@0 17 "genome assembly, '5' for nanopore reads (fasta/fastq). " +
kkonganti@0 18 "Default: ${params.seqsero2_t}",
kkonganti@0 19 cliflag: '-t',
kkonganti@0 20 clivalue: (params.seqsero2_t ?: '')
kkonganti@0 21 ],
kkonganti@0 22 'seqsero2_m': [
kkonganti@0 23 clihelp: "Which workflow to apply, 'a'(raw reads allele " +
kkonganti@0 24 "micro-assembly), 'k'(raw reads and genome assembly k-mer). " +
kkonganti@0 25 "Default: ${params.seqsero2_m}",
kkonganti@0 26 cliflag: '-m',
kkonganti@0 27 clivalue: (params.seqsero2_m ?: '')
kkonganti@0 28 ],
kkonganti@0 29 'seqsero2_c': [
kkonganti@0 30 clihelp: 'SeqSero2 will only output serotype prediction without the directory ' +
kkonganti@0 31 'containing log files. ' +
kkonganti@0 32 "Default: ${params.seqsero2_c}",
kkonganti@0 33 cliflag: '-c',
kkonganti@0 34 clivalue: (params.seqsero2_c ? ' ' : '')
kkonganti@0 35 ],
kkonganti@0 36 'seqsero2_s': [
kkonganti@0 37 clihelp: 'SeqSero2 will not output header in SeqSero_result.tsv. ' +
kkonganti@0 38 "Default: ${params.seqsero2_s}",
kkonganti@0 39 cliflag: '-l',
kkonganti@0 40 clivalue: (params.seqsero2_s ? ' ' : '')
kkonganti@0 41 ]
kkonganti@0 42 ]
kkonganti@0 43
kkonganti@0 44 toolspecs.each {
kkonganti@0 45 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@0 46 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@0 47 }
kkonganti@0 48
kkonganti@0 49 return tool
kkonganti@0 50 }