diff options
author | BonfaceKilz | 2021-05-20 21:25:10 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-05-20 23:25:59 +0300 |
commit | da3ae0871271e9b88766ed94cb9b3f0e00d19088 (patch) | |
tree | 46bc3bdf0434abe192ad9b2089591b6d3ac56132 | |
parent | 0134a72d4a076b5aca43ce2838a9cd28fe2b65b4 (diff) | |
download | genenetwork3-da3ae0871271e9b88766ed94cb9b3f0e00d19088.tar.gz |
db: phenotypes: Add a dataclass map
Maps a string to it's dataclass.
-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, } |