Giter VIP home page Giter VIP logo

dockstore-tool-md5sum's Introduction

Docker Repository on Quay.io Build Status

dockstore-tool-md5sum

This is an extremely simple tool, simply used to show how to call a tool via Dockstore. A repo for the Dockerfile to create a Docker image for the md5sum command. Also contains the Dockstore.cwl which is used by the Dockstore to register this container and describe how to call md5sum for the community.

Validation

This tool has been validated as a CWL v1.0 launched using Dockstore 1.1.2.

Versions of dependencies that we tested include:

setuptools==28.8.0
cwltool==1.0.20161114152756
schema-salad==1.18.20161005190847
avro==1.8.1

Building Locally

Normally you would let Quay.io build this. But, if you need to build manually, locally you would execute:

docker build -t quay.io/briandoconnor/dockstore-tool-md5sum:1.0.3 .

WDL Testing

How to execute this tool with Cromwell using the WDL descriptor.

Testing Locally with Cromwell

This tool can be found at the Cromwell project GitHub page.

Make a Parameters JSON

This is the parameterization of the md5sum tool, a copy is present in this repo called test.wdl.json:

{
 "ga4ghMd5.inputFile": "md5sum.input"
}

Run with the CLI

Run it using the cromwell command:

# run this with cromwell (or java -jar cromwell.jar depending on how you installed cromwell)
$> cromwell run Dockstore.wdl test.wdl.json

It will tell you the location of the output file which, in the CWL example below, is specified in the param json file.

CWL Testing

How to execute this tool using the CWL descriptor via the Dockstore command line (which calls the cwltool command behind the scenes).

Testing Locally with the Dockstore CLI

This tool can be found at the Dockstore, login with your GitHub account and follow the directions to setup the CLI. It lets you run a Docker container with a CWL descriptor locally, using Docker and the CWL command line utility. This is great for testing.

Make a Parameters JSON

This is the parameterization of the md5sum tool, a copy is present in this repo called test.dockstore.json:

{
  "input_file": {
        "class": "File",
        "path": "md5sum.input"
    },
    "output_file": {
        "class": "File",
        "path": "/tmp/md5sum.txt"
    }
}

You will also see a test.json file which is the same but with the "output_file" removed. This means when you run it via the Dockstore CLI you need to find the output by looking at the cwltool STDOUT e.g. look at this file:

Saving copy of cwltool stdout to: /Users/boconnor/Development/gitroot/dockstore-tool-md5sum/./datastore/launcher-002bcb21-11e2-47d4-96f5-fb542eb48bb5/outputs/cwltool.stdout.txt

This will tell you the location of the output md5sum file.

You might need to use this "output_file" free test.json if you are executing a more strict CWL execution engine like Arvados.

Run with the CLI

Run it using the dockstore CLI locally with the Dockstore.cwl file (great for testing if you make changes locally):

# run this locally
$> dockstore tool launch --entry Dockstore.cwl --local-entry --json test.json

Or you can run it from the latest release on Dockstore:

# run this from the Dockstore
$> dockstore tool launch --entry quay.io/briandoconnor/dockstore-tool-bamstats:1.0.3 --json test.json

Test with travis-ci

See the .travis.yml file.

Publishing

At this point you follow the SOP from the Dockstore.org site.

dockstore-tool-md5sum's People

Contributors

briandoconnor avatar denis-yuen avatar geoffjentry avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.