kkonganti@11: // Help text for mash screen within CPIPES. kkonganti@11: kkonganti@11: def mashscreenHelp(params) { kkonganti@11: kkonganti@11: Map tool = [:] kkonganti@11: Map toolspecs = [:] kkonganti@11: tool.text = [:] kkonganti@11: tool.helpparams = [:] kkonganti@11: kkonganti@11: toolspecs = [ kkonganti@11: 'mashscreen_run': [ kkonganti@11: clihelp: 'Run `mash screen` tool. Default: ' + kkonganti@11: (params.mashscreen_run ?: false), kkonganti@11: cliflag: null, kkonganti@11: clivalue: null kkonganti@11: ], kkonganti@11: 'mashscreen_w': [ kkonganti@11: clihelp: 'Winner-takes-all strategy for identity estimates. After counting ' + kkonganti@11: 'hashes for each query, hashes that appear in multiple queries will ' + kkonganti@11: 'be removed from all except the one with the best identity (ties ' + kkonganti@11: 'broken by larger query), and other identities will be reduced. This ' + kkonganti@11: 'removes output redundancy, providing a rough compositional outline. ' + kkonganti@11: " Default: ${params.mashscreen_w}", kkonganti@11: cliflag: '-w', kkonganti@11: clivalue: (params.mashscreen_w ? ' ' : '') kkonganti@11: ], kkonganti@11: 'mashscreen_i': [ kkonganti@11: clihelp: 'Minimum identity to report. Inclusive unless set to zero, in which ' + kkonganti@11: 'case only identities greater than zero (i.e. with at least one ' + kkonganti@11: 'shared hash) will be reported. Set to -1 to output everything. ' + kkonganti@11: "(-1-1). Default: ${params.mashscreen_i}", kkonganti@11: cliflag: '-i', kkonganti@11: clivalue: (params.mashscreen_i ?: '') kkonganti@11: ], kkonganti@11: 'mashscreen_v': [ kkonganti@11: clihelp: 'Maximum p-value to report (0-1). ' + kkonganti@11: "Default: ${params.mashscreen_v}", kkonganti@11: cliflag: '-v', kkonganti@11: clivalue: (params.mashscreen_v ?: '') kkonganti@11: ] kkonganti@11: ] kkonganti@11: kkonganti@11: toolspecs.each { kkonganti@11: k, v -> tool.text['--' + k] = "${v.clihelp}" kkonganti@11: tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ] kkonganti@11: } kkonganti@11: kkonganti@11: return tool kkonganti@11: }