# Metagenophile (Work in progress)
Scalable metagenomics workflows, implemented in the Workflow Description Language and running on Docker containers

### Requirements 

The [Cromwell](http://cromwell.readthedocs.io) execution engine ([latest](https://github.com/broadinstitute/cromwell/releases/latest)), Docker and Java 8.

### Configuration

Although no configuration is required to start using Cromwell, it is advised to start Cromwell as a server and then submit jobs 
<pre>
java -Dconfig.file=cromwell.conf -jar cromwell-[version].jar server
</pre>
#### Example
##### Submit a workflow
<pre>JOB_ID=`curl -X POST -H "Accept: application/json" -H 'Content-Type: multipart/form-data' \ 
http://localhost:8000/api/workflows/30 -F 'workflowSource=@mapping.wdl' -F 'workflowInputs=@mapping.json' | \
python -c "import sys, json; print json.load(sys.stdin)['id']"`
</pre>

###### Check the status of the workflow
<pre>
curl -X GET http://localhost:8000/api/workflows/30/$JOB_ID/status
</pre>

###### Check the outputs of the workflow
<pre>
curl -X GET http://localhost:8000/api/workflows/30/$JOB_ID/outputs
</pre>

###### Abort the workflow
<pre>
curl -X POST http://localhost:8000/api/workflows/30/$JOB_ID/abort
</pre>


