miga-base 0.3.1.6 → 0.3.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/actions/ncbi_get.rb +57 -42
  3. data/lib/miga/result/base.rb +7 -0
  4. data/lib/miga/result/dates.rb +42 -0
  5. data/lib/miga/result.rb +4 -0
  6. data/lib/miga/version.rb +1 -1
  7. data/scripts/essential_genes.bash +5 -4
  8. data/utils/enveomics/Makefile +1 -1
  9. data/utils/enveomics/Manifest/Tasks/aasubs.json +75 -75
  10. data/utils/enveomics/Manifest/Tasks/blasttab.json +194 -185
  11. data/utils/enveomics/Manifest/Tasks/distances.json +130 -130
  12. data/utils/enveomics/Manifest/Tasks/fasta.json +51 -3
  13. data/utils/enveomics/Manifest/Tasks/fastq.json +161 -126
  14. data/utils/enveomics/Manifest/Tasks/graphics.json +111 -111
  15. data/utils/enveomics/Manifest/Tasks/mapping.json +30 -0
  16. data/utils/enveomics/Manifest/Tasks/ogs.json +308 -265
  17. data/utils/enveomics/Manifest/Tasks/other.json +451 -449
  18. data/utils/enveomics/Manifest/Tasks/remote.json +1 -1
  19. data/utils/enveomics/Manifest/Tasks/sequence-identity.json +18 -10
  20. data/utils/enveomics/Manifest/Tasks/tables.json +250 -250
  21. data/utils/enveomics/Manifest/Tasks/trees.json +52 -52
  22. data/utils/enveomics/Manifest/Tasks/variants.json +4 -4
  23. data/utils/enveomics/Manifest/categories.json +12 -4
  24. data/utils/enveomics/Manifest/examples.json +1 -1
  25. data/utils/enveomics/Scripts/BedGraph.tad.rb +71 -0
  26. data/utils/enveomics/Scripts/BlastTab.recplot2.R +23 -22
  27. data/utils/enveomics/Scripts/FastA.split.rb +79 -0
  28. data/utils/enveomics/Scripts/FastQ.test-error.rb +81 -0
  29. data/utils/enveomics/Scripts/JPlace.to_iToL.rb +272 -258
  30. data/utils/enveomics/Scripts/aai.rb +13 -6
  31. data/utils/enveomics/Scripts/ani.rb +2 -2
  32. data/utils/enveomics/Scripts/clust.rand.rb +102 -0
  33. data/utils/enveomics/Scripts/lib/enveomics_rb/enveomics.rb +12 -14
  34. data/utils/enveomics/Scripts/lib/enveomics_rb/jplace.rb +2 -2
  35. data/utils/enveomics/Scripts/rbm.rb +23 -14
  36. data/utils/enveomics/enveomics.R/DESCRIPTION +1 -1
  37. data/utils/enveomics/enveomics.R/R/barplot.R +2 -2
  38. metadata +9 -2
@@ -6,7 +6,7 @@
6
6
  "the pathways in which the subject peptides are involved."],
7
7
  "requires": [
8
8
  { "perl_lib": "JSON" },
9
- { "perl_lib": "LWP::Simple" }
9
+ { "perl_lib": "LWP::Simple" }
10
10
  ],
11
11
  "help_arg": "",
12
12
  "options": [
@@ -8,9 +8,13 @@
8
8
  "see_also": ["ani.rb", "rbm.rb"],
9
9
  "cite": [
10
10
  ["Konstantinidis & Tiedje, 2005, JBac",
11
- "http://dx.doi.org/10.1128%2FJB.187.18.6258-6264.2005"],
12
- ["Altschul et al, 2000, JMB",
13
- "http://dx.doi.org/10.1016/S0022-2836(05)80360-2"]
11
+ "https://dx.doi.org/10.1128%2FJB.187.18.6258-6264.2005"],
12
+ ["Altschul et al, 2000, JMB (BLAST)",
13
+ "https://dx.doi.org/10.1016/S0022-2836(05)80360-2"],
14
+ ["Kent WJ, 2002, Genome Res (BLAT)",
15
+ "https://dx.doi.org/10.1101/gr.229202"],
16
+ ["Buchfink B, Xie C, Huson D, 2015, Nat Meth (Diamond)",
17
+ "https://dx.doi.org/10.1038/nmeth.3176"]
14
18
  ],
15
19
  "options": [
16
20
  {
@@ -90,7 +94,7 @@
90
94
  {
91
95
  "opt": "--program",
92
96
  "arg": "select",
93
- "values": ["blast+","blast","blat"],
97
+ "values": ["blast+","blast","blat","diamond"],
94
98
  "default": "blast+",
95
99
  "description": "Search program to be used.",
96
100
  "note": ["Make sure that you have installed the search program you",
@@ -189,8 +193,10 @@
189
193
  "cite": [
190
194
  ["Konstantinidis & Tiedje, 2005, PNAS",
191
195
  "http://dx.doi.org/10.1073%2Fpnas.0409727102"],
192
- ["Altschul et al, 2000, JMB",
193
- "http://dx.doi.org/10.1016/S0022-2836(05)80360-2"]
196
+ ["Altschul et al, 2000, JMB (BLAST)",
197
+ "http://dx.doi.org/10.1016/S0022-2836(05)80360-2"],
198
+ ["Kent WJ, 2002, Genome Res (BLAT)",
199
+ "https://dx.doi.org/10.1101/gr.229202"]
194
200
  ],
195
201
  "options": [
196
202
  {
@@ -362,8 +368,10 @@
362
368
  "sequences."],
363
369
  "help_arg": "--help",
364
370
  "cite":[
365
- ["Altschul et al, 2000, JMB",
366
- "http://dx.doi.org/10.1016/S0022-2836(05)80360-2"]
371
+ ["Altschul et al, 2000, JMB (BLAST)",
372
+ "http://dx.doi.org/10.1016/S0022-2836(05)80360-2"],
373
+ ["Buchfink B, Xie C, Huson D, 2015, Nat Meth (Diamond)",
374
+ "https://dx.doi.org/10.1038/nmeth.3176"]
367
375
  ],
368
376
  "options": [
369
377
  {
@@ -399,7 +407,7 @@
399
407
  "arg": "float",
400
408
  "default": 0.0,
401
409
  "description": ["Minimum alignment length (as a fraction of the",
402
- "query). If set, requires BLAST+ (see Program)."]
410
+ "query). If set, requires BLAST+ or Diamond (see Program)."]
403
411
  },
404
412
  {
405
413
  "name": "Identity",
@@ -425,7 +433,7 @@
425
433
  {
426
434
  "opt": "--program",
427
435
  "arg": "select",
428
- "values": ["blast+", "blast", "blat"],
436
+ "values": ["blast+", "blast", "blat", "diamond"],
429
437
  "default": "blast+",
430
438
  "description": "Search program to be used. Default: blast+.",
431
439
  "note": ["Make sure that you have installed the search program you",
@@ -8,50 +8,50 @@
8
8
  "requires": [ { "r_package": "optparse" } ],
9
9
  "options": [
10
10
  {
11
- "name": "Input list",
12
- "opt": "--x",
13
- "arg": "in_file",
14
- "mandatory": true,
15
- "description": "A tab-delimited table with the distances."
16
- },
17
- {
18
- "opt": "--obj1-index",
19
- "arg": "integer",
20
- "default": 1,
21
- "description": ["Index of the column containing the ID of the object",
22
- "1."]
23
- },
24
- {
25
- "opt": "--obj2-index",
26
- "arg": "integer",
27
- "default": 2,
28
- "description": ["Index of the column containing the ID of the object",
29
- "2."]
30
- },
31
- {
32
- "opt": "--dist-index",
33
- "arg": "integer",
34
- "default": 3,
35
- "description": "Index of the column containing the distance."
36
- },
37
- {
38
- "opt": "--default-d",
39
- "arg": "integer",
40
- "description": "Default value for missing values. NA if empty."
41
- },
42
- {
43
- "opt": "--max-sim",
44
- "arg": "float",
45
- "description": ["If not-empty, assumes that the values are",
46
- "similarity (not distance) and this is the maximum similarity",
47
- "(corresponding to distance 0). Applies transformation:",
48
- "distance = (max.sim - values)/max.sim."]
49
- },
50
- {
51
- "arg": "out_file",
52
- "mandatory": true,
53
- "description": "Output squared matrix in tab-separated values format."
54
- }
11
+ "name": "Input list",
12
+ "opt": "--x",
13
+ "arg": "in_file",
14
+ "mandatory": true,
15
+ "description": "A tab-delimited table with the distances."
16
+ },
17
+ {
18
+ "opt": "--obj1-index",
19
+ "arg": "integer",
20
+ "default": 1,
21
+ "description": ["Index of the column containing the ID of the object",
22
+ "1."]
23
+ },
24
+ {
25
+ "opt": "--obj2-index",
26
+ "arg": "integer",
27
+ "default": 2,
28
+ "description": ["Index of the column containing the ID of the object",
29
+ "2."]
30
+ },
31
+ {
32
+ "opt": "--dist-index",
33
+ "arg": "integer",
34
+ "default": 3,
35
+ "description": "Index of the column containing the distance."
36
+ },
37
+ {
38
+ "opt": "--default-d",
39
+ "arg": "integer",
40
+ "description": "Default value for missing values. NA if empty."
41
+ },
42
+ {
43
+ "opt": "--max-sim",
44
+ "arg": "float",
45
+ "description": ["If not-empty, assumes that the values are",
46
+ "similarity (not distance) and this is the maximum similarity",
47
+ "(corresponding to distance 0). Applies transformation:",
48
+ "distance = (max.sim - values)/max.sim."]
49
+ },
50
+ {
51
+ "arg": "out_file",
52
+ "mandatory": true,
53
+ "description": "Output squared matrix in tab-separated values format."
54
+ }
55
55
  ]
56
56
  },
57
57
  {
@@ -61,55 +61,55 @@
61
61
  "help_arg": "",
62
62
  "options": [
63
63
  {
64
- "name": "Key",
65
- "opt": "-k",
66
- "arg": "integer",
67
- "default": 1,
68
- "description": "Column of the table to use as key to filter."
69
- },
70
- {
71
- "name": "Sep",
72
- "opt": "-s",
73
- "arg": "string",
74
- "description": ["String to use as separation between rows. By",
75
- "default, tabulation."]
76
- },
77
- {
78
- "name": "Inverse",
79
- "opt": "-i",
80
- "description": ["If set, reports the inverse of the list (i.e.,",
81
- "reports only rows absent in the list). Implies 'No re-order'."]
82
- },
83
- {
84
- "name": "Header",
85
- "opt": "-h",
86
- "description": "Keep first row of the table (header) untouched."
87
- },
88
- {
89
- "name": "No re-order",
90
- "opt": "-n",
91
- "description": ["The output has the same order of the table. By",
92
- "default, it prints in the order of the list."]
93
- },
94
- {
95
- "name": "List",
96
- "arg": "in_file",
97
- "mandatory": true,
98
- "description": "List of IDs to extract."
99
- },
100
- {
101
- "name": "Table",
102
- "arg": "in_file",
103
- "mandatory": true,
104
- "description": "Table file containing the superset."
105
- },
106
- ">",
107
- {
108
- "name": "Subset",
109
- "arg": "out_file",
110
- "mandatory": true,
111
- "description": "Table file to be created."
112
- }
64
+ "name": "Key",
65
+ "opt": "-k",
66
+ "arg": "integer",
67
+ "default": 1,
68
+ "description": "Column of the table to use as key to filter."
69
+ },
70
+ {
71
+ "name": "Sep",
72
+ "opt": "-s",
73
+ "arg": "string",
74
+ "description": ["String to use as separation between rows. By",
75
+ "default, tabulation."]
76
+ },
77
+ {
78
+ "name": "Inverse",
79
+ "opt": "-i",
80
+ "description": ["If set, reports the inverse of the list (i.e.,",
81
+ "reports only rows absent in the list). Implies 'No re-order'."]
82
+ },
83
+ {
84
+ "name": "Header",
85
+ "opt": "-h",
86
+ "description": "Keep first row of the table (header) untouched."
87
+ },
88
+ {
89
+ "name": "No re-order",
90
+ "opt": "-n",
91
+ "description": ["The output has the same order of the table. By",
92
+ "default, it prints in the order of the list."]
93
+ },
94
+ {
95
+ "name": "List",
96
+ "arg": "in_file",
97
+ "mandatory": true,
98
+ "description": "List of IDs to extract."
99
+ },
100
+ {
101
+ "name": "Table",
102
+ "arg": "in_file",
103
+ "mandatory": true,
104
+ "description": "Table file containing the superset."
105
+ },
106
+ ">",
107
+ {
108
+ "name": "Subset",
109
+ "arg": "out_file",
110
+ "mandatory": true,
111
+ "description": "Table file to be created."
112
+ }
113
113
  ]
114
114
  },
115
115
  {
@@ -119,73 +119,73 @@
119
119
  "help_arg": "",
120
120
  "options": [
121
121
  {
122
- "name": "Strings",
123
- "opt": "-s",
124
- "description": ["Values are read as Strings. By default, values are",
125
- "read as numbers."]
126
- },
127
- {
128
- "name": "Input delimiter",
129
- "opt": "-i",
130
- "arg": "string",
131
- "description": "Input field-delimiter. By default, tabulation."
132
- },
133
- {
134
- "name": "Output delimiter",
135
- "opt": "-o",
136
- "arg": "string",
137
- "description": "Output field-delimiter. By default: tabulation."
138
- },
139
- {
140
- "name": "No header",
141
- "opt": "-n",
142
- "description": ["By default, the header is determined by the file",
143
- "names."]
144
- },
145
- {
146
- "name": "Empty",
147
- "opt": "-e",
148
- "description": ["Default string when no value is found. By default,",
149
- "the 'empty' value is 0 if values are numeric (i.e., unless -s is",
150
- "set) or an empty string otherwise."]
151
- },
152
- {
153
- "name": "Header",
154
- "opt": "-h",
155
- "arg": "string",
156
- "default": "Tag",
157
- "description": "Header of the first column, containing the IDs."
158
- },
159
- {
160
- "name": "Header format",
161
- "opt": "-H",
162
- "arg": "string",
163
- "default": "(?:.*/)?([^\\.]+)",
164
- "description": ["Format of filenames capturing the column header in",
165
- "the first capturing parenthesis. Non-capturing paretheses can be",
166
- "defined as (?:...). By default: '(?:.*/)?([^\\.]+)', which",
167
- "captures the part of the basename of the file before the first",
168
- "dot (if any)."]
169
- },
170
- {
171
- "name": "Rows to ignore",
172
- "opt": "-r",
173
- "arg": "integer",
174
- "default": 0,
175
- "description": "Number of leading rows to ignore in the input files."
176
- },
177
- {
178
- "arg": "in_file",
179
- "mandatory": true,
180
- "multiple_sep": " ",
181
- "description": "Input two-column lists."
182
- },
183
- ">",
184
- {
185
- "arg": "out_file",
186
- "mandatory": true,
187
- "description": "Merged table."
188
- }
122
+ "name": "Strings",
123
+ "opt": "-s",
124
+ "description": ["Values are read as Strings. By default, values are",
125
+ "read as numbers."]
126
+ },
127
+ {
128
+ "name": "Input delimiter",
129
+ "opt": "-i",
130
+ "arg": "string",
131
+ "description": "Input field-delimiter. By default, tabulation."
132
+ },
133
+ {
134
+ "name": "Output delimiter",
135
+ "opt": "-o",
136
+ "arg": "string",
137
+ "description": "Output field-delimiter. By default: tabulation."
138
+ },
139
+ {
140
+ "name": "No header",
141
+ "opt": "-n",
142
+ "description": ["By default, the header is determined by the file",
143
+ "names."]
144
+ },
145
+ {
146
+ "name": "Empty",
147
+ "opt": "-e",
148
+ "description": ["Default string when no value is found. By default,",
149
+ "the 'empty' value is 0 if values are numeric (i.e., unless -s is",
150
+ "set) or an empty string otherwise."]
151
+ },
152
+ {
153
+ "name": "Header",
154
+ "opt": "-h",
155
+ "arg": "string",
156
+ "default": "Tag",
157
+ "description": "Header of the first column, containing the IDs."
158
+ },
159
+ {
160
+ "name": "Header format",
161
+ "opt": "-H",
162
+ "arg": "string",
163
+ "default": "(?:.*/)?([^\\.]+)",
164
+ "description": ["Format of filenames capturing the column header in",
165
+ "the first capturing parenthesis. Non-capturing paretheses can be",
166
+ "defined as (?:...). By default: '(?:.*/)?([^\\.]+)', which",
167
+ "captures the part of the basename of the file before the first",
168
+ "dot (if any)."]
169
+ },
170
+ {
171
+ "name": "Rows to ignore",
172
+ "opt": "-r",
173
+ "arg": "integer",
174
+ "default": 0,
175
+ "description": "Number of leading rows to ignore in the input files."
176
+ },
177
+ {
178
+ "arg": "in_file",
179
+ "mandatory": true,
180
+ "multiple_sep": " ",
181
+ "description": "Input two-column lists."
182
+ },
183
+ ">",
184
+ {
185
+ "arg": "out_file",
186
+ "mandatory": true,
187
+ "description": "Merged table."
188
+ }
189
189
  ]
190
190
  },
191
191
  {
@@ -194,41 +194,41 @@
194
194
  "help_arg": "--help",
195
195
  "options": [
196
196
  {
197
- "name": "Input file",
198
- "opt": "--in",
199
- "arg": "in_file",
200
- "mandatory": true,
201
- "description": "Input table."
202
- },
203
- {
204
- "name": "Output file",
205
- "opt": "--out",
206
- "arg": "out_file",
207
- "mandatory": true,
208
- "description": "Output table."
209
- },
210
- {
211
- "name": "Decimals",
212
- "opt": "--ndigits",
213
- "arg": "integer",
214
- "default": 0,
215
- "description": "Number of decimal digits."
216
- },
217
- {
218
- "opt": "--floor",
219
- "description": ["Floors the values instead of rounding them. Ignores",
220
- "'Decimals'."]
221
- },
222
- {
223
- "opt": "--ceil",
224
- "description": ["Ceils the values instead of rounding them. Ignores",
225
- "'Decimals'."]
226
- },
227
- {
228
- "opt": "--delimiter",
229
- "arg": "string",
230
- "description": "String delimiting columns. By default, tabulation."
231
- }
197
+ "name": "Input file",
198
+ "opt": "--in",
199
+ "arg": "in_file",
200
+ "mandatory": true,
201
+ "description": "Input table."
202
+ },
203
+ {
204
+ "name": "Output file",
205
+ "opt": "--out",
206
+ "arg": "out_file",
207
+ "mandatory": true,
208
+ "description": "Output table."
209
+ },
210
+ {
211
+ "name": "Decimals",
212
+ "opt": "--ndigits",
213
+ "arg": "integer",
214
+ "default": 0,
215
+ "description": "Number of decimal digits."
216
+ },
217
+ {
218
+ "opt": "--floor",
219
+ "description": ["Floors the values instead of rounding them. Ignores",
220
+ "'Decimals'."]
221
+ },
222
+ {
223
+ "opt": "--ceil",
224
+ "description": ["Ceils the values instead of rounding them. Ignores",
225
+ "'Decimals'."]
226
+ },
227
+ {
228
+ "opt": "--delimiter",
229
+ "arg": "string",
230
+ "description": "String delimiting columns. By default, tabulation."
231
+ }
232
232
  ]
233
233
  },
234
234
  {
@@ -239,28 +239,28 @@
239
239
  "help_arg": "",
240
240
  "options": [
241
241
  {
242
- "name": "Input delimiter",
243
- "opt": "-i",
244
- "arg": "string",
245
- "description": "Input field-delimiter. By default, tabulation."
246
- },
247
- {
248
- "name": "Out prefix",
249
- "opt": "-o",
250
- "arg": "string",
251
- "description": "Prefix of the output files."
252
- },
253
- {
254
- "name": "Output directory",
255
- "opt": "-d",
256
- "arg": "out_dir",
257
- "description": "Output directory."
258
- },
259
- {
260
- "arg": "in_file",
261
- "mandatory": true,
262
- "description": "Input table."
263
- }
242
+ "name": "Input delimiter",
243
+ "opt": "-i",
244
+ "arg": "string",
245
+ "description": "Input field-delimiter. By default, tabulation."
246
+ },
247
+ {
248
+ "name": "Out prefix",
249
+ "opt": "-o",
250
+ "arg": "string",
251
+ "description": "Prefix of the output files."
252
+ },
253
+ {
254
+ "name": "Output directory",
255
+ "opt": "-d",
256
+ "arg": "out_dir",
257
+ "description": "Output directory."
258
+ },
259
+ {
260
+ "arg": "in_file",
261
+ "mandatory": true,
262
+ "description": "Input table."
263
+ }
264
264
  ]
265
265
  },
266
266
  {
@@ -269,39 +269,39 @@
269
269
  "help_arg": "--help",
270
270
  "options": [
271
271
  {
272
- "opt": "--map",
273
- "arg": "in_file",
274
- "mandatory": true,
275
- "description": "Mapping file with two columns (key and replacement)."
276
- },
277
- {
278
- "opt": "--in",
279
- "arg": "in_file",
280
- "mandatory": true,
281
- "description": "Input table."
282
- },
283
- {
284
- "opt": "--out",
285
- "arg": "out_file",
286
- "mandatory": true,
287
- "description": "Output table."
288
- },
289
- {
290
- "opt": "--key",
291
- "arg": "integer",
292
- "default": 1,
293
- "description": "Column to replace in Input table."
294
- },
295
- {
296
- "opt": "--unknown",
297
- "arg": "string",
298
- "description": "String to use whenever the key is not found in Map."
299
- },
300
- {
301
- "opt": "--delimiter",
302
- "arg": "string",
303
- "description": "String delimiting columns. By default, tabulation."
304
- }
272
+ "opt": "--map",
273
+ "arg": "in_file",
274
+ "mandatory": true,
275
+ "description": "Mapping file with two columns (key and replacement)."
276
+ },
277
+ {
278
+ "opt": "--in",
279
+ "arg": "in_file",
280
+ "mandatory": true,
281
+ "description": "Input table."
282
+ },
283
+ {
284
+ "opt": "--out",
285
+ "arg": "out_file",
286
+ "mandatory": true,
287
+ "description": "Output table."
288
+ },
289
+ {
290
+ "opt": "--key",
291
+ "arg": "integer",
292
+ "default": 1,
293
+ "description": "Column to replace in Input table."
294
+ },
295
+ {
296
+ "opt": "--unknown",
297
+ "arg": "string",
298
+ "description": "String to use whenever the key is not found in Map."
299
+ },
300
+ {
301
+ "opt": "--delimiter",
302
+ "arg": "string",
303
+ "description": "String delimiting columns. By default, tabulation."
304
+ }
305
305
  ]
306
306
  }
307
307
  ]