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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file sam_tags-0.1.0.tar.gz.

File metadata

  • Download URL: sam_tags-0.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Darwin/21.6.0

File hashes

Hashes for sam_tags-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb5522080aae83000f55c38fc7c2e49fb1634009cfbf3ffcd6e8c784205e7c39
MD5 294f7bfa52934652c3f76061f87ab2f0
BLAKE2b-256 b598e779e27cb733a7b8095f4b0430dfbdfdfff3138c122ada33af3e495b1163

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sam_tags-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Darwin/21.6.0

File hashes

Hashes for sam_tags-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae8d6ce95b9d6a38d11868fa7e7d76f8e5937ab51b06a5f526fd6aa22504f2f3
MD5 92310d70e5bc01f59f0675181686f397
BLAKE2b-256 fd734716cf51f5717eb3a5b1fe29b7e8a1e0b95441816be8495a4a2d02fd6e45

See more details on using hashes here.

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