aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/phenotypes.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-20 21:25:10 +0300
committerBonfaceKilz2021-05-20 23:25:59 +0300
commitda3ae0871271e9b88766ed94cb9b3f0e00d19088 (patch)
tree46bc3bdf0434abe192ad9b2089591b6d3ac56132 /gn3/db/phenotypes.py
parent0134a72d4a076b5aca43ce2838a9cd28fe2b65b4 (diff)
downloadgenenetwork3-da3ae0871271e9b88766ed94cb9b3f0e00d19088.tar.gz
db: phenotypes: Add a dataclass map
Maps a string to it's dataclass.
Diffstat (limited to 'gn3/db/phenotypes.py')
-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,
}