anyvar.core.metadata
Define types and classes for metadata, i.e. additional descriptions on top of stored objects.
This currently includes
Extensions: free-text key-value descriptions of an object
Mappings: directed associations between objects
- class anyvar.core.metadata.Extension(**data)[source]
Generic extension class which attaches any object to an identifier
This is implemented in addition to the
Extensiondefined ingks-corebecause AnyVar needs additional metadata (like a reference ID) to manage it, but conceptually, they’re quite close.
- class anyvar.core.metadata.VariationMapping(**data)[source]
Describe a mapping between two variations.
-
mapping_type:
VariationMappingType[source]
-
mapping_type:
- class anyvar.core.metadata.VariationMappingType(value)[source]
Supported mapping types between VRS Variations.
Warning
Currently, use of mappings outside of the liftover relation are experimental, and these parameters are subject to change. The following describes current intentions, and may or may not be validated within AnyVar.
LIFTOVER_TO: Genomic-to-genomic coordinate transformation. Use when mapping a variation between two reference sequences of the same molecule type, typically genomic DNA.TRANSCRIBE_TO: Genomic-to-transcript (RNA/cDNA) projection. Use when projecting a genomic DNA object onto a transcript sequence (RNA or cDNA). This accounts for splicing, transcript strand orientation, and transcript-specific exon structure.TRANSLATE_TO: Transcript-to-protein projection. This entails codon interpretation, amino acid substitution/insertion/deletion/extension, and protein coordinate changes.