Mercurial > repos > kkonganti > cfsan_bettercallsal
comparison 0.5.0/lib/help/tuspy.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 get_top_unique_mash_hit_genomes.py (tuspy) within CPIPES. | |
2 | |
3 def tuspyHelp(params) { | |
4 | |
5 Map tool = [:] | |
6 Map toolspecs = [:] | |
7 tool.text = [:] | |
8 tool.helpparams = [:] | |
9 | |
10 toolspecs = [ | |
11 'tuspy_run': [ | |
12 clihelp: 'Run the get_top_unique_mash_hits_genomes.py ' + | |
13 'script. Default: ' + | |
14 (params.tuspy_run ?: false), | |
15 cliflag: null, | |
16 clivalue: null | |
17 ], | |
18 'tuspy_s': [ | |
19 clihelp: 'Absolute UNIX path to metadata text file with the ' + | |
20 'field separator, | and ' + | |
21 '5 fields: serotype|asm_lvl|asm_url|snp_cluster_id' + | |
22 'Ex: serotype=Derby,antigen_formula=4:f,g:-|Scaffold|402440|ftp://...' + | |
23 '|PDS000096654.2. Mentioning this option will create a pickle file for the ' + | |
24 'provided metadata and exits.' + | |
25 " Default: ${params.tuspy_s}", | |
26 cliflag: '-s', | |
27 clivalue: (params.tuspy_s ?: '') | |
28 ], | |
29 'tuspy_m': [ | |
30 clihelp: 'Absolute UNIX path to mash screen results file.' + | |
31 " Default: ${params.tuspy_m}", | |
32 cliflag: '-m', | |
33 clivalue: (params.tuspy_m ?: '') | |
34 ], | |
35 'tuspy_ps': [ | |
36 clihelp: 'Absolute UNIX Path to serialized metadata object ' + | |
37 'in a pickle file.' + | |
38 " Default: ${params.tuspy_ps}", | |
39 cliflag: '-ps', | |
40 clivalue: (params.tuspy_ps ?: '') | |
41 ], | |
42 'tuspy_gd': [ | |
43 clihelp: 'Absolute UNIX Path to directory containing ' + | |
44 'gzipped genome FASTA files.' + | |
45 " Default: ${params.tuspy_gd}", | |
46 cliflag: '-gd', | |
47 clivalue: (params.tuspy_gd ?: '') | |
48 ], | |
49 'tuspy_gds': [ | |
50 clihelp: 'Genome FASTA file suffix to search for in the ' + | |
51 'genome directory.' + | |
52 " Default: ${params.tuspy_gds}", | |
53 cliflag: '-gds', | |
54 clivalue: (params.tuspy_gds ?: '') | |
55 ], | |
56 'tuspy_n': [ | |
57 clihelp: 'Return up to this many number of top N unique ' + | |
58 'genome accession hits.' + | |
59 " Default: ${params.tuspy_n}", | |
60 cliflag: '-n', | |
61 clivalue: (params.tuspy_n ?: '') | |
62 ] | |
63 ] | |
64 | |
65 toolspecs.each { | |
66 k, v -> tool.text['--' + k] = "${v.clihelp}" | |
67 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ] | |
68 } | |
69 | |
70 return tool | |
71 } |