1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.ext.ensembl; |
22 |
|
|
23 |
|
import java.io.BufferedReader; |
24 |
|
import java.io.DataOutputStream; |
25 |
|
import java.io.IOException; |
26 |
|
import java.io.InputStream; |
27 |
|
import java.net.HttpURLConnection; |
28 |
|
import java.net.MalformedURLException; |
29 |
|
import java.net.ProtocolException; |
30 |
|
import java.net.URL; |
31 |
|
import java.util.HashMap; |
32 |
|
import java.util.List; |
33 |
|
import java.util.Map; |
34 |
|
|
35 |
|
import javax.ws.rs.HttpMethod; |
36 |
|
|
37 |
|
import org.json.simple.parser.ParseException; |
38 |
|
|
39 |
|
import jalview.util.Platform; |
40 |
|
import jalview.util.StringUtils; |
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
@author |
46 |
|
|
|
|
| 7.1% |
Uncovered Elements: 197 (212) |
Complexity: 56 |
Complexity Density: 0.39 |
|
47 |
|
abstract class EnsemblRestClient extends EnsemblSequenceFetcher |
48 |
|
{ |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
50 |
1 |
static... |
51 |
|
{ |
52 |
1 |
Platform.addJ2SDirectDatabaseCall("http://rest.ensembl"); |
53 |
1 |
Platform.addJ2SDirectDatabaseCall("https://rest.ensembl"); |
54 |
|
} |
55 |
|
|
56 |
|
private static final int DEFAULT_READ_TIMEOUT = 5 * 60 * 1000; |
57 |
|
|
58 |
|
private static final int CONNECT_TIMEOUT_MS = 10 * 1000; |
59 |
|
|
60 |
|
private static final int MAX_RETRIES = 3; |
61 |
|
|
62 |
|
private static final int HTTP_OK = 200; |
63 |
|
|
64 |
|
private static final int HTTP_OVERLOAD = 429; |
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
@see |
70 |
|
@see |
71 |
|
|
72 |
|
private static final String LATEST_ENSEMBLGENOMES_REST_VERSION = "10.0"; |
73 |
|
|
74 |
|
private static final String LATEST_ENSEMBL_REST_VERSION = "10.0"; |
75 |
|
|
76 |
|
private static final String REST_CHANGE_LOG = "https://github.com/Ensembl/ensembl-rest/wiki/Change-log"; |
77 |
|
|
78 |
|
private static Map<String, EnsemblData> domainData; |
79 |
|
|
80 |
|
private final static long AVAILABILITY_RETEST_INTERVAL = 10000L; |
81 |
|
|
82 |
|
private final static long VERSION_RETEST_INTERVAL = 1000L * 3600; |
83 |
|
|
84 |
|
protected static final String CONTENT_TYPE_JSON = "?content-type=application/json"; |
85 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
86 |
1 |
static... |
87 |
|
{ |
88 |
1 |
domainData = new HashMap<>(); |
89 |
1 |
domainData.put(DEFAULT_ENSEMBL_BASEURL, new EnsemblData( |
90 |
|
DEFAULT_ENSEMBL_BASEURL, LATEST_ENSEMBL_REST_VERSION)); |
91 |
1 |
domainData.put(DEFAULT_ENSEMBL_GENOMES_BASEURL, |
92 |
|
new EnsemblData(DEFAULT_ENSEMBL_GENOMES_BASEURL, |
93 |
|
LATEST_ENSEMBLGENOMES_REST_VERSION)); |
94 |
|
} |
95 |
|
|
96 |
|
protected volatile boolean inProgress = false; |
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
|
|
| 55.6% |
Uncovered Elements: 4 (9) |
Complexity: 3 |
Complexity Density: 0.6 |
|
101 |
32 |
public EnsemblRestClient()... |
102 |
|
{ |
103 |
32 |
super(); |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
32 |
if (!domainData.containsKey(ensemblDomain)) |
109 |
|
{ |
110 |
0 |
domainData.put(ensemblDomain, |
111 |
|
new EnsemblData(ensemblDomain, LATEST_ENSEMBL_REST_VERSION)); |
112 |
|
} |
113 |
32 |
if (!domainData.containsKey(ensemblGenomesDomain)) |
114 |
|
{ |
115 |
0 |
domainData.put(ensemblGenomesDomain, new EnsemblData( |
116 |
|
ensemblGenomesDomain, LATEST_ENSEMBLGENOMES_REST_VERSION)); |
117 |
|
} |
118 |
|
} |
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
@param |
124 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
125 |
1 |
public EnsemblRestClient(String d)... |
126 |
|
{ |
127 |
1 |
setDomain(d); |
128 |
|
} |
129 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
0 |
@Override... |
131 |
|
public boolean queryInProgress() |
132 |
|
{ |
133 |
0 |
return inProgress; |
134 |
|
} |
135 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
0 |
@Override... |
137 |
|
public StringBuffer getRawRecords() |
138 |
|
{ |
139 |
0 |
return null; |
140 |
|
} |
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
@param |
146 |
|
@return |
147 |
|
@throws |
148 |
|
|
149 |
|
protected abstract URL getUrl(List<String> ids) |
150 |
|
throws MalformedURLException; |
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
155 |
|
@return |
156 |
|
|
157 |
|
protected abstract boolean useGetRequest(); |
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
@return |
164 |
|
@see |
165 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
166 |
0 |
protected String getRequestMimeType()... |
167 |
|
{ |
168 |
0 |
return "application/json"; |
169 |
|
} |
170 |
|
|
171 |
|
|
172 |
|
|
173 |
|
|
174 |
|
|
175 |
|
@return |
176 |
|
@see |
177 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
178 |
0 |
protected String getResponseMimeType()... |
179 |
|
{ |
180 |
0 |
return "application/json"; |
181 |
|
} |
182 |
|
|
183 |
|
|
184 |
|
|
185 |
|
|
186 |
|
|
187 |
|
@see |
188 |
|
@return |
189 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 5 |
Complexity Density: 0.38 |
|
190 |
0 |
@SuppressWarnings("unchecked")... |
191 |
|
boolean checkEnsembl() |
192 |
|
{ |
193 |
0 |
BufferedReader br = null; |
194 |
0 |
String pingUrl = getDomain() + "/info/ping" + CONTENT_TYPE_JSON; |
195 |
0 |
try |
196 |
|
{ |
197 |
|
|
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
|
203 |
|
|
204 |
0 |
Map<String, Object> val = (Map<String, Object>) getJSON( |
205 |
|
new URL(pingUrl), null, 2 * 1000, MODE_MAP, null); |
206 |
0 |
if (val == null) |
207 |
|
{ |
208 |
0 |
return false; |
209 |
|
} |
210 |
0 |
String pingString = val.get("ping").toString(); |
211 |
0 |
return pingString != null; |
212 |
|
} catch (Throwable t) |
213 |
|
{ |
214 |
0 |
System.err.println( |
215 |
|
"Error connecting to " + pingUrl + ": " + t.getMessage()); |
216 |
|
} finally |
217 |
|
{ |
218 |
0 |
if (br != null) |
219 |
|
{ |
220 |
0 |
try |
221 |
|
{ |
222 |
0 |
br.close(); |
223 |
|
} catch (IOException e) |
224 |
|
{ |
225 |
|
|
226 |
|
} |
227 |
|
} |
228 |
|
} |
229 |
0 |
return false; |
230 |
|
} |
231 |
|
|
232 |
|
protected final static int MODE_ARRAY = 0; |
233 |
|
|
234 |
|
protected final static int MODE_MAP = 1; |
235 |
|
|
236 |
|
protected final static int MODE_ITERATOR = 2; |
237 |
|
|
238 |
|
|
239 |
|
|
240 |
|
|
241 |
|
|
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
|
247 |
|
|
248 |
|
|
249 |
|
|
250 |
|
|
251 |
|
|
252 |
|
|
253 |
|
|
254 |
|
|
255 |
|
|
256 |
|
|
257 |
|
|
258 |
|
|
259 |
|
|
260 |
|
|
261 |
|
|
262 |
|
|
263 |
|
|
264 |
|
|
265 |
|
|
266 |
|
|
267 |
|
|
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
|
272 |
|
|
273 |
|
@param |
274 |
|
@param |
275 |
|
|
276 |
|
@param |
277 |
|
|
278 |
|
@return |
279 |
|
@throws |
280 |
|
@throws |
281 |
|
|
|
|
| 0% |
Uncovered Elements: 27 (27) |
Complexity: 5 |
Complexity Density: 0.26 |
|
282 |
0 |
private Object getJSON(URL url, List<String> ids, int readTimeout)... |
283 |
|
throws IOException, ParseException |
284 |
|
{ |
285 |
|
|
286 |
0 |
if (readTimeout < 0) |
287 |
|
{ |
288 |
0 |
readTimeout = DEFAULT_READ_TIMEOUT; |
289 |
|
} |
290 |
0 |
int retriesLeft = MAX_RETRIES; |
291 |
0 |
HttpURLConnection connection = null; |
292 |
0 |
int responseCode = 0; |
293 |
|
|
294 |
0 |
Platform.setAjaxJSON(url); |
295 |
|
|
296 |
0 |
while (retriesLeft > 0) |
297 |
|
{ |
298 |
0 |
connection = tryConnection(url, ids, readTimeout); |
299 |
0 |
responseCode = connection.getResponseCode(); |
300 |
0 |
if (responseCode == HTTP_OVERLOAD) |
301 |
|
{ |
302 |
0 |
retriesLeft--; |
303 |
0 |
checkRetryAfter(connection); |
304 |
|
} |
305 |
|
else |
306 |
|
{ |
307 |
0 |
retriesLeft = 0; |
308 |
|
} |
309 |
|
} |
310 |
0 |
if (responseCode != HTTP_OK) |
311 |
|
{ |
312 |
|
|
313 |
|
|
314 |
|
|
315 |
|
|
316 |
0 |
System.err.println("Response code " + responseCode); |
317 |
0 |
return null; |
318 |
|
} |
319 |
|
|
320 |
0 |
InputStream response = connection.getInputStream(); |
321 |
|
|
322 |
|
|
323 |
0 |
Object ret = Platform.parseJSON(response); |
324 |
|
|
325 |
|
|
326 |
|
|
327 |
0 |
return ret; |
328 |
|
} |
329 |
|
|
330 |
|
|
331 |
|
@param |
332 |
|
@param |
333 |
|
@param |
334 |
|
@return |
335 |
|
@throws |
336 |
|
@throws |
337 |
|
|
|
|
| 0% |
Uncovered Elements: 17 (17) |
Complexity: 3 |
Complexity Density: 0.23 |
|
338 |
0 |
protected HttpURLConnection tryConnection(URL url, List<String> ids,... |
339 |
|
int readTimeout) throws IOException, ProtocolException |
340 |
|
{ |
341 |
|
|
342 |
|
|
343 |
0 |
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); |
344 |
|
|
345 |
|
|
346 |
|
|
347 |
|
|
348 |
|
|
349 |
0 |
boolean multipleIds = ids != null && ids.size() > 1; |
350 |
0 |
connection.setRequestMethod( |
351 |
0 |
multipleIds ? HttpMethod.POST : HttpMethod.GET); |
352 |
0 |
connection.setRequestProperty("Content-Type", getRequestMimeType()); |
353 |
0 |
connection.setRequestProperty("Accept", getResponseMimeType()); |
354 |
|
|
355 |
0 |
connection.setDoInput(true); |
356 |
0 |
connection.setDoOutput(multipleIds); |
357 |
|
|
358 |
0 |
connection.setUseCaches(false); |
359 |
0 |
connection.setConnectTimeout(CONNECT_TIMEOUT_MS); |
360 |
0 |
connection.setReadTimeout(readTimeout); |
361 |
|
|
362 |
0 |
if (multipleIds) |
363 |
|
{ |
364 |
0 |
writePostBody(connection, ids); |
365 |
|
} |
366 |
0 |
return connection; |
367 |
|
} |
368 |
|
|
369 |
|
|
370 |
|
|
371 |
|
|
372 |
|
|
373 |
|
@see |
374 |
|
@param |
375 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 5 |
Complexity Density: 0.62 |
|
376 |
0 |
void checkRetryAfter(HttpURLConnection connection)... |
377 |
|
{ |
378 |
0 |
String retryDelay = connection.getHeaderField("Retry-After"); |
379 |
|
|
380 |
|
|
381 |
|
|
382 |
|
|
383 |
0 |
if (retryDelay != null) |
384 |
|
{ |
385 |
0 |
try |
386 |
|
{ |
387 |
0 |
int retrySecs = Integer.valueOf(retryDelay); |
388 |
0 |
if (retrySecs > 0 && retrySecs < 10) |
389 |
|
{ |
390 |
0 |
System.err.println( |
391 |
|
"Ensembl REST service rate limit exceeded, waiting " |
392 |
|
+ retryDelay + " seconds before retrying"); |
393 |
0 |
Thread.sleep(1000 * retrySecs); |
394 |
|
} |
395 |
|
} catch (NumberFormatException | InterruptedException e) |
396 |
|
{ |
397 |
0 |
System.err.println("Error handling Retry-After: " + e.getMessage()); |
398 |
|
} |
399 |
|
} |
400 |
|
} |
401 |
|
|
402 |
|
|
403 |
|
|
404 |
|
|
405 |
|
|
406 |
|
|
407 |
|
|
408 |
|
@return |
409 |
|
|
|
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 4 |
Complexity Density: 0.33 |
|
410 |
0 |
protected boolean isEnsemblAvailable()... |
411 |
|
{ |
412 |
0 |
EnsemblData info = domainData.get(getDomain()); |
413 |
|
|
414 |
0 |
long now = System.currentTimeMillis(); |
415 |
|
|
416 |
|
|
417 |
|
|
418 |
|
|
419 |
0 |
boolean retestAvailability = (now |
420 |
|
- info.lastAvailableCheckTime) > AVAILABILITY_RETEST_INTERVAL; |
421 |
0 |
if (!info.restAvailable || retestAvailability) |
422 |
|
{ |
423 |
0 |
info.restAvailable = checkEnsembl(); |
424 |
0 |
info.lastAvailableCheckTime = now; |
425 |
|
} |
426 |
|
|
427 |
|
|
428 |
|
|
429 |
|
|
430 |
0 |
boolean refetchVersion = (now |
431 |
|
- info.lastVersionCheckTime) > VERSION_RETEST_INTERVAL; |
432 |
0 |
if (refetchVersion) |
433 |
|
{ |
434 |
0 |
checkEnsemblRestVersion(); |
435 |
0 |
checkEnsemblDataVersion(); |
436 |
0 |
info.lastVersionCheckTime = now; |
437 |
|
} |
438 |
|
|
439 |
0 |
return info.restAvailable; |
440 |
|
} |
441 |
|
|
442 |
|
|
443 |
|
|
444 |
|
|
445 |
|
|
446 |
|
@param |
447 |
|
@param |
448 |
|
@throws |
449 |
|
|
|
|
| 0% |
Uncovered Elements: 23 (23) |
Complexity: 3 |
Complexity Density: 0.16 |
|
450 |
0 |
protected void writePostBody(HttpURLConnection connection,... |
451 |
|
List<String> ids) throws IOException |
452 |
|
{ |
453 |
0 |
boolean first; |
454 |
0 |
StringBuilder postBody = new StringBuilder(64); |
455 |
0 |
postBody.append("{\"ids\":["); |
456 |
0 |
first = true; |
457 |
0 |
for (int i = 0, n = ids.size(); i < n; i++) |
458 |
|
{ |
459 |
0 |
String id = ids.get(i); |
460 |
0 |
if (!first) |
461 |
|
{ |
462 |
0 |
postBody.append(","); |
463 |
|
} |
464 |
0 |
first = false; |
465 |
0 |
postBody.append("\""); |
466 |
0 |
postBody.append(id.trim()); |
467 |
0 |
postBody.append("\""); |
468 |
|
} |
469 |
0 |
postBody.append("]}"); |
470 |
0 |
byte[] thepostbody = postBody.toString().getBytes(); |
471 |
0 |
connection.setRequestProperty("Content-Length", |
472 |
|
Integer.toString(thepostbody.length)); |
473 |
0 |
DataOutputStream wr = new DataOutputStream( |
474 |
|
connection.getOutputStream()); |
475 |
0 |
wr.write(thepostbody); |
476 |
0 |
wr.flush(); |
477 |
0 |
wr.close(); |
478 |
|
} |
479 |
|
|
480 |
|
|
481 |
|
|
482 |
|
|
483 |
|
|
484 |
|
@param |
485 |
|
|
486 |
|
@param |
487 |
|
|
488 |
|
@param |
489 |
|
|
490 |
|
@param |
491 |
|
|
492 |
|
@param |
493 |
|
|
494 |
|
@return |
495 |
|
@throws |
496 |
|
@throws |
497 |
|
|
498 |
|
@author |
499 |
|
|
|
|
| 0% |
Uncovered Elements: 23 (23) |
Complexity: 9 |
Complexity Density: 0.6 |
|
500 |
0 |
@SuppressWarnings("unchecked")... |
501 |
|
protected Object getJSON(URL url, List<String> ids, int msDelay, int mode, |
502 |
|
String mapKey) throws IOException, ParseException |
503 |
|
{ |
504 |
0 |
if (url == null) |
505 |
|
{ |
506 |
0 |
url = getUrl(ids); |
507 |
|
} |
508 |
|
|
509 |
0 |
Object json = (url == null ? null : getJSON(url, ids, msDelay)); |
510 |
|
|
511 |
0 |
if (json != null && mapKey != null) |
512 |
|
{ |
513 |
0 |
json = ((Map<String, Object>) json).get(mapKey); |
514 |
|
} |
515 |
0 |
if (json == null) |
516 |
|
{ |
517 |
0 |
return null; |
518 |
|
} |
519 |
0 |
switch (mode) |
520 |
|
{ |
521 |
0 |
case MODE_ARRAY: |
522 |
0 |
case MODE_MAP: |
523 |
0 |
break; |
524 |
0 |
case MODE_ITERATOR: |
525 |
0 |
json = ((List<Object>) json).iterator(); |
526 |
0 |
break; |
527 |
|
} |
528 |
0 |
return json; |
529 |
|
} |
530 |
|
|
531 |
|
|
532 |
|
|
533 |
|
|
534 |
|
@return |
535 |
|
|
|
|
| 0% |
Uncovered Elements: 25 (25) |
Complexity: 6 |
Complexity Density: 0.32 |
|
536 |
0 |
@SuppressWarnings("unchecked")... |
537 |
|
private void checkEnsemblRestVersion() |
538 |
|
{ |
539 |
0 |
EnsemblData info = domainData.get(getDomain()); |
540 |
|
|
541 |
0 |
try |
542 |
|
{ |
543 |
0 |
Map<String, Object> val = (Map<String, Object>) getJSON( |
544 |
|
new URL(getDomain() + "/info/rest" + CONTENT_TYPE_JSON), null, |
545 |
|
-1, MODE_MAP, null); |
546 |
0 |
if (val == null) |
547 |
|
{ |
548 |
0 |
return; |
549 |
|
} |
550 |
0 |
String version = val.get("release").toString(); |
551 |
0 |
String majorVersion = version.substring(0, version.indexOf(".")); |
552 |
0 |
String expected = info.expectedRestVersion; |
553 |
0 |
String expectedMajorVersion = expected.substring(0, |
554 |
|
expected.indexOf(".")); |
555 |
0 |
info.restMajorVersionMismatch = false; |
556 |
0 |
try |
557 |
|
{ |
558 |
|
|
559 |
|
|
560 |
|
|
561 |
|
|
562 |
0 |
if (Float.valueOf(majorVersion) > Float |
563 |
|
.valueOf(expectedMajorVersion)) |
564 |
|
{ |
565 |
0 |
info.restMajorVersionMismatch = true; |
566 |
|
} |
567 |
|
} catch (NumberFormatException e) |
568 |
|
{ |
569 |
0 |
System.err.println("Error in REST version: " + e.toString()); |
570 |
|
} |
571 |
|
|
572 |
|
|
573 |
|
|
574 |
|
|
575 |
|
|
576 |
|
|
577 |
0 |
boolean laterVersion = StringUtils.compareVersions(version, |
578 |
|
expected) == 1; |
579 |
0 |
if (laterVersion) |
580 |
|
{ |
581 |
0 |
System.err.println(String.format( |
582 |
|
"EnsemblRestClient expected %s REST version %s but found %s, see %s", |
583 |
|
getDbSource(), expected, version, REST_CHANGE_LOG)); |
584 |
|
} |
585 |
0 |
info.restVersion = version; |
586 |
|
} catch (Throwable t) |
587 |
|
{ |
588 |
0 |
System.err.println( |
589 |
|
"Error checking Ensembl REST version: " + t.getMessage()); |
590 |
|
} |
591 |
|
} |
592 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
593 |
0 |
public boolean isRestMajorVersionMismatch()... |
594 |
|
{ |
595 |
0 |
return domainData.get(getDomain()).restMajorVersionMismatch; |
596 |
|
} |
597 |
|
|
598 |
|
|
599 |
|
|
600 |
|
|
601 |
|
@return |
602 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.38 |
|
603 |
0 |
@SuppressWarnings("unchecked")... |
604 |
|
private void checkEnsemblDataVersion() |
605 |
|
{ |
606 |
0 |
Map<String, Object> val; |
607 |
0 |
try |
608 |
|
{ |
609 |
0 |
val = (Map<String, Object>) getJSON( |
610 |
|
new URL(getDomain() + "/info/data" + CONTENT_TYPE_JSON), null, |
611 |
|
-1, MODE_MAP, null); |
612 |
0 |
if (val == null) |
613 |
|
{ |
614 |
0 |
return; |
615 |
|
} |
616 |
0 |
List<Object> versions = (List<Object>) val.get("releases"); |
617 |
0 |
domainData.get(getDomain()).dataVersion = versions.get(0).toString(); |
618 |
|
} catch (Throwable e) |
619 |
|
{ |
620 |
0 |
System.err.println( |
621 |
|
"Error checking Ensembl data version: " + e.getMessage()); |
622 |
|
} |
623 |
|
} |
624 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
625 |
0 |
public String getEnsemblDataVersion()... |
626 |
|
{ |
627 |
0 |
return domainData.get(getDomain()).dataVersion; |
628 |
|
} |
629 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
630 |
0 |
@Override... |
631 |
|
public String getDbVersion() |
632 |
|
{ |
633 |
0 |
return getEnsemblDataVersion(); |
634 |
|
} |
635 |
|
|
636 |
|
} |