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.3.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for pyppl_require-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04355f62f312fe72beacfc21051e61a3ac0794418aae0efda10d0e428545c4ac |
|
MD5 | 1a6f5d6f02f66c0d8d881dc4dc46a905 |
|
BLAKE2b-256 | 304107ddb9ff1bca4421a9033886631ca4ee141058312d393ac1d9ce12514519 |