Module cstag.to_sequence

Functions

def to_sequence(cs_tag: str) ‑> str

Reconstruct the reference subsequence in the alignment

Args

cs_tag : str
cs tag in the long format

Returns

str
The sequence string derived from the cs tag.

Example

>>> import cstag
>>> cs_tag = "=AC*gt=T-gg=C+tt=A"
>>> cstag.to_sequence(cs_tag)
'ACTTCTTA'