aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-19 21:44:58 +0300
committerBonfaceKilz2021-05-20 23:25:59 +0300
commit7565712744fdda4b530e4f40dd2765617546c393 (patch)
treebfca932aa9efbaa4d18be6c592e748c202213307 /gn3/db
parent28ebb9434038121abb80e602714603a2ec6e4e48 (diff)
downloadgenenetwork3-7565712744fdda4b530e4f40dd2765617546c393.tar.gz
db: phenotypes: Put mapping def after dataclass
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/phenotypes.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/gn3/db/phenotypes.py b/gn3/db/phenotypes.py
index 645c0af..be5fb7b 100644
--- a/gn3/db/phenotypes.py
+++ b/gn3/db/phenotypes.py
@@ -56,20 +56,20 @@ class PublishXRef:
comments: Optional[str] = None
-# Mapping from the Phenotype dataclass to the actual column names in the
+# Mapping from the PublishXRef 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",
+publish_x_ref_mapping = {
+ "id_": "Id",
+ "inbred_set_id": "InbredSetId",
+ "phenotype_id": "PhenotypeId",
+ "publication_id": "PublicationId",
+ "data_id": "DataId",
+ "mean": "mean",
+ "locus": "locus",
+ "lrs": "lrs",
+ "additive": "additive",
+ "sequence": "sequence",
+ "comments": "comments",
}