annotate 0.5.0/lib/help/sfhpy.nf @ 15:1972677994a6

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