Skip to main content

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

Download files

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

Source Distribution

snakeres-0.1.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snakeres-0.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file snakeres-0.1.tar.gz.

File metadata

  • Download URL: snakeres-0.1.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for snakeres-0.1.tar.gz
Algorithm Hash digest
SHA256 090520e781b3be5e6b8d599d91d615c55c483b44eb13e79209688cbc52677fe1
MD5 a51438d31e59d33d6dd5fd70ad83d82d
BLAKE2b-256 e4946738c3e698eeeee613f40d1307c9272f40918772920e77b5c504a0a33a74

See more details on using hashes here.

File details

Details for the file snakeres-0.1-py3-none-any.whl.

File metadata

  • Download URL: snakeres-0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for snakeres-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7ee3aaa04b58cd7ef033241b9e77ae273ab2c88f029e9c5117708507a9d7d7b
MD5 4a3aaf83d84420f91b12d753ae08e5d6
BLAKE2b-256 3328a47a2af9058620c344a23c794d82586f633f92af4eabb5010927a8437a66

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page