https://github.com/broadinstitute/cromwell-tools
A collection of Python clients and accessory scripts for interacting with the Cromwell
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
6 of 12 committers (50.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.3%) to scientific vocabulary
Keywords from Contributors
genome
bioinformatics
dna
gatk
ngs
sequencing
application
executor
ga4gh
wdl
Last synced: 11 months ago
·
JSON representation
Repository
A collection of Python clients and accessory scripts for interacting with the Cromwell
Basic Info
- Host: GitHub
- Owner: broadinstitute
- License: bsd-3-clause
- Language: Python
- Default Branch: master
- Homepage: https://cromwell-tools.readthedocs.io
- Size: 450 KB
Statistics
- Stars: 22
- Watchers: 33
- Forks: 11
- Open Issues: 16
- Releases: 0
Created almost 9 years ago
· Last pushed over 3 years ago
Metadata Files
Readme
License
README.rst
Cromwell-tools
##############
.. image:: https://quay.io/repository/broadinstitute/cromwell-tools/status
:target: https://quay.io/repository/broadinstitute/cromwell-tools
:alt: Container Build Status
.. image:: https://github.com/broadinstitute/cromwell-tools/workflows/Tests%20on%20Pull%20Requests%20and%20Master/badge.svg
:target: https://github.com/broadinstitute/cromwell-tools/actions?query=workflow%3A%22Tests+on+Pull+Requests+and+Master%22+branch%3Amaster
:alt: Unit Test Status
.. image:: https://img.shields.io/readthedocs/cromwell-tools/latest.svg?label=ReadtheDocs%3A%20Latest&logo=Read%20the%20Docs&style=flat-square
:target: http://cromwell-tools.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/github/release/broadinstitute/cromwell-tools.svg?label=Latest%20Release&style=flat-square&colorB=green
:target: https://github.com/broadinstitute/cromwell-tools/releases
:alt: Latest Release
.. image:: https://img.shields.io/github/license/broadinstitute/cromwell-tools.svg?style=flat-square
:target: https://img.shields.io/github/license/broadinstitute/cromwell-tools.svg?style=flat-square
:alt: License
.. image:: https://img.shields.io/badge/python-3.5|3.6|3.7-green.svg?style=flat-square&logo=python&colorB=blue
:target: https://img.shields.io/badge/python-3.5|3.6|3.7-green.svg?style=flat-square&logo=python&colorB=blue
:alt: Language
.. image:: https://img.shields.io/badge/Code%20Style-black-000000.svg?style=flat-square
:target: https://github.com/ambv/black
:alt: Code Style
.. image:: https://codecov.io/gh/broadinstitute/cromwell-tools/branch/master/graph/badge.svg
:target: https://codecov.io/gh/broadinstitute/cromwell-tools
:alt: Code Coverage
Overview
========
This repo contains a cromwell_tools Python package, accessory scripts and IPython notebooks.
The cromwell_tools Python package is designed to be a Python API and Command Line Tool for interacting with the `Cromwell `_. with the following features:
- Python3 compatible. (Starting from release v2.0.0, cromwell-tools will no longer support Python 2.7)
- Consistency in authentication to work with Cromwell.
- Consistency between API and CLI interfaces.
- Sufficient test cases.
- Documentation on `Read The Docs `_.
The accessory scripts and IPython notebooks are useful to:
- Monitor the resource usages of workflows running in Cromwell.
- Visualize the workflows benchmarking metrics.
Installation
============
1. (optional and highly recommended) Create a Python 3 `virtual environment `_
locally and activate it: e.g. ``virtualenv -p python3 myenv && source myenv/bin/activate``
2. Install (or upgrade) Cromwell-tools from `PyPI `_:
.. code:: bash
pip install -U cromwell-tools
3. You can verify the installation by:
.. code:: bash
cromwell-tools --version
Usage
=====
Python API
----------
In Python, you can import the package with:
.. code:: python
import cromwell_tools.api as cwt
cwt.submit(*args)
assuming args is a list of arguments needed.
For more details, please check the tutorial on `Read the Docs `_.
Commandline Interface
---------------------
This package also installs a command line interface that mirrors the API and is used as follows:
.. code::
$> cromwell-tools -h
usage: cromwell-tools [-h]
{submit,wait,status,abort,release_hold,query,health}
...
positional arguments:
{submit,wait,status,abort,release_hold,query,health}
sub-command help
submit submit help
wait wait help
status status help
abort abort help
release_hold release_hold help
query query help
health health help
optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
A set of sub-commands to submit, query, abort, release on-hold workflows, wait for workflow completion and determining
status of jobs are exposed by this CLI.
For more details, please check the tutorial on `Read the Docs `_.
Testing
=======
To run tests:
Run Tests with Docker
---------------------
Running the tests within docker image is the recommended way, to do this, you need to have docker-daemon installed
in your environment. From the root of the cromwell-tools repo:
.. code::
cd cromwell_tools/tests && bash test.sh
Run Tests with local Python environment
---------------------------------------
- If you have to run the tests with your local Python environment, we highly recommend to create and activate a
`virtualenv `_ with requirements before you run the tests:
.. code::
virtualenv test-env
source test-env/bin/activate
pip install -r requirements.txt -r requirements-test.txt
- Finally, from the root of the cromwell-tools repo, run the tests with:
.. code::
python -m pytest --cov=cromwell_tools cromwell_tools/tests
.. note::
Which version of Python is used to run the tests here depends on the virtualenv parameter. You can use
``virtualenv -p`` to choose which Python version you want to create the virtual environment.
Development
===========
Code Style
----------
The cromwell-tools code base is complying with the PEP-8 and using `Black `_ to
format our code, in order to avoid "nitpicky" comments during the code review process so we spend more time discussing about the logic,
not code styles.
In order to enable the auto-formatting in the development process, you have to spend a few seconds setting
up the ``pre-commit`` the first time you clone the repo:
1. Install ``pre-commit`` by running: ``pip install pre-commit`` (or simply run ``pip install -r requirements.txt``).
2. Run `pre-commit install` to install the git hook.
Once you successfully install the ``pre-commit`` hook to this repo, the Black linter/formatter will be automatically triggered and run on this repo. Please make sure you followed the above steps, otherwise your commits might fail at the linting test!
If you really want to manually trigger the linters and formatters on your code, make sure ``Black`` and ``flake8`` are installed in your Python environment and run ``flake8 DIR1 DIR2`` and ``black DIR1 DIR2 --skip-string-normalization`` respectively.
Dependencies
------------
When upgrading the dependencies of cromwell-tools, please make sure ``requirements.txt``, ``requirements-test.txt`` and ``setup.py`` are consistent!
Documentation
-------------
To edit the docmentation and rebuild it locally, make sure you have `Sphinx `_ installed. You might
also want to install the dependencies for building the docs: ``pip install requirements-docs.txt``.
Finally from within the root directory, run:
.. code::
sphinx-build -b html docs/ docs/_build/
and then you could preview the built documentation by opening ``docs/_build/index.html`` in your web browser.
Publish on PyPI
---------------
To publish a new version of Cromwell-tools on PyPI:
1. Make sure you have an empty ``dist`` folder locally.
2. Make sure you have ``twine`` installed: ``pip install twine``.
3. Build the package: ``python setup.py sdist bdist_wheel``
4. Upload and publish on PyPI: ``twine upload dist/* --verbose``, note you will need the username and password of the development account to finish this step.
Contribute
==========
Coming soon... For now, feel free to submit issues and open a PR, we will try our best to address them.
Owner
- Name: Broad Institute
- Login: broadinstitute
- Kind: organization
- Location: Cambridge, MA
- Website: http://www.broadinstitute.org/
- Twitter: broadinstitute
- Repositories: 1,083
- Profile: https://github.com/broadinstitute
Broad Institute of MIT and Harvard
GitHub Events
Total
Last Year
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rex Wang | r****c@g****m | 45 |
| Dave Shiga | d****a@b****g | 6 |
| Saman Ehsan | s****a@v****u | 5 |
| Ambrose J. Carr | a****r@g****m | 5 |
| benjamincarlin | 4****n | 4 |
| Charley | y****c@b****g | 4 |
| Rex Wang | c****e@b****g | 3 |
| Daniel Moran | d****n@g****m | 2 |
| Kevin | k****s@g****m | 2 |
| jsotobroad | j****o@b****m | 1 |
| Louis Bergelson | l****b@b****g | 1 |
| Jeremy Hofer | f****7@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 38
- Total pull requests: 62
- Average time to close issues: 6 months
- Average time to close pull requests: 8 days
- Total issue authors: 11
- Total pull request authors: 11
- Average comments per issue: 1.24
- Average comments per pull request: 0.74
- Merged pull requests: 56
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- rexwangcc (15)
- ambrosejcarr (7)
- kbergin (5)
- danxmoran (3)
- kgalens (2)
- multimeric (1)
- notestaff (1)
- fuego0607 (1)
- lbergelson (1)
- CarlosBorroto (1)
- morganecf (1)
Pull Request Authors
- rexwangcc (37)
- ambrosejcarr (5)
- benjamincarlin (5)
- samanehsan (4)
- charlesdyan (3)
- danxmoran (2)
- kgalens (2)
- AlesMaver (1)
- fuego0607 (1)
- lbergelson (1)
- dependabot[bot] (1)
Top Labels
Issue Labels
enhancement (16)
bug (5)
help wanted (4)
testing (3)
tech debt (3)
Epic (1)
question (1)
Pull Request Labels
dependencies (1)
Packages
- Total packages: 1
-
Total downloads:
- pypi 3,219 last-month
- Total docker downloads: 202,477
- Total dependent packages: 1
- Total dependent repositories: 12
- Total versions: 14
- Total maintainers: 2
pypi.org: cromwell-tools
Utilities for interacting with the Cromwell workflow engine
- Homepage: http://github.com/broadinstitute/cromwell-tools
- Documentation: https://cromwell-tools.readthedocs.io/
- License: BSD 3-clause "New" or "Revised" License
-
Latest release: 2.4.1
published over 6 years ago
Rankings
Docker downloads count: 0.7%
Downloads: 1.9%
Dependent repos count: 4.2%
Average: 6.9%
Dependent packages count: 10.1%
Forks count: 11.4%
Stargazers count: 13.3%
Last synced:
11 months ago
Dependencies
notebooks/requirements.txt
pypi
- google-auth ==1.5.1
- google-cloud ==0.34.0
- google-cloud-storage ==1.12.0
- matplotlib ==2.2.3
- numpy ==1.15.2
- oauth2client ==4.1.2
- pandas ==0.23.4
- python-dateutil ==2.7.3
requirements-docs.txt
pypi
- nbsphinx >=0.4.2
requirements-test.txt
pypi
- flake8 ==3.7.7 test
- mock >=2.0.0 test
- pre-commit ==1.14.4 test
- pytest >=3.6.3 test
- pytest-cov >=2.5.1 test
- pytest-timeout >=1.3.1 test
- requests_mock >=1.4.0 test
requirements.txt
pypi
- google-api-python-client ==1.7.11
- google-auth >=1.6.1,<2
- python-dateutil ==2.8.0
- requests >=2.20.0,<3
- setuptools_scm >=3.1.0,<4
- six >=1.11.0
setup.py
pypi
- google-api-python-client >=1.7,<2
- google-auth >=1.6.1,<2
- python-dateutil >=2.8,<3
- requests >=2.20.0,<3
- setuptools_scm >=3.1.0,<4
- six >=1.11.0
.github/workflows/pr-tests.yml
actions
- actions/checkout v2 composite
- actions/setup-python v1 composite
- codecov/codecov-action v1 composite
.github/workflows/pypipublish.yml
actions
- actions/checkout v1 composite
- actions/setup-python v1 composite
Dockerfile
docker
- python 3.6 build