Skip to main content

Requirement manager for processes of PyPPL

Project description

pyppl_require

Requirement manager for PyPPL.

Installation

It requires pyppl_annotate.

pip install pyppl_require

Usage

> pyppl require
Description:
  Process requirement manager

Usage:
  pyppl require <--pipe AUTO> [OPTIONS]

Required options:
  -p, --pipe <AUTO>     - The pipeline script.

Optional options:
  --install <AUTO>      - Install the requirements.
                          You can specify a directory (default: $HOME/bin) to install the \
                          requirements.
                          Default: None
  -h, -H, --help        - Show help message and exit.

To allow your processes to be analyzed, you have to put a section in annotate using toml format:

pXXX.config.annotate = """
@requires:
  [bedtools]
  validate: "bedtools --version"
  install: "conda install -c bioconda bedtools"
  # other annotations
"""

If you want define those commands using process properties and aggrs:

pXXX.config.annotate = """
@requires:
  [bedtools]
  validate: "{{args.bedtools}} --version"
  install: "conda install -c bioconda bedtools"
  # other annotations
"""

Install to a specify directory:

pXXX.config.annotate = """
@requires:
  [bedtools]
  validate: "{{args.bedtools}} --version"
  install: "conda install -c bioconda bedtools; ln -s $(which bedtools) {{bindir}}/bedtools"
  # other annotations
"""

{{bindir}} will be the directory passed to the command line.

pyppl require --pipe <your pipeline> --install </path/to/bin>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyppl_require-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

pyppl_require-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pyppl_require-0.0.2.tar.gz.

File metadata

  • Download URL: pyppl_require-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.3 Linux/2.6.32-754.15.3.el6.x86_64

File hashes

Hashes for pyppl_require-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c4f4b583f8a80d27d0bfa236204a22767d2849ceb039d3912b4139f838bf4fce
MD5 cbc254d6f09aed2011f86bb2058ecc2d
BLAKE2b-256 1a65d652dbf649c3ba22053e3c1c405bcf00f26d8adbc9e23448b583c14c6f6c

See more details on using hashes here.

File details

Details for the file pyppl_require-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyppl_require-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.7.3 Linux/2.6.32-754.15.3.el6.x86_64

File hashes

Hashes for pyppl_require-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8ac05f0b1aa714f90de2b52e78e68f9a4ac85ebdac7312f7a0bd9febf36b1c3
MD5 407ea1042a14e8f950d86cc9350e891e
BLAKE2b-256 b9afb496aacc02a6f273c17cf7bc7cd8454d0ac40b38ac4ba4c81135300e1ca7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page