gene.schemas#
Contains data models for representing VICC normalized gene records.
- class gene.schemas.Annotation(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define string constraints for annotations when gene location is absent.
- class gene.schemas.BaseGene(**data)[source]#
Base gene model. Provide shared resources for records produced by /search and /normalize_unmerged.
-
locations:
Union
[List
[SequenceLocation
],List
[GeneSequenceLocation
]][source]#
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
symbol_status:
Optional
[SymbolStatus
][source]#
-
locations:
- class gene.schemas.BaseNormalizationService(**data)[source]#
Base method providing shared attributes to Normalization service classes.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
service_meta_:
ServiceMeta
[source]#
- class gene.schemas.Chromosome(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define string constraints for chromosomes.
- class gene.schemas.DataLicenseAttributes(**data)[source]#
Define constraints for data license attributes.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- class gene.schemas.GeneGroup(**data)[source]#
A grouping of genes based on common attributes.
- class gene.schemas.GeneSequenceLocation(**data)[source]#
Sequence Location model when storing in DynamoDB.
- class gene.schemas.GeneTypeFieldName(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Designate source-specific gene type field names for Extensions and internal records.
- class gene.schemas.MatchType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define string constraints for use in Match Type attributes.
- class gene.schemas.MatchesNormalized(**data)[source]#
Matches associated with normalized concept from a single source.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
source_meta_:
SourceMeta
[source]#
- class gene.schemas.NamespacePrefix(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define string constraints for namespace prefixes on concept IDs.
- class gene.schemas.NormalizeService(**data)[source]#
Define model for returning normalized concept.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
source_meta_:
Dict
[SourceName
,SourceMeta
][source]#
- class gene.schemas.RecordType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Record item types.
- class gene.schemas.RefType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Reference item types.
- class gene.schemas.SearchService(**data)[source]#
Define model for returning highest match typed concepts from sources.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
service_meta_:
ServiceMeta
[source]#
-
source_matches:
Dict
[SourceName
,SourceSearchMatches
][source]#
- class gene.schemas.ServiceMeta(**data)[source]#
Metadata regarding the gene-normalization service.
- class gene.schemas.SourceIDAfterNamespace(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define string constraints after namespace.
- class gene.schemas.SourceMeta(**data)[source]#
Metadata for a given source to return in response object.
- class gene.schemas.SourceName(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define string constraints to ensure consistent capitalization.
- class gene.schemas.SourcePriority(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define priorities for sources when building merged concepts.
- class gene.schemas.SourceSearchMatches(**data)[source]#
Container for matching information from an individual source.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
source_meta_:
SourceMeta
[source]#
- class gene.schemas.Strand(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define string constraints for strand attribute.
- class gene.schemas.SymbolStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Define string constraints for symbol status attribute.
- class gene.schemas.UnmergedNormalizationService(**data)[source]#
Response providing source records corresponding to normalization of user query. Enables retrieval of normalized concept while retaining sourcing for accompanying attributes.
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}[source]#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
source_matches:
Dict
[SourceName
,MatchesNormalized
][source]#