API Reference

Core Functions and Utilities

anyvar.anyvar

Full-service interface to converting, validating, and registering biological sequence variation.

anyvar.core.metadata

Define types and classes for metadata, i.e. additional descriptions on top of stored objects.

anyvar.core.objects

Provide types, classes, and functions for objects stored by AnyVar.

anyvar.core.categorical_variants

Provide core typing/structure for categorical variants.

VCF Ingestion

anyvar.vcf.ingest

Support processing and manipulation of VCF objects.

Bulk Processing

Object Storage

anyvar.storage.base

Provide PostgreSQL-based storage implementation.

anyvar.storage.postgres

Provide PostgreSQL-based storage implementation.

anyvar.storage.duckdb

Provide DuckDB-based storage implementation.

anyvar.storage.mapper_registry

Central registry for all object mappers.

anyvar.storage.mappers

Object mappers for converting between VRS models and database entities.

anyvar.storage.orm

SQLAlchemy ORM models for AnyVar database schema.

anyvar.storage.no_db

Stateless storage implementation (no persistence).

Variant Translation

anyvar.translate.base

Provide base properties for Translator classes.

anyvar.translate.vrs_python

Normalize incoming variation descriptions with the VRS-Python library.

anyvar.translate.register

Provide shared variation registration logic for use by REST API and Celery workers.

Mapping

anyvar.mapping.liftover

Defines functions used to lift over variants between GRCh37 & GRCh38

anyvar.mapping.projection_models

Define data models for use in variant projection

anyvar.mapping.protocols

Provide a public interface to mapping models and functions