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