| Total Complexity | 0 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from dataclasses import dataclass |
||
|
|
|||
| 2 | from typing import List, Optional |
||
| 3 | |||
| 4 | from mandos.model.utils import TrueFalseUnknown |
||
| 5 | |||
| 6 | |||
| 7 | @dataclass |
||
| 8 | class G2pInteraction: |
||
| 9 | target: str |
||
| 10 | target_id: str |
||
| 11 | target_gene_symbol: str |
||
| 12 | target_uniprot: str |
||
| 13 | target_species: str |
||
| 14 | ligand_id: int |
||
| 15 | type: str |
||
| 16 | action: str |
||
| 17 | selectivity: TrueFalseUnknown |
||
| 18 | endogenous: TrueFalseUnknown |
||
| 19 | primary_target: TrueFalseUnknown |
||
| 20 | affinity_units: str |
||
| 21 | affinity_median: float |
||
| 22 | |||
| 23 | |||
| 24 | @dataclass |
||
| 25 | class G2pData: |
||
| 26 | inchikey: str |
||
| 27 | g2pid: int |
||
| 28 | name: str |
||
| 29 | type: str |
||
| 30 | approved: bool |
||
| 31 | pubchem_id: Optional[int] |
||
| 32 | interactions: List[G2pInteraction] |
||
| 33 | |||
| 34 | |||
| 35 | __all__ = ["G2pInteraction", "G2pData"] |
||
| 36 |