aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-20 21:25:10 +0300
committerzsloan2021-06-18 22:08:04 +0000
commit1b6ed578ac251daf19ca2299870a0e7e9a3eb6cc (patch)
tree10ec5e3f6da7b515aa5b36ffaf10db82a5ec98ca /gn3
parentc237b50a13299dc5b4e8bfa3d719f2668f699b6c (diff)
downloadgenenetwork3-1b6ed578ac251daf19ca2299870a0e7e9a3eb6cc.tar.gz
db: phenotypes: Add a dataclass map
Maps a string to it's dataclass.
Diffstat (limited to 'gn3')
-rw-r--r--gn3/db/phenotypes.py5
1 files changed, 5 insertions, 0 deletions
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,
}