0
|
1 #!/usr/bin/env python3
|
|
2
|
|
3
|
|
4 class Phenotype():
|
|
5 """ A Phenotype object describes the antibiotics a feature/gene causes
|
|
6 resistance and susceptibility against.
|
|
7 unique_id: the id is used to locate the specified phenotype.
|
|
8 phenotype: Tuple of antibiotics that gene causes resistance toward.
|
|
9 ab_class: Class of resistance (e.g. Beta-Lactamase).
|
|
10 pub_phenotype: Tuple of published resistance (antibiotics).
|
|
11 pmid: Tuple of PubMed IDs of publications presenting resistance and
|
|
12 susceptibility.
|
|
13 susceptibility: Tuple of antibiotics that the gene is known to be
|
|
14 susceptibil towards.
|
|
15 gene_class: resistance gene class (e.g. class D)
|
|
16 notes: String containing other information on the resistance gene.
|
|
17 species: Species exceptions, where resistance is not observed. NOTE:
|
|
18 This information is not yet used for anything.
|
|
19 """
|
|
20 def __init__(self, unique_id, phenotype, ab_class, sug_phenotype,
|
|
21 pub_phenotype, pmid, susceptibile=(), gene_class=None,
|
|
22 notes="", species=None, res_mechanics=None):
|
|
23 self.unique_id = unique_id
|
|
24 self.phenotype = phenotype
|
|
25 self.ab_class = ab_class
|
|
26
|
|
27 self.sug_phenotype = sug_phenotype
|
|
28 self.pub_phenotype = pub_phenotype
|
|
29 self.pmid = pmid
|
|
30 self.susceptibile = susceptibile
|
|
31 self.gene_class = gene_class
|
|
32 self.notes = notes
|
|
33 self.species = species
|