An open API service indexing awesome lists of open source software.

https://github.com/omicsdi/ebi-logs-reader

This library enables to trace the downloads of EBI resources
https://github.com/omicsdi/ebi-logs-reader

Last synced: 8 months ago
JSON representation

This library enables to trace the downloads of EBI resources

Awesome Lists containing this project

README

          

This library provides easy computation of all the downloads per file for each EBI resource.

How to use it:
--------------

The name of the databases can be found here:

| Database Name | Database URL |
|------------------|:----------------------------:|
| Pride | www.ebi.ac.uk/pride |
| ExpressionAtlas | www.ebi.ac.uk/gxa |
| ArrayExpress | www.ebi.ac.uk/arrayexpress |
| EVA | www.ebi.ac.uk/eva |
| Metabolights | www.ebi.ac.uk/metabolights |
| ENA | www.ebi.ac.uk/ena |

Code:

```java

ElasticSearchWsClient elasticSearchClient = new ElasticSearchWsClient(new ElasticSearchWsConfigProd(port,machine,user, port));
elasticSearchClient.initialiseData(fromDate, toDate);

// ACCESSION_TO_PERIOD_TO_ANONYMISED_IP_ADDRESS_TO_FILE_NAME
Map>>> dbDownloadInfo
= elasticSearchClient.getDownloadsData(ElasticSearchWsConfigProd.DB.Pride);

```

Be aware that this needs more than 12G memory.