Skip to main content

Supporting functions for running Snakemake workflows.

Project description

Language Python Versions Code Style Type Checked PEP8 Poetry


License Python package PyPI version PyPI download total


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


Download files

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

Source Distribution

fgsmk-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

fgsmk-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

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

Hashes for fgsmk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 41541915a57e370e5e040a0e12ff3b87e6b6f62138c60cadc914570864f0d070
MD5 30fbbc69bd6bbaabd2b95552356246ab
BLAKE2b-256 0de8d9ba5d2c4825bc05acf4025eb61f75219fcc837f9815c7f00fb7ba29f2f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for fgsmk-0.1.1.tar.gz:

Publisher: publish_fgsmk.yml on fulcrumgenomics/fgsmk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for fgsmk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bcce4a64acd9c57b167d6e50fbda77465b04f405a60c1797ac755a12486e363
MD5 add2c9a007daa55c02c4ce0bdb92467f
BLAKE2b-256 3e8b1e04500ed6ae53719aa5104ba69c34029bfe59f560891d57753958f93c95

See more details on using hashes here.

Provenance

The following attestation bundles were made for fgsmk-0.1.1-py3-none-any.whl:

Publisher: publish_fgsmk.yml on fulcrumgenomics/fgsmk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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