SevenBridges CWL
Table of contents
Overview
SevenBridges CWL package provides python bindings for Common Workflow Language. It is intended for developers who want to use python code to generate CWL documents. If creating a document through the GUI is preferable, then look at the Rabix Composer.
Install
Official releases
Official releases are available via pip install sevenbridges-cwl (This is the pypi entry for this project)
Development versions
To obtain unreleased versions:
git clonethis repositorycd sevenbridges-cwl && pip install .
The master branch is for more stable code while develop is for cutting edge features being currently worked on
Docs
Complete documentation can be found here.
If you are interested in reviewing this documentation locally, clone this
repository, position yourself in the docs directory and after installing
requirements-dev.txt, invoke:
make html
Run Tests
In order to run tests clone this repository, position yourself in the root of
the cloned project and, after installing requirements-dev.txt, invoke:
pytest
Examples
The following code will give a brief overview of what this package can offer through simple examples.
A Complete list of all examples can be found here.
Run workflow on a SevenBridges platform
from sbg import cwl
# First node
@cwl.to_tool(
inputs=dict(x=cwl.String()),
outputs=dict(out=cwl.Float(required=True)),
docker='images.sbgenomics.com/filip_tubic/ubuntu1604py'
)
def to_float(x):
return dict(out=float(x))
# Second node
@cwl.to_tool(
inputs=dict(x=cwl.Float(), n=cwl.Int()),
outputs=dict(out=cwl.Float()),
docker='images.sbgenomics.com/filip_tubic/ubuntu1604py'
)
def times_n(x, n=10):
return dict(out=x * n)
wf = cwl.Workflow()
# create tools
t1 = to_float()
t2 = times_n()
# steps
wf.add_step(t1, expose=['x'])
wf.add_step(t2, expose=['n', 'out'])
# add connections
wf.add_connection(f'{t1.id}.out', f'{t2.id}.x')
# Session on a SBG platform
session = cwl.Session(profile='<your_profile>')
session.run('<your_project>', wf, inputs={'x': '10.2'})
Metadata
Release files for sevenbridges-cwl 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sevenbridges-cwl-1.1.4.tar.gz | 66.7 kB | Without provenance | Details for sevenbridges-cwl-1.1.4.tar.gz |
Release files / sevenbridges-cwl-1.1.4.tar.gz
| Download URL | sevenbridges-cwl-1.1.4.tar.gz |
|---|---|
| Size | 66.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdd8c61198f76d61b37c168c672530a57c1891b6994eccaf95df137262f114b4
|
|
BLAKE2b-256 checksum How to use checksums |
0cff7cd556a1bcf13fc1bc93d23c315bafd46ab33947fd295b7eb73eb3ff8070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1
|
Security for sevenbridges-cwl 1.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.