Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
parser
✓ import hgvs.parser
variantmapper
✓ import hgvs.variantmapper
SequenceVariant
✓ from hgvs.sequencevariant import SequenceVariant
✗ import hgvs.SequenceVariant
SequenceVariant is in a submodule, not top-level.
Parse an HGVS variant string using the default parser.
import hgvs.parser
import hgvs.dataproviders.uta
# Initialize parser
hp = hgvs.parser.Parser()
# Parse an HGVS variant string
var = hp.parse_hgvs_variant('NM_000551.3:c.101T>A')
print(var) # SequenceVariant(...)
# For mapping, need a data provider (e.g., UTA)
# hdp = hgvs.dataproviders.uta.connect()
# vm = hgvs.variantmapper.VariantMapper(hdp)
# t_vm = vm.c_to_t(var)
# print(t_vm)
Errors
Common errors & fixes
AttributeError: 'UTA_postgresql' object has no attribute '_pool'
Outdated psycopg2 or missing pool module; fixed in 1.5.5.
fixUpgrade hgvs to >=1.5.5 or install psycopg2-binary.
ValueError: Could not find a data provider; set UTA_DB_URL or provide connection
No database connection configured.
fixSet environment variable UTA_DB_URL or pass url to hgvs.dataproviders.uta.connect().
hgvs.exceptions.HGVSParseError: Expected '>' at position ...
Malformed variant string (e.g., missing allele after '>').
fixVerify the variant string conforms to HGVS syntax; e.g., 'NM_000551.3:c.101T>A'.
Upgrade
Version history
1.5.7latest on PyPI · released Mar 17, 2026
Audit
Dependencies
bioutilsrequiredRequired for sequence utilities
parsleyrequiredRequired for grammar parsing
psycopg2-binaryoptionalRequired for UTA database connection
seqrepooptionalRequired for local sequence retrieval