Enhanced reproducibility of SADI web service workflows with Galaxy and Docker
© Aranguren and Wilkinson. 2015
Received: 6 February 2015
Accepted: 27 October 2015
Published: 3 December 2015
Semantic Web technologies have been widely applied in the life sciences, for example by data providers such as OpenLifeData and through web services frameworks such as SADI. The recently reported OpenLifeData2SADI project offers access to the vast OpenLifeData data store through SADI services.
This article describes how to merge data retrieved from OpenLifeData2SADI with other SADI services using the Galaxy bioinformatics analysis platform, thus making this semantic data more amenable to complex analyses. This is demonstrated using a working example, which is made distributable and reproducible through a Docker image that includes SADI tools, along with the data and workflows that constitute the demonstration.
The combination of Galaxy and Docker offers a solution for faithfully reproducing and sharing complex data retrieval and analysis workflows based on the SADI Semantic web service design patterns.
KeywordsSemantic Web RDF SADI Web service Workflow Galaxy Docker Reproducibility
Resource Description Framework (RDF). RDF is a machine-readable data representation language based on the ‘triple’, that is, data is codified in a subject–predicate–object structure (e.g. ‘Cyclin participates in Cell cycle’, Fig. 1), in which the predicate and object (‘participates in’ and ‘Cell cycle’, respectively) describe a property of the subject (‘Cyclin’) . In RDF, it is common for entities to be the object of one triple and the subject of another triple. Thus triples can be connected to one another. A collection of connected triples is called a graph, and graphs are commonly stored in triple stores to facilitate their query and exploration, where the triples tore is akin to a database.
SPARQL Protocol and RDF Query Language (SPARQL). SPARQL is a query language to extract data from RDF graphs .
Web Ontology Language (OWL). OWL is a knowledge representation language for making assertions about the interpretation of data using axioms that facilitate the application of automated reasoning (e.g. ‘A protein participates in at least one biological process’) . Therefore, OWL is used to create ontologies that codify the consensus of a community about their knowledge domain. In an OWL ontology, there are several different types of entities: individuals are the actual instances of data (e.g. ‘Cyclin’, ‘Mark’, or ‘Madrid’); properties link individuals to one another (e.g. ‘Mark lives in Madrid’); and classes are combinations of logical axioms and properties that make the distinction between one kind of individual and another (e.g. ‘Protein’ or ‘Human’). Finally, individuals are assigned to a class based on the logical match between their properties, and on the class definition: for example, ‘Mark’ is a ‘Human’, because it lives in a city, and ‘Cyclin’ is a ‘Protein’, because it participates in at least one biological process.
The backbone of the Semantic Web is the fact that Uniform Resource Identifiers (URIs)  are used to identify all entities (OWL classes, instances, and properties, and RDF subjects, predicates, and objects). This allows one to refer to entities located in external resources on the web: for example, in an RDF triple, the subject might be indicated by a URI from one resource and the predicate and object by a URI from a different resource.
Identify every data item (entity or relationship) with a URI.
Make those URIs Hypertext Transfer Protocol (HTTP) resolvable, that is, when the URI is requested a document containing information about the entity can be obtained.
Provide the information using an open formatting standard when an entity is requested by HTTP. The format provided should be determined by HTTP content negotiation between the client and the server (e.g. RDF for an automatic agent, or Hypertext Markup Language (HTML) for a human user), so that the entity and its representations are decoupled. Importantly, the RDF format should always be available.
Ensure, to the greatest extent possible, that the information provided by URI resolution contains typed relations to other entities, so that the agent can traverse those relations to discover new information, analogously to how humans browse the web.
Linked Data has demonstrated clear value as a means of data publication in a machine-readable and web-resolvable fashion, opening up new possibilities for data discovery and integration . As a result, significant life sciences data providers have implemented Linked Data solutions for their resources, including UniProt , EBI RDF , and OpenLifeData , each of which contributes to the growth of the Linked Open Data cloud .
In addition to data representation, Semantic Web standards have also been applied to analytical tools, for example through the creation of Semantic Web services. The Semantic Automated Discovery and Integration (SADI) design pattern  is unique among the Semantic Web service initiatives in that SADI presumes that all data is (or eventually will be) Linked Data, and therefore SADI services process Linked Data natively. SADI makes it possible to retrieve data in exactly the same way, from every service, without the overhead that other web service technologies demand: with SADI services, RDF data is passed to a service, verbatim and without any message scaffolding, by HTTP POST; the response is the same data ‘decorated’ with new RDF triples, making integration and consumption of the data (even with other tools) straightforward. Recently, the OpenLifeData2SADI project has implemented the SADI principles to expose the more than 6 billion linked data points in the OpenLifeData warehouse, providing automatically discoverable access to each data point via one of several thousand SADI services .
This article shows how to combine OpenLifeData2SADI data retrieval services with SADI analytical services, using off-the-shelf tools from the popular Galaxy bioinformatics platform , provided as a Docker image. Additionally, a worked example is provided as a ready-to-use exemplar of data and an appropriate workflow, making the procedure trivially reproducible computationally (with Docker) and functionally (with Galaxy). This approach provides multiple advantages, not the least of which is that this easy reproducibility allows the potential for third parties to explore a wide variety of modifications.
SADI is a set of design patterns based on Semantic Web standards for providing web services. It does not define any new technology or schema, nor even a message-passing infrastructure. Instead, it uses off-the-shelf, well-established technologies and formats (URI, RDF, and OWL) to provide all of its discoverability and interoperability features. In a SADI service, the data the service consumes is defined by an OWL class: the client uses automated reasoning to infer whether the RDF it possesses is a member of that OWL class, and if so, the client may simply HTTP POST the RDF to the service. Once the service has processed the input, it creates an output Linked Data graph by connecting the input RDF subject node to additional triples generated by the analytical algorithm of the service. Effectively, SADI services produce new chains of Linked Data .
The Bio2RDF project captures existing data from numerous life sciences providers and republishes it with normalized URIs and Linked Data support . In turn, the OpenLifeData project reformats Bio2RDF data and enhances its content negotiation functionality. On top of this, OpenLifeData2SADI offers access to OpenLifeData through a set of automatically generated SADI services . This semantically rich OpenLifeData can be discovered and retrieved in a consistent and predictable manner, by a machine, simply by calling the appropriate SADI service. Importantly, the retrieved RDF can then be easily integrated with other Linked Data from any source.
Docker  is a virtualization engine and runtime system. The key difference from a virtual machine is that a Docker image shares resources with the host operating system (OS), making images lighter (in the case where the host is a GNU/Linux system). Containers can be run, with the Docker engine, from predefined images. Docker Hub , a repository of images, is also available, so a developer can build an image with the desired computational environment (OS, libraries, configuration), software, and data, starting from a pre-existing image (e.g. Ubuntu 14.04), which is then deployed back to the repository. Then anyone can retrieve this customized image and run it as a container, including the new software, without configuration or installation.
Merging OpenLifeData2SADI and SADI services in a single workflow
The workflow answers the following question: Given a set of UniProt proteins, which ones are related to PubMed abstracts containing the term ‘brain’, and what are their Kyoto Encyclopedia of Genes and Genomes (KEGG)  entries? The workflow starts from a simple list of UniProt identifiers, and retrieves different datasets from a regular SADI service (to obtain KEGG entries) and a chain of three OpenLifeData2SADI services (to obtain PubMed abstracts). The results are then merged and queried to obtain the KEGG entries of proteins that are related to PubMed abstracts that contain the term. The workflow involves five steps, explained as follows.
1. Obtain a list of UniProt identifiers of interest.
This can be done, for example, by simply uploading the list from a local computer or importing it directly to Galaxy from Biomart :
2. Convert the input to RDF.
For data to be consumed by the SADI services, it needs to be converted to RDF. Additionally, an rdf:type triple must be added to each identifier that asserts the OWL input class of each SADI service, producing two different inputs from the same list of UniProt identifiers. The triple<Uniprot identifier> rdf:type http://purl.oclc.org/SADI/LSRN/UniProt_ Record is added for the service to retrieve KEGG entries (getKEGGIDFromUniProt), resulting in the following RDF:
The triple<Uniprot identifier> rdf:type http://openlifedata.org/uniprot_vocabulary: Resourceis added for OpenLifeData2SADI services, resulting in the following RDF:
3. Send the appropriate input to services.
Each of the RDF inputs is sent to the appropriate OpenLifeData2SADI service (three services in a row) and to getKEGGIDFromUniProt.
4. Merge the outputs and the inputs into a single RDF graph.
Because SADI services track their data inputs by way of the incoming subject URIs (new predicates and objects are added to the input URIs, while maintaining the URIs for the output), the outputs of the services are immediately merged with the inputs into a single graph, with no additional action required.
5. Query the merged graph with SPARQL.
Reproducing the workflow through Galaxy and Docker
The Docker image contains the developed tools, dependencies, and running environment . The image is based on the base image Ubuntu:14.04, and it installs, through apt-get, all the necessary libraries. The image also copies, from the path in which it is built, the SADI client and related tools. All the Docker commands that build the image can be found in the following Docker file:
The image can be built by pasting the above instructions in a Docker file and runing docker build, but more importantly, the image can be obtained from the Docker central registry by docker pull (assuming a GNU/Linux system with the Docker engine installed):
$ docker pull mikeleganaaranguren/sadi:v6
SADI client: a SADI client for synchronous SADI services (adapted from ).
RDFSyntaxConverter: a tool to convert between different RDF syntaxes, including from RDF to TSV files (adapted from ).
MergeRDFgraphs: a tool to merge different RDF graphs into one (adapted from ).
SPARQLGalaxy: a tool to perform SPARQL queries against RDF files (adapted from ).
Rapper: a tool to convert RDF files to different syntaxes.
Tab2rdf: a tool to produce RDF files from TSV files.
Install the Docker image in the local Docker repository, by pulling it.
Install the SADI-Docker Galaxy tools (from the Toolshed or manually).
Upload the test dataset provided in the SADI-Docker GitHub repository, with the UniProt IDs, to Galaxy.
Import the workflow (from the Toolshed or manually) and run it, providing the test dataset as the input for the first step of the workflow.
Data integration and manipulation through RDF and SADI
Accessing Linked Data is typically accomplished by retrieving the content of a URL or by composing SPARQL CONSTRUCT queries over a static triples tore. SADI therefore adds considerable power to the current Semantic Web infrastructure by adding analytics and dynamic content to this milieu. Because SADI has no API (beyond standard HTTP GET and POST), it is easily integrated into other Linked Data tools and environments. Moreover, accessing and chaining SADI services simply involves passing RDF data from one tool to the next. The output from these chains of services is an unbroken chain of RDF that can be queried using SPARQL, as with any other Linked Data.
The RDF data model used by SADI is easily constructed from other, often non-standardized, formats such as TSV by a simple mapping process. Similarly, the output from SADI services can be transformed into non-RDF formats using custom mapping tools or, for example, standard XML stylesheet transforms. Therefore creating Galaxy tools that work with SADI data and services is relatively straightforward, and many tools are available ‘off the shelf’.
Finally, because SADI services work natively with RDF data, many (indeed most) of the URIs contained in the output of the services are also URLs, i.e. they not only identify but also locate entities on the web. As a consequence, much of the final dataset is ‘clickable’, sending the user directly into the source dataset’s website (e.g. OpenLifeData or KEGG URLs; see Fig. 5) – a user-friendly way of enabling further exploration of results.
Reproducibility with Galaxy and Docker
Virtualization of the computational environment (OS) through Docker. Docker allows encapsulation of a complex environment with all the necessary data and software . In this case, an Ubuntu 14.04 image is shipped, with SADI and its dependencies installed, which means that the user need only log into the Galaxy instance that executes Docker images.
Reproducibility of previously performed analyses through Galaxy. Galaxy is a suitable environment for executing SADI services in a reproducible manner, because it provides an infrastructure in which the workflow management, history, and provenance, and data storage are pre-established . This means that any SADI-based analysis, if performed in a Galaxy instance, is easily reproducible. For example, the same workflow can be repeated every time OpenLifeData is updated and the workflow can be modified and/or fused with other workflows.
Using a SADI-Docker image invoked by Galaxy, data manipulation and analysis processes can be described, executed, published, shared, and reused with complete transparency, and with little or no configuration required. Because of the API-free, straightforward invocation mechanism for SADI services, workflows can easily be modified to accommodate new data or different contexts. This then provides a tool for the distribution of case implementations in multiplatform environments. The use of the Galaxy interface additionally provides a single foundation for integration of services, the construction of RDF graphs, and their subsequent querying. The worked example presented here provides a tangible illustration of the use of Semantic Web constructs and standards for the extraction of new information from disparate, independent services, in a completely reproducible manner.
Availability and requirements
Project name: SADI-Docker-Galaxy.
Project home page: http://github.com/mikel-egana-aranguren/SADI-Docker-Galaxy.
Operating system: any OS, as long as Docker is installed.
Programming languages: Go, Java, and Python.
Other requirements: Docker, Galaxy.
License: General Public License (GPL).
Availability of supporting data
hypertext markup language
hypertext transfer protocol
kyoto encyclopedia of genes and genomes
web ontology language
resource description framework
semantic automated discovery and integration
SPARQL protocol and RDF query language
tab separated values
uniform resource identifier
eXtensible markup language
MEA is funded by the Genomic Resources Group (UPV/EHU). MDW is supported by the Fundación BBVA, and the Isaac Peral and Marie Curie COFUND Programmes of the Universidad Politécnica de Madrid, Centre for Plant Biotechnology and Genomics UPM-INIA. Jorge Langa, from the Genomic Resources Group (UPV/EHU), provided technical help with the Docker installation and with management of images and containers. John M. Chilton, from the Minnesota Supercomputing Institute at the University of Minnesota, provided help with the setting up of Galaxy server to run the SADI-Docker image.
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver(http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.
- W, 3C. Semantic Web. http://www.w3.org/standards/semanticweb/. Online; Accessed 5-February-2015.
- Good BM, Wilkinson MD. The Life Sciences Semantic Web is Full of Creeps!. Brief Bioinform. 2006; 7(3):275–86.View ArticlePubMedGoogle Scholar
- W, 3C. RDF current status. http://www.w3.org/standards/techs/rdf. Online; Accessed 5-February-2015.
- W, 3C. SPARQL current status. http://www.w3.org/standards/techs/sparql. Online; Accessed 5-February-2015.
- W, 3C. OWL Web Ontology Language current status. http://www.w3.org/standards/techs/owl. Online; Accessed 5-February-2015.
- Internet Engineering Task Force (IETF). Uniform Resource Identifier (URI): Generic Syntax. http://tools.ietf.org/html/rfc3986. Online; Accessed 5-February-2015.
- Tim Berners-Lee. Linked Data. http://www.w3.org/DesignIssues/LinkedData.html. Online; Accessed 5-February-2015.
- González AR, Callahan A, Toledo JC, García A, Aranguren ME, Dumontier M, et al.Automatically exposing OpenLifeData via SADI semantic Web Services. J Biomed Semant. 2014; 5(1):46.View ArticleGoogle Scholar
- Aranguren ME, Breis JTF, Dumontier M. Special issue on Linked Data for Health Care and the Life Sciences. Semant Web J. 2014; 5(2):99–100.Google Scholar
- Jain E, Bairoch A, Duvaud S, Phan I, Redaschi N, Suzek B, et al.Infrastructure for the life sciences: design and implementation of the UniProt website. BMC Bioinformatics. 2009; 10(1):136.View ArticlePubMedPubMed CentralGoogle Scholar
- Jupp S, Malone J, Bolleman J, Brandizi M, Davies M, Garcia L, et al.The EBI RDF platform: linked open data for the life sciences. Bioinformatics. 2014; 30(9):1338–1339.View ArticlePubMedPubMed CentralGoogle Scholar
- Open Life Data. Open Life Data. http://openlifedata.org/. Online; Accessed 5-February-2015.
- Cyganiak R, Jentzsch A. The Linking Open Data cloud diagram. http://lod-cloud.net/. Online; Accessed 5-February-2015.
- Wilkinson M, Vandervalk B, McCarthy L. The Semantic Automated Discovery and Integration (SADI) web service Design-Pattern, API and Reference Implementation. J Biomed Semant. 2011; 2(1):8.View ArticleGoogle Scholar
- Goecks J, Nekrutenko A, Taylor J, Galaxy Team. Galaxy: a comprehensive approach for supporting accessible, reproducible, and transparent computational research in the life sciences. Genome Biol. 2010; 11(8):86.View ArticleGoogle Scholar
- Belleau F, Nolin MA, Tourigny N, Rigault P, Morissette J. Bio2RDF: Towards a mashup to build bioinformatics knowledge systems. J Biomed Informatics. 2008; 41(5):706–16.View ArticleGoogle Scholar
- Docker Inc. Docker - An open platform for distributed applications for developers and sysadmins. http://www.docker.com/. Online; Accessed 5-February-2015.
- Docker Inc.Docker Hub. http://hub.docker.com/. Online; Accessed 5-February-2015.
- Aranguren ME, González AR, Wilkinson MD. Executing SADI services in Galaxy. J Biomed Semant. 2014; 5(1):42.View ArticleGoogle Scholar
- Kanehisa M, Goto S. KEGG: Kyoto Encyclopedia of Genes and Genomes. Nucleic Acids Res. 2000; 28(1):27–30.View ArticlePubMedPubMed CentralGoogle Scholar
- Smedley D, Haider S, Ballester B, Holland R, London D, Thorisson G, et al.BioMart - biological queries made easy. BMC Genomics. 2009; 10(1):22.View ArticlePubMedPubMed CentralGoogle Scholar
- Aranguren ME. SADI Docker image. http://hub.docker.com/r/mikeleganaaranguren/sadi/. Online; Accessed 5-February-2015.
- Aranguren ME. SADI-Docker Galaxy tools. https://toolshed.g2.bx.psu.edu/view/mikel-egana-aranguren/sadi_docker/54c48f9ca32b. Online; Accessed 5-February-2015.
- Aranguren ME. SADI-Docker use case workflow. http://toolshed.g2.bx.psu.edu/view/mikel-egana-aranguren/sadi_docker_workflow/22be3a551998. Online; Accessed 5-February-2015.
- Aranguren ME. SADI-Docker for Galaxy. http://github.com/mikel-egana-aranguren/SADI-Docker-Galaxy. Online; Accessed 5-February-2015.
- Garijo D, Kinnings S, Xie L, Xie L, Zhang Y, Bourne PE, et al.Quantifying reproducibility in computational biology: The case of the tuberculosis drugome. PLoS One. 2013; 8(11):80278.View ArticleGoogle Scholar
- Sandve GK, Nekrutenko A, Taylor J, Hovig E. Ten simple rules for reproducible computational research. PLoS Comput Biol. 2013; 9(10):1003285.View ArticleGoogle Scholar
- Boettiger C. An introduction to Docker for reproducible research, with examples from the R environment. ACM SIGOPS Operating Systems Review - Special Issue on Repeatability and Sharing of Experimental Artifacts. 2015; 49(1):71–79.View ArticleGoogle Scholar
- Giga Science journal. Galaxy Series: Data Intensive and Reproducible Research. http://www.gigasciencejournal.com/series/Galaxy. Online; Accessed 5-February-2015.
- Aranguren ME. UniProt IDs for SADI-Docker use case workflow. http://github.com/mikel-egana-aranguren/SADI-Docker-Galaxy/blob/master/workflow/UniProt_IDs.txt. Online; Accessed 5-February-2015.
- Aranguren ME, Wilkinson MD. Supporting data for "Enhanced reproducibility of SADI Web service workflows with Galaxy and Docker". GigaScience Database. 2015. doi:http://dx.doi.org/10.5524/100176.