annotate 0.6.1/lib/help/sfhpy.nf @ 11:749faef1caa9

"planemo upload"
author kkonganti
date Tue, 05 Sep 2023 11:51:40 -0400
parents
children
rev   line source
kkonganti@11 1 // Help text for sourmash_filter_hits.py (sfhpy) within CPIPES.
kkonganti@11 2 def sfhpyHelp(params) {
kkonganti@11 3
kkonganti@11 4 Map tool = [:]
kkonganti@11 5 Map toolspecs = [:]
kkonganti@11 6 tool.text = [:]
kkonganti@11 7 tool.helpparams = [:]
kkonganti@11 8
kkonganti@11 9 toolspecs = [
kkonganti@11 10 'sfhpy_run': [
kkonganti@11 11 clihelp: 'Run the sourmash_filter_hits.py ' +
kkonganti@11 12 'script. Default: ' +
kkonganti@11 13 (params.sfhpy_run ?: false),
kkonganti@11 14 cliflag: null,
kkonganti@11 15 clivalue: null
kkonganti@11 16 ],
kkonganti@11 17 'sfhpy_fcn': [
kkonganti@11 18 clihelp: 'Column name by which filtering of rows should be applied. ' +
kkonganti@11 19 "Default: ${params.sfhpy_fcn}",
kkonganti@11 20 cliflag: '-fcn',
kkonganti@11 21 clivalue: (params.sfhpy_fcn ?: '')
kkonganti@11 22 ],
kkonganti@11 23 'sfhpy_fcv': [
kkonganti@11 24 clihelp: 'Remove genomes whose match with the query FASTQ is less than ' +
kkonganti@11 25 'this much. ' +
kkonganti@11 26 "Default: ${params.sfhpy_fcv}",
kkonganti@11 27 cliflag: '-fcv',
kkonganti@11 28 clivalue: (params.sfhpy_fcv ?: '')
kkonganti@11 29 ],
kkonganti@11 30 'sfhpy_gt': [
kkonganti@11 31 clihelp: 'Apply greather than or equal to condition on numeric values of ' +
kkonganti@11 32 '--sfhpy_fcn column. ' +
kkonganti@11 33 "Default: ${params.sfhpy_gt}",
kkonganti@11 34 cliflag: '-gt',
kkonganti@11 35 clivalue: (params.sfhpy_gt ? ' ' : '')
kkonganti@11 36 ],
kkonganti@11 37 'sfhpy_lt': [
kkonganti@11 38 clihelp: 'Apply less than or equal to condition on numeric values of ' +
kkonganti@11 39 '--sfhpy_fcn column. ' +
kkonganti@11 40 "Default: ${params.sfhpy_lt}",
kkonganti@11 41 cliflag: '-gt',
kkonganti@11 42 clivalue: (params.sfhpy_lt ? ' ' : '')
kkonganti@11 43 ],
kkonganti@11 44 ]
kkonganti@11 45
kkonganti@11 46 toolspecs.each {
kkonganti@11 47 k, v -> tool.text['--' + k] = "${v.clihelp}"
kkonganti@11 48 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
kkonganti@11 49 }
kkonganti@11 50
kkonganti@11 51 return tool
kkonganti@11 52 }