From 1b6ed578ac251daf19ca2299870a0e7e9a3eb6cc Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 20 May 2021 21:25:10 +0300 Subject: db: phenotypes: Add a dataclass map Maps a string to it's dataclass. --- gn3/db/phenotypes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gn3/db/phenotypes.py b/gn3/db/phenotypes.py index 514037d..c3ad683 100644 --- a/gn3/db/phenotypes.py +++ b/gn3/db/phenotypes.py @@ -114,6 +114,11 @@ TABLEMAP = { "PublishXRef": publish_x_ref_mapping, "Publication": publication_mapping, } + +DATACLASSMAP = { + "Phenotype": Phenotype, + "PublishXRef": PublishXRef, + "Publication": Publication, } -- cgit v1.2.3