diff options
author | BonfaceKilz | 2021-05-20 21:25:10 +0300 |
---|---|---|
committer | zsloan | 2021-06-18 22:08:04 +0000 |
commit | 1b6ed578ac251daf19ca2299870a0e7e9a3eb6cc (patch) | |
tree | 10ec5e3f6da7b515aa5b36ffaf10db82a5ec98ca /gn3/db | |
parent | c237b50a13299dc5b4e8bfa3d719f2668f699b6c (diff) | |
download | genenetwork3-1b6ed578ac251daf19ca2299870a0e7e9a3eb6cc.tar.gz |
db: phenotypes: Add a dataclass map
Maps a string to it's dataclass.
Diffstat (limited to 'gn3/db')
-rw-r--r-- | gn3/db/phenotypes.py | 5 |
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, } |