annotate 0.6.1/lib/help/mashscreen.nf @ 15:1972677994a6

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