SAM tags
Project description
sam_tags
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
Release history Release notifications | RSS feed
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)
Built Distribution
sam_tags-0.1.0-py3-none-any.whl
(15.7 kB
view details)