From dfafb7c11cb4f57c7e1a61de2ce2f1b62e1018be Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 19 May 2021 21:44:34 +0300 Subject: db: phenotypes: Add phenotype table mapping --- gn3/db/phenotypes.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gn3/db/phenotypes.py b/gn3/db/phenotypes.py index 11d67db..645c0af 100644 --- a/gn3/db/phenotypes.py +++ b/gn3/db/phenotypes.py @@ -23,6 +23,23 @@ class Phenotype: authorized_users: Optional[str] = None +# Mapping from the Phenotype dataclass to the actual column names in the +# database +phenotype_column_mapping = { + "id_": "id", + "pre_pub_description": "Pre_publication_description", + "post_pub_description": "Post_publication_description", + "original_description": "Original_description", + "units": "Units", + "pre_pub_abbrevition": "Pre_publication_abbreviation", + "post_pub_abbreviation": "Post_publication_abbreviation", + "lab_code": "Lab_code", + "submitter": "Submitter", + "owner": "Owner", + "authorized_users": "Authorized_Users", +} + + @dataclass(frozen=True) class PublishXRef: """Data Type that represents the table PublishXRef""" -- cgit v1.2.3