annotate 0.2.1/lib/help/amrfinderplus.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 amrfinderplusHelp(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 'amrfinderplus_run': [
kkonganti@0 10 clihelp: "Run AMRFinderPlus tool. Default: ${params.amrfinderplus_run}",
kkonganti@0 11 cliflag: null,
kkonganti@0 12 clivalue: null
kkonganti@0 13 ],
kkonganti@0 14 'amrfinderplus_db': [
kkonganti@0 15 clihelp: 'Path to AMRFinderPlus database. Please note that ' +
kkonganti@0 16 ' the databases should be ready and formatted with blast for use. ' +
kkonganti@0 17 'Please read more at: ' +
kkonganti@0 18 'https://github.com/ncbi/amr/wiki/AMRFinderPlus-database ' +
kkonganti@0 19 "Default: ${params.amrfinderplus_db}",
kkonganti@0 20 cliflag: '--database',
kkonganti@0 21 clivalue: (params.amrfinderplus_db ?: '')
kkonganti@0 22 ],
kkonganti@0 23 'amrfinderplus_genes': [
kkonganti@0 24 clihelp: 'Add the plus genes to the report',
kkonganti@0 25 cliflag: '--plus',
kkonganti@0 26 clivalue: (params.amrfinderplus_genes ? ' ' : '')
kkonganti@0 27 ]
kkonganti@0 28 ]
kkonganti@0 29
kkonganti@0 30 toolspecs.each {
kkonganti@0 31 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@0 32 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@0 33 }
kkonganti@0 34
kkonganti@0 35 return tool
kkonganti@0 36 }