annotate 0.6.1/lib/help/seqsero2.nf @ 11:749faef1caa9

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