Git Product home page Git Product logo

q2dataflow's Introduction

q2dataflow - QIIME 2 Dataflow Interface

Automatic generator of dataflow descriptor languages.

The purpose of this interface is to enable the use of QIIME 2 plugins in environments which support Dockstore tools/workflows.

To see rendered tools, visit:

qiime2/dockstore-tools (in progress)

Currently supported:

Future work:

A similar interface exists for Galaxy Tool definitions called q2galaxy, which may be integrated into q2dataflow as well (although publication of these tools to Dockstore is not currently possible as only .ga files (not tools) are supported).

Usage

q2dataflow {cwl | wdl} template {all | builtins} {output directory}

or

q2dataflow {cwl | wdl} template plugin {plugin_id} {output directory}

Installation instructions (WDL)

q2dataflow requires installation of the following packages:

  • qiime2, most conveniently installed via a distro
  • click
  • pytest

Then to install q2wdl, activate an environment with QIIME 2 and run:

pip install 'q2dataflow @ git+https://github.com/qiime2/q2dataflow.git'

Additionally, the WDL-related tests require:

  1. an installation of the WDL emulator miniwdl
  2. a docker environment containing an installation ofq2dataflow and qiime2

If running on a Mac, it is very important for #1 to follow the Mac-specific install instructions described in chanzuckerberg/miniwdl#145; miniwdl will fail in somewhat inscrutable ways if the export TMPDIR=/tmp step near the end is not performed.

For #2, a dockerfile is provided that will install q2dataflow and also the latest qiime2 distribution available on quay.io/repository/qiime2/amplicon.

Using this dockerfile, a docker image can be built from the command line in the top q2dataflow directory using the command

docker build docker/ --build-arg CACHEBUST=$(date +%s) REF=main --tag testq2dataflow

The name of the image, testq2dataflow, is important: it is used in generating the test commands in q2dataflow\languages\wdl\usage.py. Currently, it is set in a variable in this module and should presumably be refactored to elsewhere.

The tests generate wdl files and parameter files and then run each wdl file (using the parameters in the associated parameters file) through miniwdl on the testq2dataflow docker image. If the tests hang, go to a terminal, enter the conda environment containing miniwdl, and run miniwdl run_self_test. If this hangs due to errors stating "error while loading TLS certificate in /var/lib/docker/swarm/certificates/swarm-node.crt", then run docker swarm leave --force and try again.

q2dataflow's People

Contributors

amandabirmingham avatar ebolyen avatar

Watchers

Greg Caporaso avatar Nicholas Bokulich avatar  avatar  avatar Q2-D2 avatar  avatar Chris Keefe avatar  avatar Liz Gehret avatar

Forkers

ebolyen

q2dataflow's Issues

Shared templating CLI?

Given that dockstore supports multiple languages, it might be convenient if we can do something like:

q2dataflow template all --cwl --wdl --dockstore --docker=image-name <target directory>

Where --cwl implies CWL, etc. --dockstore means write a .dockstore.yml file to the directory.

Uploading/publishing tools to Dockstore

It looks like the "canonical" upload destination is Dockstore

Fortunately, they make it very straight-forward to automatically upload tools/workflows.
Here's what I've learned:

TODO:

Misc:

  • Tool names can use underscores or dashes, but we should probably stick with underscores to match WDL identifiers at least.
  • WDL is always a "workflow" in dockstore (they have a concept of legacy WDL tools of single task + workflow, but they just call that a workflow now) (example of .dockstore schema)
  • CWL is either tool or workflow, we want to call them tools (example of .dockstore schema for tools)
  • You can have the same tool/workflow available in multiple languages

Example repo:
https://github.com/dockstore/dockstore-tool-bamstats (entry point is .dockstore.yml)

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.