aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-19 22:00:30 +0300
committerzsloan2021-06-18 22:08:04 +0000
commitd7571e3c30aa7b1f312fcf975e7336b9f2912709 (patch)
treee6e4780fcfd947ff7ac26ce7bc1c9785972d4cf3 /gn3/db
parent5c48d14d95b46caa10bcdbd80aec1ae04ec7f225 (diff)
downloadgenenetwork3-d7571e3c30aa7b1f312fcf975e7336b9f2912709.tar.gz
db: phenotypes: Map a table to it's relevant dict mapping
Diffstat (limited to 'gn3/db')
-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 e97322a..f6ca944 100644
--- a/gn3/db/phenotypes.py
+++ b/gn3/db/phenotypes.py
@@ -79,6 +79,11 @@ publish_x_ref_mapping = {
"comments": "comments",
}
+TABLEMAP = {
+ "Phenotype": phenotype_column_mapping,
+ "PublishXRef": publish_x_ref_mapping,
+}
+
def update_phenotype(conn: Any,
data: Phenotype,