From da3ae0871271e9b88766ed94cb9b3f0e00d19088 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(+) (limited to 'gn3') 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