snakeres
This tool can be used to extract the resource specifications and job grouping from a snakemake workflow and create a workflow profile. It also writes a version of the workflow definition with the resource specifications and grouping information removed.
Installation
snakeres needs python >=3.12 and pip. Then it can be installed with:
pip install snakeres
Usage
usage: snakeres [-h] [--input INPUT] [--output-profile OUTPUT_PROFILE] [--output-smk OUTPUT_SMK]
Generate a workflow profile from a snakefile
options:
-h, --help show this help message and exit
--input INPUT Path to snakefile
--output-profile OUTPUT_PROFILE Output profile file (default: profile.yaml)
--output-smk OUTPUT_SMK Output snakefile without the directives (default: snakefile_cleaned)
Testing
The code is covered by pytests. To run these install: pip install pytest pytest-cov. Then run tests: cd tests; pytest --cov --cov-report html.
To test local builds: hatch build && pip install dist/snakeres-V-py3-none-any.whl --force-reinstall --no-deps
Install development environment
conda env create -f dev.yaml -n snakeres_dev
conda activate snakeres_dev
pip install -e .
cd tests
pytest --cov --cov-report html
New release
hatch build
pip install dist/snakeres-V-py3-none-any.whl --force-reinstall --no-deps
pytest --cov --cov-report html
hatch publish
Metadata
Release files for snakeres 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snakeres-0.1.tar.gz | 17.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snakeres-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.4 kB
Release files / snakeres-0.1.tar.gz
| Download URL | snakeres-0.1.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
090520e781b3be5e6b8d599d91d615c55c483b44eb13e79209688cbc52677fe1
|
|
BLAKE2b-256 checksum How to use checksums |
e4946738c3e698eeeee613f40d1307c9272f40918772920e77b5c504a0a33a74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / snakeres-0.1-py3-none-any.whl
| Download URL | snakeres-0.1-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7ee3aaa04b58cd7ef033241b9e77ae273ab2c88f029e9c5117708507a9d7d7b
|
|
BLAKE2b-256 checksum How to use checksums |
3328a47a2af9058620c344a23c794d82586f633f92af4eabb5010927a8437a66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|