From fb99d9905e97603a0f8a20bc96c7d7da94455e4a Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 22 Oct 2024 20:48:58 +0000 Subject: [PATCH] Update genome_annotation.py with dunder methods --- bkbit/models/genome_annotation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bkbit/models/genome_annotation.py b/bkbit/models/genome_annotation.py index ffa56b2..252b39b 100644 --- a/bkbit/models/genome_annotation.py +++ b/bkbit/models/genome_annotation.py @@ -5090,6 +5090,10 @@ class GeneAnnotation(Gene): """ An annotation describing the location, boundaries, and functions of individual genes within a genome annotation. """ + + def __hash__(self): + return hash(tuple([self.id, self.name, self.molecular_type, self.description])) + linkml_meta: ClassVar[LinkMLMeta] = LinkMLMeta({'from_schema': 'https://identifiers.org/brain-bican/genome-annotation-schema', 'id_prefixes': ['ENSEMBL', 'MGI', 'NCBIGene']})