aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
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 = {