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 Bioconda DOI


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.2.tar.gz (9.6 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.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file fgsmk-0.1.2.tar.gz.

File metadata

  • Download URL: fgsmk-0.1.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fgsmk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 01e66965bcea54f10825538af90d7c73f426a9dba5ac6bd4678c404628448dae
MD5 35790451579e99acae111721e3235d5f
BLAKE2b-256 eaaf73ed2c5927aa7cca4302a79ea3c8bfd2226361f051d6b5652f449e478ae5

See more details on using hashes here.

Provenance

The following attestation bundles were made for fgsmk-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: fgsmk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fgsmk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aba31ca403cdb036bc5589df7fbb1af46de8d53c6f7fd2fb300777173f5277a5
MD5 9d0cf88c6b56d4e49f6dfe6bc7c44d8b
BLAKE2b-256 762eacc79d25905f8b4ff64174344a504ad140d546391b3275d5160c8a4139b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for fgsmk-0.1.2-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