aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-19 21:33:00 +0300
committerzsloan2021-06-18 22:08:04 +0000
commit58ebaba0a9249e6fa39d8059b32c17623113a205 (patch)
treee1e11a7ff1cb4eeb83c119f02af2b6349fb751c0 /gn3/db
parent18826b348149f1233bcf3e2e4cda5da5297ecb6b (diff)
downloadgenenetwork3-58ebaba0a9249e6fa39d8059b32c17623113a205.tar.gz
db: phenotypes: Add dataclass to represent PublishXRef
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/phenotypes.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/gn3/db/phenotypes.py b/gn3/db/phenotypes.py
index 355c2e2..11d67db 100644
--- a/gn3/db/phenotypes.py
+++ b/gn3/db/phenotypes.py
@@ -23,6 +23,22 @@ class Phenotype:
authorized_users: Optional[str] = None
+@dataclass(frozen=True)
+class PublishXRef:
+ """Data Type that represents the table PublishXRef"""
+ id_: Optional[int] = None
+ inbred_set_id: Optional[str] = None
+ phenotype_id: Optional[int] = None
+ publication_id: Optional[str] = None
+ data_id: Optional[int] = None
+ mean: Optional[float] = None
+ locus: Optional[str] = None
+ lrs: Optional[float] = None
+ additive: Optional[float] = None
+ sequence: Optional[int] = None
+ comments: Optional[str] = None
+
+
# Mapping from the Phenotype dataclass to the actual column names in the
# database
phenotype_column_mapping = {