Skip to main content

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

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.

Download files

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

Source Distribution

fgsmk-1.0.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

fgsmk-1.0.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fgsmk-1.0.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fgsmk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 14bcb6d862337edd4781ffd9048906b5149378d7ba11a81ec4f4ea8fb3f182c9
MD5 ba65a6820afa3e496b08b4d339afba30
BLAKE2b-256 6cad580dcc7bb14825f445228f5e269e7d85dcd7a58cba36cb10c451e126c5ca

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: fgsmk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for fgsmk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ccf67752bdc6fbd4a72df1a5db01b61242761978dd68d071c719be5aeb861b0
MD5 1ee9e06b1378f8fcae33b51e88ef1a34
BLAKE2b-256 4b193a0f7cb4744c0cdceeaf503ca83c0e1cda93541358b061124c81eb206bb2

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page