Skip to main content

SAM tags

Project description

sam_tags

CI Python Versions MyPy Checked Ruff

SAM tags

Quickstart

The sam_tags decorator permits the specification of custom enumerations that adhere to the conventions described in the SAM specification.

from enum import StrEnum
from sam_tags import sam_tag


@sam_tag
class CustomTag(StrEnum):
    """Custom SAM tags."""

    XF = "XF"
    """Some filter."""

    vl = "vl"
    """Some value."""

The predefined standard tags are available as a built-in class.

from sam_tags import StandardTag

# read: pysam.AlignedSegment
read.get_tag(StandardTag.RX)

Docstrings on each predefined tag permit simple reference within an IDE.

Built-in classes are also available for sets of tags used in popular bioinformatics software.

from sam_tags.community import BwaTag
from sam_tags.community import CellrangerTag

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

sam_tags-0.1.0.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

sam_tags-0.1.0-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

Supported by

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