Supporting functions for running Snakemake workflows.
Project description
fgsmk
A set of utility functions for use in Snakemake workflows. Supports Snakemake 8+.
Table of Contents
Recommended Installation
This package is intended for use within a Snakemake workflow project.
Install the Python package and dependency management tool poetry using official documentation.
You must have Python 3.11 or greater available on your system path, which could be managed by mamba, pyenv, or another package manager.
If you have a mamba environment for the parent project, activate it first.
Install with poetry.
poetry install
Usage
Error summary file
Set the onerror directive in a Snakemake workflow to point to the fgsmk.on_error function.
from fgsmk.log import on_error
onerror:
on_error(snakefile=Path(__file__), config=config, log=Path(log))
"""Block of code that gets called if the snakemake pipeline exits with an error."""
This will produce a file error_summary.txt containing the last (up to) 50 lines of the log files of any rules that failed execution.
The content will also be output to stdout.
Development and Testing
See the contributing guide for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fgsmk-0.1.1.tar.gz.
File metadata
- Download URL: fgsmk-0.1.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41541915a57e370e5e040a0e12ff3b87e6b6f62138c60cadc914570864f0d070
|
|
| MD5 |
30fbbc69bd6bbaabd2b95552356246ab
|
|
| BLAKE2b-256 |
0de8d9ba5d2c4825bc05acf4025eb61f75219fcc837f9815c7f00fb7ba29f2f2
|
Provenance
The following attestation bundles were made for fgsmk-0.1.1.tar.gz:
Publisher:
publish_fgsmk.yml on fulcrumgenomics/fgsmk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fgsmk-0.1.1.tar.gz -
Subject digest:
41541915a57e370e5e040a0e12ff3b87e6b6f62138c60cadc914570864f0d070 - Sigstore transparency entry: 190382306
- Sigstore integration time:
-
Permalink:
fulcrumgenomics/fgsmk@b81ccb95c9610982391944d4662af0015d303a51 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/fulcrumgenomics
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_fgsmk.yml@b81ccb95c9610982391944d4662af0015d303a51 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fgsmk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fgsmk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bcce4a64acd9c57b167d6e50fbda77465b04f405a60c1797ac755a12486e363
|
|
| MD5 |
add2c9a007daa55c02c4ce0bdb92467f
|
|
| BLAKE2b-256 |
3e8b1e04500ed6ae53719aa5104ba69c34029bfe59f560891d57753958f93c95
|
Provenance
The following attestation bundles were made for fgsmk-0.1.1-py3-none-any.whl:
Publisher:
publish_fgsmk.yml on fulcrumgenomics/fgsmk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fgsmk-0.1.1-py3-none-any.whl -
Subject digest:
2bcce4a64acd9c57b167d6e50fbda77465b04f405a60c1797ac755a12486e363 - Sigstore transparency entry: 190382312
- Sigstore integration time:
-
Permalink:
fulcrumgenomics/fgsmk@b81ccb95c9610982391944d4662af0015d303a51 -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/fulcrumgenomics
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_fgsmk.yml@b81ccb95c9610982391944d4662af0015d303a51 -
Trigger Event:
push
-
Statement type: