aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-19 22:00:30 +0300
committerBonfaceKilz2021-05-20 23:25:59 +0300
commit24fa8700fdcb1338a8e05283b63bb282a8c96a8b (patch)
tree0716cf07c07fe903cb28348459597751c7161ed8 /gn3/db
parent6556efbaeba3a49de8d821de30d723a965ef4ada (diff)
downloadgenenetwork3-24fa8700fdcb1338a8e05283b63bb282a8c96a8b.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,