annotate 0.5.0/lib/help/amrfinderplus.nf @ 1:365849f031fd

"planemo upload"
author kkonganti
date Mon, 05 Jun 2023 18:48:51 -0400
parents
children
rev   line source
kkonganti@1 1 def amrfinderplusHelp(params) {
kkonganti@1 2
kkonganti@1 3 Map tool = [:]
kkonganti@1 4 Map toolspecs = [:]
kkonganti@1 5 tool.text = [:]
kkonganti@1 6 tool.helpparams = [:]
kkonganti@1 7
kkonganti@1 8 toolspecs = [
kkonganti@1 9 'amrfinderplus_run': [
kkonganti@1 10 clihelp: "Run AMRFinderPlus tool. Default: ${params.amrfinderplus_run}",
kkonganti@1 11 cliflag: null,
kkonganti@1 12 clivalue: null
kkonganti@1 13 ],
kkonganti@1 14 'amrfinderplus_db': [
kkonganti@1 15 clihelp: 'Path to AMRFinderPlus database. Please note that ' +
kkonganti@1 16 ' the databases should be ready and formatted with blast for use. ' +
kkonganti@1 17 'Please read more at: ' +
kkonganti@1 18 'https://github.com/ncbi/amr/wiki/AMRFinderPlus-database ' +
kkonganti@1 19 "Default: ${params.amrfinderplus_db}",
kkonganti@1 20 cliflag: '--database',
kkonganti@1 21 clivalue: (params.amrfinderplus_db ?: '')
kkonganti@1 22 ],
kkonganti@1 23 'amrfinderplus_genes': [
kkonganti@1 24 clihelp: 'Add the plus genes to the report',
kkonganti@1 25 cliflag: '--plus',
kkonganti@1 26 clivalue: (params.amrfinderplus_genes ? ' ' : '')
kkonganti@1 27 ]
kkonganti@1 28 ]
kkonganti@1 29
kkonganti@1 30 toolspecs.each {
kkonganti@1 31 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@1 32 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@1 33 }
kkonganti@1 34
kkonganti@1 35 return tool
kkonganti@1 36 }