kkonganti@0
|
1 // Help text for sourmash gather within CPIPES.mashsketch
|
kkonganti@0
|
2
|
kkonganti@0
|
3 def sourmashgatherHelp(params) {
|
kkonganti@0
|
4
|
kkonganti@0
|
5 Map tool = [:]
|
kkonganti@0
|
6 Map toolspecs = [:]
|
kkonganti@0
|
7 tool.text = [:]
|
kkonganti@0
|
8 tool.helpparams = [:]
|
kkonganti@0
|
9
|
kkonganti@0
|
10 toolspecs = [
|
kkonganti@0
|
11 'sourmashgather_run': [
|
kkonganti@0
|
12 clihelp: 'Run `sourmash gather` tool. Default: ' +
|
kkonganti@0
|
13 (params.sourmashgather_run ?: false),
|
kkonganti@0
|
14 cliflag: null,
|
kkonganti@0
|
15 clivalue: null
|
kkonganti@0
|
16 ],
|
kkonganti@0
|
17 'sourmashgather_n': [
|
kkonganti@0
|
18 clihelp: 'Number of results to report. ' +
|
kkonganti@0
|
19 'By default, will terminate at --sourmashgather_thr_bp value. ' +
|
kkonganti@0
|
20 "Default: ${params.sourmashgather_n}",
|
kkonganti@0
|
21 cliflag: '-n',
|
kkonganti@0
|
22 clivalue: (params.sourmashgather_n ?: '')
|
kkonganti@0
|
23 ],
|
kkonganti@0
|
24 'sourmashgather_thr_bp': [
|
kkonganti@0
|
25 clihelp: 'Reporting threshold (in bp) for estimated overlap with remaining query. ' +
|
kkonganti@0
|
26 "Default: ${params.sourmashgather_thr_bp}",
|
kkonganti@0
|
27 cliflag: '--threshold-bp',
|
kkonganti@0
|
28 clivalue: (params.sourmashgather_thr_bp ?: '')
|
kkonganti@0
|
29 ],
|
kkonganti@0
|
30 'sourmashgather_ani_ci': [
|
kkonganti@0
|
31 clihelp: 'Output confidence intervals for ANI estimates. ' +
|
kkonganti@0
|
32 "Default: ${params.sourmashgather_ani_ci}",
|
kkonganti@0
|
33 cliflag: '--estimate-ani-ci',
|
kkonganti@0
|
34 clivalue: (params.sourmashgather_ani_ci ? ' ' : '')
|
kkonganti@0
|
35 ],
|
kkonganti@0
|
36 'sourmashgather_k': [
|
kkonganti@0
|
37 clihelp: 'The k-mer size to select. ' +
|
kkonganti@0
|
38 "Default: ${params.sourmashgather_k}",
|
kkonganti@0
|
39 cliflag: '-k',
|
kkonganti@0
|
40 clivalue: (params.sourmashgather_k ?: '')
|
kkonganti@0
|
41 ],
|
kkonganti@0
|
42 'sourmashgather_dna': [
|
kkonganti@0
|
43 clihelp: 'Choose DNA signature. ' +
|
kkonganti@0
|
44 "Default: ${params.sourmashgather_dna}",
|
kkonganti@0
|
45 cliflag: '--dna',
|
kkonganti@0
|
46 clivalue: (params.sourmashgather_dna ? ' ' : '')
|
kkonganti@0
|
47 ],
|
kkonganti@0
|
48 'sourmashgather_rna': [
|
kkonganti@0
|
49 clihelp: 'Choose RNA signature. ' +
|
kkonganti@0
|
50 "Default: ${params.sourmashgather_rna}",
|
kkonganti@0
|
51 cliflag: '--rna',
|
kkonganti@0
|
52 clivalue: (params.sourmashgather_rna ? ' ' : '')
|
kkonganti@0
|
53 ],
|
kkonganti@0
|
54 'sourmashgather_nuc': [
|
kkonganti@0
|
55 clihelp: 'Choose Nucleotide signature. ' +
|
kkonganti@0
|
56 "Default: ${params.sourmashgather_nuc}",
|
kkonganti@0
|
57 cliflag: '--nucleotide',
|
kkonganti@0
|
58 clivalue: (params.sourmashgather_nuc ? ' ' : '')
|
kkonganti@0
|
59 ],
|
kkonganti@0
|
60 'sourmashgather_scaled': [
|
kkonganti@0
|
61 clihelp: 'Scaled value should be between 100 and 1e6. ' +
|
kkonganti@0
|
62 "Default: ${params.sourmashgather_scaled}",
|
kkonganti@0
|
63 cliflag: '--scaled',
|
kkonganti@0
|
64 clivalue: (params.sourmashgather_scaled ?: '')
|
kkonganti@0
|
65 ],
|
kkonganti@0
|
66 'sourmashgather_inc_pat': [
|
kkonganti@0
|
67 clihelp: 'Search only signatures that match this pattern in name, filename, or md5. ' +
|
kkonganti@0
|
68 "Default: ${params.sourmashgather_inc_pat}",
|
kkonganti@0
|
69 cliflag: '--include-db-pattern',
|
kkonganti@0
|
70 clivalue: (params.sourmashgather_inc_pat ?: '')
|
kkonganti@0
|
71 ],
|
kkonganti@0
|
72 'sourmashgather_exc_pat': [
|
kkonganti@0
|
73 clihelp: 'Search only signatures that do not match this pattern in name, filename, or md5. ' +
|
kkonganti@0
|
74 "Default: ${params.sourmashgather_exc_pat}",
|
kkonganti@0
|
75 cliflag: '--exclude-db-pattern',
|
kkonganti@0
|
76 clivalue: (params.sourmashgather_exc_pat ?: '')
|
kkonganti@0
|
77 ]
|
kkonganti@0
|
78 ]
|
kkonganti@0
|
79
|
kkonganti@0
|
80 toolspecs.each {
|
kkonganti@0
|
81 k, v -> tool.text['--' + k] = "${v.clihelp}"
|
kkonganti@0
|
82 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
|
kkonganti@0
|
83 }
|
kkonganti@0
|
84
|
kkonganti@0
|
85 return tool
|
kkonganti@0
|
86 } |