Source code for pica.structure.records
#
# Created by Lukas Lüftinger on 2/5/19.
#
from typing import List
from dataclasses import dataclass
"""Data structures containing Genotype and Phenotype information."""
[docs]@dataclass
class GenotypeRecord:
""" TODO add docstring """
identifier: str
features: List[str]
[docs]@dataclass
class PhenotypeRecord:
""" TODO add docstring """
identifier: str
trait_name: str
trait_sign: int
[docs]@dataclass
class GroupRecord:
""" TODO add docstring """
identifier: str
group_name: str
group_id: int
[docs]@dataclass
class TrainingRecord(GenotypeRecord, PhenotypeRecord, GroupRecord):
""" TODO add docstring """
pass