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

"planemo upload"
author kkonganti
date Mon, 05 Jun 2023 18:48:51 -0400
parents
children
rev   line source
kkonganti@1 1 // Help text for mash screen within CPIPES.
kkonganti@1 2
kkonganti@1 3 def mashscreenHelp(params) {
kkonganti@1 4
kkonganti@1 5 Map tool = [:]
kkonganti@1 6 Map toolspecs = [:]
kkonganti@1 7 tool.text = [:]
kkonganti@1 8 tool.helpparams = [:]
kkonganti@1 9
kkonganti@1 10 toolspecs = [
kkonganti@1 11 'mashscreen_run': [
kkonganti@1 12 clihelp: 'Run `mash screen` tool. Default: ' +
kkonganti@1 13 (params.mashscreen_run ?: false),
kkonganti@1 14 cliflag: null,
kkonganti@1 15 clivalue: null
kkonganti@1 16 ],
kkonganti@1 17 'mashscreen_w': [
kkonganti@1 18 clihelp: 'Winner-takes-all strategy for identity estimates. After counting ' +
kkonganti@1 19 'hashes for each query, hashes that appear in multiple queries will ' +
kkonganti@1 20 'be removed from all except the one with the best identity (ties ' +
kkonganti@1 21 'broken by larger query), and other identities will be reduced. This ' +
kkonganti@1 22 'removes output redundancy, providing a rough compositional outline. ' +
kkonganti@1 23 " Default: ${params.mashscreen_w}",
kkonganti@1 24 cliflag: '-w',
kkonganti@1 25 clivalue: (params.mashscreen_w ? ' ' : '')
kkonganti@1 26 ],
kkonganti@1 27 'mashscreen_i': [
kkonganti@1 28 clihelp: 'Minimum identity to report. Inclusive unless set to zero, in which ' +
kkonganti@1 29 'case only identities greater than zero (i.e. with at least one ' +
kkonganti@1 30 'shared hash) will be reported. Set to -1 to output everything. ' +
kkonganti@1 31 "(-1-1). Default: ${params.mashscreen_i}",
kkonganti@1 32 cliflag: '-i',
kkonganti@1 33 clivalue: (params.mashscreen_i ?: '')
kkonganti@1 34 ],
kkonganti@1 35 'mashscreen_v': [
kkonganti@1 36 clihelp: 'Maximum p-value to report (0-1). ' +
kkonganti@1 37 "Default: ${params.mashscreen_v}",
kkonganti@1 38 cliflag: '-v',
kkonganti@1 39 clivalue: (params.mashscreen_v ?: '')
kkonganti@1 40 ]
kkonganti@1 41 ]
kkonganti@1 42
kkonganti@1 43 toolspecs.each {
kkonganti@1 44 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@1 45 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@1 46 }
kkonganti@1 47
kkonganti@1 48 return tool
kkonganti@1 49 }