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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file fgsmk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fgsmk-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dced0e66c6b7523abe818e50814ed37330950ff66c9e584dcc313804009eb86d
MD5 f11577e0cb475cd0dafabf4a02d330e2
BLAKE2b-256 551ee28023a7c85d73f87e532746532ad0eb7ffd752f97f01d3f7a3dfefafe48

See more details on using hashes here.

Provenance

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