Convert cstag format from short to long, vice versa
Project description
cstag
cstag
is a Python module to manipulate minimap2's CS tag.
cstag.shorten()
: to convert a cs tag from long to short formatcstag.lengthen()
: to convert a cs tag from short to long formatcstag.to_consensus()
: to generate a consensus cs tag from multiple cs tagscstag.to_html()
: to output html report (under-development:construction_worker:)cstag.to_mids()
: to convert cs tag into compressed MIDS format (under-development:construction_worker:)
Installation
From PyPI:
pip install cstag
Example
"""
Convert short format of cs tag into long format
"""
import cstag
cs = "cs:Z::4*ag:3"
cigar = "8M"
seq = "ACGTACGT"
cstag.lengthen(cs, cigar, seq)
# cs:Z:=ACGT*ag=CGT
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
cstag-0.0.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
cstag-0.0.4-py3-none-any.whl
(4.9 kB
view hashes)