kkonganti@1
|
1 // Help text for sourmash gather within CPIPES.
|
kkonganti@1
|
2
|
kkonganti@1
|
3 def sourmashgatherHelp(params) {
|
kkonganti@1
|
4
|
kkonganti@1
|
5 Map tool = [:]
|
kkonganti@1
|
6 Map toolspecs = [:]
|
kkonganti@1
|
7 tool.text = [:]
|
kkonganti@1
|
8 tool.helpparams = [:]
|
kkonganti@1
|
9
|
kkonganti@1
|
10 toolspecs = [
|
kkonganti@1
|
11 'sourmashgather_run': [
|
kkonganti@1
|
12 clihelp: 'Run `sourmash gather` tool. Default: ' +
|
kkonganti@1
|
13 (params.sourmashgather_run ?: false),
|
kkonganti@1
|
14 cliflag: null,
|
kkonganti@1
|
15 clivalue: null
|
kkonganti@1
|
16 ],
|
kkonganti@1
|
17 'sourmashgather_n': [
|
kkonganti@1
|
18 clihelp: 'Number of results to report. ' +
|
kkonganti@1
|
19 'By default, will terminate at --sourmashgather_thr_bp value. ' +
|
kkonganti@1
|
20 "Default: ${params.sourmashgather_n}",
|
kkonganti@1
|
21 cliflag: '-n',
|
kkonganti@1
|
22 clivalue: (params.sourmashgather_n ?: '')
|
kkonganti@1
|
23 ],
|
kkonganti@1
|
24 'sourmashgather_thr_bp': [
|
kkonganti@1
|
25 clihelp: 'Reporting threshold (in bp) for estimated overlap with remaining query. ' +
|
kkonganti@1
|
26 "Default: ${params.sourmashgather_thr_bp}",
|
kkonganti@1
|
27 cliflag: '--threshold-bp',
|
kkonganti@1
|
28 clivalue: (params.sourmashgather_thr_bp ?: '')
|
kkonganti@1
|
29 ],
|
kkonganti@1
|
30 'sourmashgather_ignoreabn': [
|
kkonganti@1
|
31 clihelp: 'Do NOT use k-mer abundances if present. ' +
|
kkonganti@1
|
32 "Default: ${params.sourmashgather_ignoreabn}",
|
kkonganti@1
|
33 cliflag: '--ignore-abundance',
|
kkonganti@1
|
34 clivalue: (params.sourmashgather_ignoreabn ? ' ' : '')
|
kkonganti@1
|
35 ],
|
kkonganti@1
|
36 'sourmashgather_prefetch': [
|
kkonganti@1
|
37 clihelp: 'Use prefetch before gather. ' +
|
kkonganti@1
|
38 "Default: ${params.sourmashgather_prefetch}",
|
kkonganti@1
|
39 cliflag: '--prefetch',
|
kkonganti@1
|
40 clivalue: (params.sourmashgather_prefetch ? ' ' : '')
|
kkonganti@1
|
41 ],
|
kkonganti@1
|
42 'sourmashgather_noprefetch': [
|
kkonganti@1
|
43 clihelp: 'Do not use prefetch before gather. ' +
|
kkonganti@1
|
44 "Default: ${params.sourmashgather_noprefetch}",
|
kkonganti@1
|
45 cliflag: '--no-prefetch',
|
kkonganti@1
|
46 clivalue: (params.sourmashgather_noprefetch ? ' ' : '')
|
kkonganti@1
|
47 ],
|
kkonganti@1
|
48 'sourmashgather_ani_ci': [
|
kkonganti@1
|
49 clihelp: 'Output confidence intervals for ANI estimates. ' +
|
kkonganti@1
|
50 "Default: ${params.sourmashgather_ani_ci}",
|
kkonganti@1
|
51 cliflag: '--estimate-ani-ci',
|
kkonganti@1
|
52 clivalue: (params.sourmashgather_ani_ci ? ' ' : '')
|
kkonganti@1
|
53 ],
|
kkonganti@1
|
54 'sourmashgather_k': [
|
kkonganti@1
|
55 clihelp: 'The k-mer size to select. ' +
|
kkonganti@1
|
56 "Default: ${params.sourmashgather_k}",
|
kkonganti@1
|
57 cliflag: '-k',
|
kkonganti@1
|
58 clivalue: (params.sourmashgather_k ?: '')
|
kkonganti@1
|
59 ],
|
kkonganti@1
|
60 'sourmashgather_protein': [
|
kkonganti@1
|
61 clihelp: 'Choose a protein signature. ' +
|
kkonganti@1
|
62 "Default: ${params.sourmashgather_protein}",
|
kkonganti@1
|
63 cliflag: '--protein',
|
kkonganti@1
|
64 clivalue: (params.sourmashgather_protein ? ' ' : '')
|
kkonganti@1
|
65 ],
|
kkonganti@1
|
66 'sourmashgather_noprotein': [
|
kkonganti@1
|
67 clihelp: 'Do not choose a protein signature. ' +
|
kkonganti@1
|
68 "Default: ${params.sourmashgather_noprotein}",
|
kkonganti@1
|
69 cliflag: '--no-protein',
|
kkonganti@1
|
70 clivalue: (params.sourmashgather_noprotein ? ' ' : '')
|
kkonganti@1
|
71 ],
|
kkonganti@1
|
72 'sourmashgather_dayhoff': [
|
kkonganti@1
|
73 clihelp: 'Choose Dayhoff-encoded amino acid signatures. ' +
|
kkonganti@1
|
74 "Default: ${params.sourmashgather_dayhoff}",
|
kkonganti@1
|
75 cliflag: '--dayhoff',
|
kkonganti@1
|
76 clivalue: (params.sourmashgather_dayhoff ? ' ' : '')
|
kkonganti@1
|
77 ],
|
kkonganti@1
|
78 'sourmashgather_nodayhoff': [
|
kkonganti@1
|
79 clihelp: 'Do not choose Dayhoff-encoded amino acid signatures. ' +
|
kkonganti@1
|
80 "Default: ${params.sourmashgather_nodayhoff}",
|
kkonganti@1
|
81 cliflag: '--no-dayhoff',
|
kkonganti@1
|
82 clivalue: (params.sourmashgather_nodayhoff ? ' ' : '')
|
kkonganti@1
|
83 ],
|
kkonganti@1
|
84 'sourmashgather_hp': [
|
kkonganti@1
|
85 clihelp: 'Choose hydrophobic-polar-encoded amino acid signatures. ' +
|
kkonganti@1
|
86 "Default: ${params.sourmashgather_hp}",
|
kkonganti@1
|
87 cliflag: '--hp',
|
kkonganti@1
|
88 clivalue: (params.sourmashgather_hp ? ' ' : '')
|
kkonganti@1
|
89 ],
|
kkonganti@1
|
90 'sourmashgather_nohp': [
|
kkonganti@1
|
91 clihelp: 'Do not choose hydrophobic-polar-encoded amino acid signatures. ' +
|
kkonganti@1
|
92 "Default: ${params.sourmashgather_nohp}",
|
kkonganti@1
|
93 cliflag: '--no-hp',
|
kkonganti@1
|
94 clivalue: (params.sourmashgather_nohp ? ' ' : '')
|
kkonganti@1
|
95 ],
|
kkonganti@1
|
96 'sourmashgather_dna': [
|
kkonganti@1
|
97 clihelp: 'Choose DNA signature. ' +
|
kkonganti@1
|
98 "Default: ${params.sourmashgather_dna}",
|
kkonganti@1
|
99 cliflag: '--dna',
|
kkonganti@1
|
100 clivalue: (params.sourmashgather_dna ? ' ' : '')
|
kkonganti@1
|
101 ],
|
kkonganti@1
|
102 'sourmashgather_nodna': [
|
kkonganti@1
|
103 clihelp: 'Do not choose DNA signature. ' +
|
kkonganti@1
|
104 "Default: ${params.sourmashgather_nodna}",
|
kkonganti@1
|
105 cliflag: '--no-dna',
|
kkonganti@1
|
106 clivalue: (params.sourmashgather_nodna ? ' ' : '')
|
kkonganti@1
|
107 ],
|
kkonganti@1
|
108 'sourmashgather_scaled': [
|
kkonganti@1
|
109 clihelp: 'Scaled value should be between 100 and 1e6. ' +
|
kkonganti@1
|
110 "Default: ${params.sourmashgather_scaled}",
|
kkonganti@1
|
111 cliflag: '--scaled',
|
kkonganti@1
|
112 clivalue: (params.sourmashgather_scaled ?: '')
|
kkonganti@1
|
113 ],
|
kkonganti@1
|
114 'sourmashgather_inc_pat': [
|
kkonganti@1
|
115 clihelp: 'Search only signatures that match this pattern in name, filename, or md5. ' +
|
kkonganti@1
|
116 "Default: ${params.sourmashgather_inc_pat}",
|
kkonganti@1
|
117 cliflag: '--include-db-pattern',
|
kkonganti@1
|
118 clivalue: (params.sourmashgather_inc_pat ?: '')
|
kkonganti@1
|
119 ],
|
kkonganti@1
|
120 'sourmashgather_exc_pat': [
|
kkonganti@1
|
121 clihelp: 'Search only signatures that do not match this pattern in name, filename, or md5. ' +
|
kkonganti@1
|
122 "Default: ${params.sourmashgather_exc_pat}",
|
kkonganti@1
|
123 cliflag: '--exclude-db-pattern',
|
kkonganti@1
|
124 clivalue: (params.sourmashgather_exc_pat ?: '')
|
kkonganti@1
|
125 ]
|
kkonganti@1
|
126 ]
|
kkonganti@1
|
127
|
kkonganti@1
|
128 toolspecs.each {
|
kkonganti@1
|
129 k, v -> tool.text['--' + k] = "${v.clihelp}"
|
kkonganti@1
|
130 tool.helpparams[k] = [ cliflag: "${v.cliflag}", clivalue: v.clivalue ]
|
kkonganti@1
|
131 }
|
kkonganti@1
|
132
|
kkonganti@1
|
133 return tool
|
kkonganti@1
|
134 } |