Abstract
The Omics Discovery Index is an open source platform that can be used to access, discover and disseminate omics datasets. OmicsDI integrates proteomics, genomics, metabolomics, models and transcriptomics datasets. Using an efficient indexing system, OmicsDI integrates different biological entities including genes, transcripts, proteins, metabolites and the corresponding publications from PubMed. In addition, it implements a group of pipelines to estimate the impact of each dataset by tracing the number of citations, reanalysis and biological entities reported by each dataset. Here, we present the OmicsDI REST interface (www.omicsdi.org/ws/) to enable programmatic access to any dataset in OmicsDI or all the datasets for a specific provider (database). Clients can perform queries on the API using different metadata information such as sample details (species, tissues, etc), instrumentation (mass spectrometer, sequencer), keywords and other provided annotations. In addition, we present two different libraries in R and Python to facilitate the development of tools that can programmatically interact with the OmicsDI REST interface.
INTRODUCTION
In recent years, major advances in the field of omics analyses have led to an exponential increase in available experimental data (1). Omics platforms offer high-throughput, detailed exploration of the genome, transcriptome, proteome and metabolome, analysed using a variety of techniques including mRNA and miRNA arrays, next-generation sequencing and mass spectrometry (2,3). The development of new analytical methods and instruments has enabled the analysis of one biological sample to generate many kinds of ‘big’ omics data in parallel, such as genome sequence (genomics), patterns of gene and protein expression (transcriptomics and proteomics), and metabolite concentrations (metabolomics) (4). In addition, public data deposition is growing in all omics disciplines, because it is considered to be a good scientific practice (e.g. to enable reproducibility) and/or it is mandated by funding agencies and scientific journals (5). These new developments haves triggered new challenges and opportunities to make data Findable, Accessible, Interoperable and Re-usable (FAIR) (6).
In 2016, we released the first version of the Omics Discovery Index (OmicsDI—www.omicsdi.org) as a light-weight system to aggregate datasets across multiple public omics data resources (1,5). OmicsDI collects datasets from multiple repositories and databases representing genomics, transcriptomics, proteomics, metabolomics and multiomics datasets, as well as computational models of biological processes. Datasets can be searched and filtered based on different types of technical and biological annotations (e.g. species, tissues, diseases, etc.), year of publication and the original data repository where they are stored, among others. As of January 2020, OmicsDI stores just over 453K datasets from 20 different public data resources (www.omicsdi.org/database). The OmicsDI web interface provides different views and search capabilities on the indexed datasets. In addition, every dataset is encoded in the web interface using schema.org (schema.org/) representation for datasets enabling resources such as Google datasets (datasetsearch.research.google.com/) to index omics data.
The FAIR principles are aimed at computational interfaces as well as web interfaces for human use. In this manuscript we describe the main features of the Omics Discovery Index interface (API), which enables programmatic access to OmicsDI datasets (www.omicsdi.org/ws). The API allows programmatic access to all OmicsDI datasets and the corresponding information including metadata, data files and molecules reported by the datasets. In addition, it allows to perform search and filters on the datasets by different properties such as tissue, cell type, or organisms. This API is used by different external resources, such as DataMed (datamed.org/) (7) or MENDA (menda.cqmu.edu.cn:8080/index.php) (8). Finally, we introduce two new client libraries in R (ddiR - github.com/OmicsDI/ddiR) and Python (ddipy - github.com/OmicsDI/ddipy) to enable bioinformaticians and developers to develop new tools and packages that interact with OmicsDI.
DESIGN AND IMPLEMENTATION
The OmicsDI API is implemented in Java (github.com/OmicsDI/ddi-web-service), building on top of the Spring framework (projects.spring.io/spring-framework/). Data queries are powered by optimized Apache Solr servers (lucene.apache.org/solr/). Data can be accessed over HTTP (HyperText Transfer Protocol) via REST-like ‘Get’ requests, which ensures that the services are easy to use and are supported by all major platforms. JSON (JavaScript Object Notation) and XML (Extensible Markup Language) were chosen as the output format of a common metadata representation for all omics types (e.g. proteomics, genomics or transcriptomics) (1).
All OmicsDI API (www.omicsdi.org/ws) methods can be classified into five major categories (Table 1); including datasets, database, and statistics. Table 1 summarises the most relevant and widely used methods from the API organized by categories.
Table 1.
Category | Method | Description | Type of method |
---|---|---|---|
Dataset | /dataset/search | Search for datasets in OmicsDI | GET |
/dataset/{database}/{accession} | Retrieve a specific dataset from OmicsDI | GET | |
/dataset/batch | Retrieve a batch of datasets | GET | |
/dataset/getFileLinks | Retrieve all file links for a given dataset | GET | |
/dataset/{database}/{accession}/files | Retrieve the list of dataset's files | GET | |
/dataset/latest | Retrieve the latest datasets added to OmicsDI | GET | |
/dataset/getSimilarByPubmed | Retrieve similar datasets based on PubMed identifier | GET | |
/dataset/getSimilar | Retrieve the related datasets to one Dataset | GET | |
Database | /database/all | Retrieve OmicsDI databases/repositories | GET |
Ontology Terms | /term/getTermByPattern | Search dictionary Terms | GET |
/term/frequentlyTerm/list | Retrieve frequently terms | GET | |
Statistics | /statistics/organisms | Return statistics per organisms | GET |
/statistics/tissues | Return statistics per tissues | GET | |
/statistics/omics | Return statistics per Omics type | GET | |
/statistics/diseases | Return statistics per diseases | GET | |
/statistics/domains | Return statistics per Repository | GET | |
SEO (Schema.org) | /seo/home | Retrieve JSON+LD for home page | GET |
/seo/search | Retrieve JSON+LD for browse page | GET | |
/seo/api | Retrieve JSON+LD for api page | GET | |
/seo/schema/{database}/{accession} | Retrieve JSON+LD Schema for dataset page | GET | |
/seo/database | Retrieve JSON+LD for databases page | GET | |
/seo/dataset/{database}/{accession} | Retrieve JSON+LD for dataset page | GET |
The datasets category includes all the methods to enable search and retrieval of the datasets from OmicsDI. For example, the most extensively use method in the API (/dataset/search) allows users to search datasets by different attributes including tissues, organism or instrument. The search entry point (/dataset/search) uses different parameters to sort, query, facet count, and paginate through the results.
The query value is used to query all datasets that contain the specific keyword. For example, www.omicsdi.org/ws/dataset/search?query=human will retrieve all the datasets that contain the word ‘human’ in any part of the metadata. Multiple search terms separated by white spaces are combined by default in AND logic. Therefore, an input text containing for example glutathione transferase is treated as glutathione AND transferase and only entries having both terms will be found (see query language syntax—www.ebi.ac.uk/ebisearch/documentation.ebi#query_syntax). It is important to notice that the default order of results is based on their relevance. Then, the API will return first all the datasets that contains both words and then the datasets that contains at least one of them.
If the query keyword is to be applied to one specified field, the keyword should be combined with the field. For example, if the user wants to query all the datasets where the protein has been identified, the uniport accession should be combined with the field UNIPROT like: www.omicsdi.org/ws/dataset/search?query=UNIPROT:P21399.
The method /dataset/getSimilar retrieve all the datasets that are similar to a specific dataset by metadata (see original manuscript of OmicsDI for the similarity algorithm explanation (1)). Another important method /dataset/getMergeCandidates enables to retrieve candidate datasets that can be considered as replicates (5).
The seo category enables to retrieve all the information from datasets and databases using schema.org representation. These methods are designed for future resources and services that use schema.org and BioSchemas (bioschemas.org/) for crawling and indexing. While currently Google Datasets (datasetsearch.research.google.com/) is already crawling all OmicsDI datasets using the web application, future services may use the OmicsDI Rest interface for large scale indexing rather than web crawling.
All the API methods returning lists of objects can be navigated using pagination with two parameters: start – number of the page, and size – number of objects to retrieve in the page.
DATA FILES GEOLOCATION
OmicsDI Rest API /dataset/{database}/{accession} method allows to get the information for one particular dataset including the metadata and public URI (Uniform Resource Identifier) of the data files. An important feature of this method is to be able to provide the URI of the files that are closer to the user query (Figure 1). OmicsDI stores for each dataset a primary source of the resource and all the replicates of it to avoid duplications when the dataset is replicated in multiple providers, for example, GEO and ArrayExpress, or PRIDE and MassIVE (5).
When two versions of the same dataset are available in two different databases, the API highlights the files that are closer to the client request as primary. The method /dataset/{database}/{accession} uses the attribute from the header request ‘X-Forwarded-For: IP’, to compute how close the request is to some of the providers. This method enables the user to download the data files closer to them. For example, if the request is performed from the United States, the replicate from MassIVE will be marked as primary and the PRIDE files as mirror, if the request is performed from Germany the PRIDE datasets will be marked as primary and MassIVE as mirror (Figure 1).
EXAMPLE USE CASES
A user of the web services might be interested in retrieving multiomics projects that contain proteomics and transcriptomics data. Since the omics_type stores the omics type of the dataset, the user can perform the following query: www.omicsdi.org/ws/dataset/search?query=omics_type:%22Transcriptomics%22%20AND%20omics_type:%22Proteomics%22. By combining two different values for the same field omics_type the user can query all the datasets that contains both values transcriptomics and proteomics. The user can use all the fields defined by the OmicsDI dataset schema (dataset schema - github.com/OmicsDI/specifications/blob/master/docs/ schema/fields.md) to refine their filters.
Examining the details of one specified dataset from the results query can be done by calling the dataset method, for example www.omicsdi.org/ws/dataset/arrayexpress-repository/E-GEOD-53085. To then retrieve some specific files from the dataset, the user could use the method www.omicsdi.org/ws/dataset/arrayexpress-repository/E-GEOD-53085/files?position=1,2,3,4,5,6. This method (dataset/{database}/{accession}/files) uses the parameter position to enable filtering the files related with the project by file index.
Another interesting use case is finding all the datasets where a specific molecule, such as a protein, gene or metabolite, has been reported as identification or differentially expressed in a dataset. For example, a user can be interested in all the proteomics projects where the UniProt proteins ‘Q99714’ and ‘P06744’ have been identified: www.omicsdi.org/ws/dataset/search?query=UNIPROT:P06744%20AND%20UNIPROT:Q99714%20AND%20omics_type:Proteomics.
The same type of queries can be performed for other omics types. For example, if the user is interested in all the transcriptomics experiments where gene ENSG00000147251 significantly changes expression, the following query can be used: www.omicsdi.org/ws/dataset/search?query=ENSEMBL:ENSG00000147251.
As discussed above, one of the interesting features of OmicsDI is the possibility to retrieve the information about replicates of the same dataset (5). For example, the dataset www.omicsdi.org/dataset/pride/PXD003213 is stored in two different places: PRIDE (9) and MassIVE (10). The OmicsDI REST interface merges all the replicates of a dataset in the same dataset entry but allows the users to download the files from the replicate that is closer by region to the client request. Figure 2 shows two different json responses depending on the location of the request. When the query is performed from an IP in United States the primary files are the ones from MassIVE (Figure 2A); in contrast; when the query is performed from an IP in United Kingdom the primary files are the ones from PRIDE (Figure 2B).
THE OMICSDI REST CLIENTS
In order to facilitate the development of new tools and services that use the OmicsDI Rest interface, we have implemented two libraries in R (ddiR - github.com/OmicsDI/ddiR) and Python (ddipy - github.com/OmicsDI/ddipy). Both libraries provide methods and data structures to interact with the Rest API; including methods to search, navigate and retrieve datasets and files. For example, if the developer would like to retrieve a specific dataset information from the API:
In Python:
from ddipy.dataset_client import DatasetClient
client = DatasetClient()
dataset = client.get_dataset_details(‘pride’,‘PXD000210’)
In R:
library(ddiR)
dataset = get.DatasetDetail(accession = ‘PXD000210’,database = ‘pride’)
The R package is implemented using S4 object orientation, and the methods are documented using roxygen comments. The R package can be installed using devtools like install_github("OmicsDI/ddiR’). The Python package has been added to pip and can be installed using pip install ddipy.
DISCUSSION
The OmicsDI REST interface has been developed to enable programmatic access to the OmicsDI database and all the datasets provided by OmicsDI partners and repositories. With the increase of the number of these resources and the creation of new national infrastructures for personal genomics data storage and dissemination, a central system like OmicsDI that indexes the metadata can help users to find and retrieve distributed datasets (11–13). Currently, OmicsDI is working on implementing the GA4GH (Global Alliance for Genomics and Health) repository service specification (github.com/ga4gh/data-repository-service-schemas) to enable genomics workflows and cloud infrastructures to retrieve the datasets closest to the compute platform using the current geolocation data file feature.
The API has been available since April 2017 and a few internal and external applications are already making use of the new functionality: DataMed (datamed.org/) (7) and MENDA (menda.cqmu.edu.cn:8080/index.php) (8). Since the first release, the OmicsDI datasets have been visited in the OmicsDI web site 1M, 253K, 435K, 860K, 1M, 14M times for genomics, metabolomics, models, multiomics, proteomics and transcriptomics, respectively. With the new R and Python libraries, we facilitate the development of new tools and packages that can use the OmicsDI REST interface to search and retrieve datasets from OmicsDI. The OmicsDI REST Interface will continue to develop in parallel with the OmicsDI web page. Should users wish to discuss requests for new functionality, the authors encourage them to contact the OmicsDI helpdesk (omicsdi-support@ebi.ac.uk) with their suggestions.
Contributor Information
Gaurhari Dass, European Molecular Biology Laboratory, European Bioinformatics Institute (EMBL-EBI), Cambridge CB10 1SD, UK.
Manh-Tu Vu, European Molecular Biology Laboratory, European Bioinformatics Institute (EMBL-EBI), Cambridge CB10 1SD, UK.
Pan Xu, State Key Laboratory of Proteomics, Beijing Proteome Research Center, Beijing Institute of Lifeomics, National Center for Protein Sciences Beijing, 102206 Beijing, China.
Enrique Audain, Department of Human Genetics, University Medical Center Schleswig-Holstein (UKSH), Kiel, Germany.
Marc-Phillip Hitz, Department of Human Genetics, University Medical Center Schleswig-Holstein (UKSH), Kiel, Germany.
Björn A Grüning, Bioinformatics Group, Department of Computer Science, University of Freiburg, Georges-Köhler-Allee 106, 79110 Freiburg, Germany.
Henning Hermjakob, European Molecular Biology Laboratory, European Bioinformatics Institute (EMBL-EBI), Cambridge CB10 1SD, UK; State Key Laboratory of Proteomics, Beijing Proteome Research Center, Beijing Institute of Lifeomics, National Center for Protein Sciences Beijing, 102206 Beijing, China.
Yasset Perez-Riverol, European Molecular Biology Laboratory, European Bioinformatics Institute (EMBL-EBI), Cambridge CB10 1SD, UK.
FUNDING
G.D. was supported by EMBL core funding; P.X. was supported by National Key R&D Program of China [2017YFC0908404, 2017YFC0908405] and BBSRC International Partnering Award [BB/N022432/1]; Y.P.-R. acknowledges the Wellcome Trust [208391/Z/17/Z]; EPIC-XS project [823839], funded by the Horizon 2020 programme of the European Union. Funding for open access charge: BBSRC [BB/N022432/1].
Conflict of interest statement. None declared.
REFERENCES
- 1. Perez-Riverol Y., Bai M., da Veiga Leprevost F., Squizzato S., Park Y.M., Haug K., Carroll A.J., Spalding D., Paschall J., Wang M. et al.. Discovering and linking public omics data sets using the Omics Discovery Index. Nat. Biotechnol. 2017; 35:406–409. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2. Perez-Riverol Y., Kuhn M., Vizcaino J.A., Hitz M.P., Audain E.. Accurate and fast feature selection workflow for high-dimensional omics data. PLoS One. 2017; 12:e0189875. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3. Manzoni C., Kia D.A., Vandrovcova J., Hardy J., Wood N.W., Lewis P.A., Ferrari R.. Genome, transcriptome and proteome: the rise of omics data and their integration in biomedical sciences. Brief. Bioinform. 2018; 19:286–302. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4. Field D., Sansone S.A., Collis A., Booth T., Dukes P., Gregurick S.K., Kennedy K., Kolar P., Kolker E., Maxon M. et al.. Megascience. 'Omics data sharing. Science. 2009; 326:234–236. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5. Perez-Riverol Y., Zorin A., Dass G., Vu M.T., Xu P., Glont M., Vizcaino J.A., Jarnuczak A.F., Petryszak R., Ping P. et al.. Quantifying the impact of public omics data. Nat. Commun. 2019; 10:3512. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6. Wilkinson M.D., Dumontier M., Aalbersberg I.J., Appleton G., Axton M., Baak A., Blomberg N., Boiten J.W., da Silva Santos L.B., Bourne P.E. et al.. The FAIR Guiding Principles for scientific data management and stewardship. Sci Data. 2016; 3:160018. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7. Ohno-Machado L., Sansone S.A., Alter G., Fore I., Grethe J., Xu H., Gonzalez-Beltran A., Rocca-Serra P., Gururaj A.E., Bell E. et al.. Finding useful data across multiple biomedical data repositories using DataMed. Nat. Genet. 2017; 49:816–819. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8. Pu J., Yu Y., Liu Y., Tian L., Gui S., Zhong X., Fan C., Xu S., Song X., Liu L. et al.. MENDA: a comprehensive curated resource of metabolic characterization in depression. Brief. Bioinform. 2019; 3:bbz055. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9. Perez-Riverol Y., Csordas A., Bai J., Bernal-Llinares M., Hewapathirana S., Kundu D.J., Inuganti A., Griss J., Mayer G., Eisenacher M. et al.. The PRIDE database and related tools and resources in 2019: improving support for quantification data. Nucleic Acids Res. 2019; 47:D442–D450. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10. Wang M., Carver J.J., Phelan V.V., Sanchez L.M., Garg N., Peng Y., Nguyen D.D., Watrous J., Kapono C.A., Luzzatto-Knaan T. et al.. Sharing and community curation of mass spectrometry data with Global Natural Products Social Molecular Networking. Nat. Biotechnol. 2016; 34:828–837. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Siu L.L., Lawler M., Haussler D., Knoppers B.M., Lewin J., Vis D.J., Liao R.G., Andre F., Banks I., Barrett J.C. et al.. Facilitating a culture of responsible and effective sharing of cancer genome data. Nat. Med. 2016; 22:464–471. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Chalmers D.R., Nicol D., Otlowski M.F.. To share or not to share is the question. Appl Transl Genom. 2014; 3:116–119. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13. Fiume M., Cupak M., Keenan S., Rambla J., de la Torre S., Dyke S.O.M., Brookes A.J., Carey K., Lloyd D., Goodhand P. et al.. Federated discovery and sharing of genomic data using Beacons. Nat. Biotechnol. 2019; 37:220–224. [DOI] [PMC free article] [PubMed] [Google Scholar]