From ef9e368735514706f32df7d3c9ed6e79043a30fc Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 19 May 2021 21:33:00 +0300 Subject: db: phenotypes: Add dataclass to represent PublishXRef --- gn3/db/phenotypes.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'gn3/db') 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 = { -- cgit v1.2.3