diff options
author | BonfaceKilz | 2021-05-19 21:33:00 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-05-20 23:25:59 +0300 |
commit | ef9e368735514706f32df7d3c9ed6e79043a30fc (patch) | |
tree | 037c9abeee59f4dcd91e8f5f1061a308662c1a91 /gn3/db | |
parent | 7004b5ea48309d896eec5c1e9fcc47a5ea84fd34 (diff) | |
download | genenetwork3-ef9e368735514706f32df7d3c9ed6e79043a30fc.tar.gz |
db: phenotypes: Add dataclass to represent PublishXRef
Diffstat (limited to 'gn3/db')
-rw-r--r-- | gn3/db/phenotypes.py | 16 |
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 = { |