Skip to content

Commit

Permalink
Update genome_annotation.py with dunder methods
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 22, 2024
1 parent 7988f48 commit 5294835
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bkbit/models/genome_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']})

Expand Down

0 comments on commit 5294835

Please sign in to comment.