Passed
Push — main ( 9813db...5006f2 )
by Douglas
01:43
created

mandos.model.apis.g2p_support.g2p_data   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 29
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 0
1
from dataclasses import dataclass
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
from typing import List, Optional
3
4
from mandos.model.utils import TrueFalseUnknown
5
6
7
@dataclass
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
best-practice introduced by
Too many instance attributes (13/7)
Loading history...
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
0 ignored issues
show
introduced by
Missing class docstring
Loading history...
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