Features
Variant Object Types
AnyVar enables the registration and retrieval of a number of different variation object types, beginning with core elements of the GA4GH Variation Representation Specification (VRS):
Variant Translation
AnyVar implements a Translator abstraction that can be used to ingest free-text variation expressions of known nomenclatures. By way of the VRS-Python translator module, the following kinds of expressions are supported:
Expression Type |
Example |
|---|---|
HGVS |
|
SPDI |
|
gnomAD/VCF |
|
VCF Ingestion and Annotation
AnyVar can ingest and register all variants (and reference alleles) contained within a Variant Call Format (VCF) file, and return a file copy with variation IDs included as INFO field properties.
Object Annotations
Registered variation objects can be associated with annotations. Annotations consist of a type, of type str, and a value, which can be any JSON-serializable object or value. Annotations may be used to link to external references, indicate variant classifications, or otherwise adjoin genomic knowledge to a variation.
Variant Mappings
Mappings can be used to register specific modes of relationship between variations, such as reference assembly liftover. The VariationMappingType enum provides the supported kinds of relationships:
Stateless Mode
Optionally, an AnyVar server can be configured as stateless, to provide its variant translation and bulk file annotation functions without any persistent object registration backend. This utilizes the NoObjectStore class in place of a relational data backend.