Mark Robinson
Supervisor: Carole Goble
The original data can be analyzed to obtain the same results of the original study
Reproducibility is important because the data is the only thing that can be guaranteed about a study
Reproducibility is critical - one of the main principles of the scientific method
Source: https://xkcd.com/242/
Portability, Preservation
Packaging, Containers
Access
Standards
Common APIs
Licensing, IDs
Description
Standards,
Common Metadata
Robustness, Versioning
Change
Variation Sensitivity
Discrepancy Handling
Provenance
Steps
Dependencies
Very useful in Bioinformatics due to large scale and repetitive processes
Series of Computational/Data Management Steps
An example of a simple workflow that retrieves a weather forecast for the specified city
A useful paradigm to describe, manage, and share complex scientific analyses
Apache Taverna "Why Use Workflows"
Important that it 'just runs'
Workflows used for Variant calling, RNA sequencing and small RNA analysis
https://bcbio-nextgen.readthedocs.io/
Description for workflows and their tools
Metadata description - manifests for containers of files
Common to have a series of tools written by different people used together
Moves too quickly for one end to end tool
Hundreds of tools available - Even directories for these eg https://bio.tools/
Manage command line tools and web services
Infrastructure to setup, execute, and monitor scientific workflows
Allows analysis of intermediate steps and complete provenance information
Basically does the input/output 'plumbing' and 'rewiring' if tools are swapped out or workflow changes
+ Many, many more
YesWorkflow
CWL is a community led standard way of expressing and running workflows and command line tools
Competing standards make collaboration difficult
Written in YAML or JSON
Description
Standards,
Common Metadata
cwlVersion: v1.0
class: Workflow
inputs:
inp: File
ex: string
outputs:
classout:
type: File
outputSource: compile/classfile
steps:
untar:
run: tar-param.cwl
in:
tarfile: inp
extractfile: ex
out: [example_out]
compile:
run: arguments.cwl
in:
src: untar/example_out
out: [classfile]
http://www.commonwl.org/v1.0/UserGuide.html#First_workflow
Extracts a java source file from a tar file and then compiles it
External Tools
inp:
class: File
path: hello.tar
ex: Hello.java
workflow.cwl
workflow-job.yml
http://www.commonwl.org/v1.0/UserGuide.html#First_workflow
$ echo "public class Hello {}" > Hello.java && tar -cvf hello.tar Hello.java
$ cwl-runner workflow.cwl workflow-job.yml
[job untar] /tmp/tmp94qFiM$ tar xf /home/example/hello.tar Hello.java
[step untar] completion status is success
[job compile] /tmp/tmpu1iaKL$ docker run -i --volume=/tmp/tmp94qFiM/Hello.java:/var/lib/cwl/job301600808_tmp94qFiM/Hello.java:ro --volume=/tmp/tmpu1iaKL:/var/spool/cwl:rw --volume=/tmp/tmpfZnNdR:/tmp:rw --workdir=/var/spool/cwl --read-only=true --net=none --user=1001 --rm --env=TMPDIR=/tmp java:7 javac -d /var/spool/cwl /var/lib/cwl/job301600808_tmp94qFiM/Hello.java
[step compile] completion status is success
[workflow workflow.cwl] outdir is /home/example
Final process status is success
{
"classout": {
"location": "/home/example/Hello.class",
"checksum": "sha1$e68df795c0686e9aa1a1195536bd900f5f417b18",
"class": "File",
"size": 416
}
}
Hello.class produced
Provenance information for outputs also given
Portability, Preservation
Packaging, Containers
CWL Workflows can be packaged into various containers for sharing
Workflows are designed to be shared
Zip
Bagit
Description
Standards,
Common Metadata
Robustness, Versioning
Change
Variation Sensitivity
Discrepancy Handling
No Standards for Metadata
No Versioning or File Integrity Verification
However there is an entire project focused on writing manifests for collections of research data developed by wf4ever
Executable and complete description of how computationally derived research results were made
This is the missing piece of the puzzle for reproducible workflows
A 'Profile' defines an expectation of the purpose of the Research Object
What files and metadata should be expected
Assumptions which can be safely made about contents
But how do we define a profile?
Description
Standards,
Common Metadata
In a way the idea is too flexible
Needs to account for various fields/software
User enters a Github URL of a directory to get the workflow from
Each CWL file is parsed and the main workflow is found
Inputs, outputs and step details are collected
Research Object bundle is constructed
Page is created for the workflow with visualisation, details and download link
Github API
Parse CWL
Visualisation
Construct RO
Existing Libraries are Available
Async
Add to
Page
inputs:
input1: string
inputs2: int
inputs:
input:
id: input1
type: string
input:
id: input2
type: int
inputs:
input1: string[]
inputs:
input:
id: input1
type: array
items: string
inputs:
input1: float?
inputs:
input:
id: input1
type: ["null", float]
Examples for Inputs:
http://www.commonwl.org/v1.0/SchemaSalad.html
Eg Field Name Resolution:
{
"$namespaces": {
"acid": "http://example.com/acid#"
},
"$graph": [{
"name": "ExampleType",
"type": "record",
"fields": [{
"name": "base",
"type": "string",
"jsonldPredicate": "http://example.com/base"
}]
}]
}
{
"base": "one",
"form": {
"http://example.com/base": "two",
"http://example.com/three": "three",
},
"acid:four": "four"
}
{
"base": "one",
"form": {
"base": "two",
"http://example.com/three": "three",
},
"http://example.com/acid#four": "four"
}
https://github.com/MarkRobbo/CWLViewer
An RO bundle is a zip container for Research Objects which makes a workflow easy to download and provides the helpful manifest previously discussed
This will be a visual tool for sharing workflows, so a human readable visualisation is essential
Supporting linked data is an important aspect to supporting all possible kinds of workflow which could be imported in the site
Because externally linked data can change over time and it is important to have a stable reference to a workflow, these resources can be saved and linked locally
I have also engaged with the CWL community and the contributors have agreed to host the finished product at:
http://view.commonwl.org/
This means I can also get feedback on the state of the application as an ongoing process