Skip to main content

Convert cstag format from short to long, vice versa

Project description

Licence Docs Python Test PyPI

cstag

cstag is a Python module to manipulate minimap2's CS tag.

  • cstag.shorten(): to convert a cs tag from long to short format
  • cstag.lengthen(): to convert a cs tag from short to long format
  • cstag.to_consensus(): to generate a consensus cs tag from multiple cs tags
  • cstag.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


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)

Uploaded Source

Built Distribution

cstag-0.0.4-py3-none-any.whl (4.9 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