-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.py
57 lines (48 loc) · 1.78 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class GrowthData(db.Model):
id = db.Column(db.Integer, primary_key=True)
plateid = db.Column(db.String(50))
specie = db.Column(db.String(50))
well = db.Column(db.String(10))
compound = db.Column(db.String(100))
replicates = db.Column(db.String(10))
signal_data = db.Column(db.PickleType)
class TraitData(db.Model):
id = db.Column(db.Integer, primary_key=True)
strainid = db.Column(db.String(50))
plateid = db.Column(db.String(50))
specie = db.Column(db.String(50))
metadata_mods = db.Column(db.String(100))
project = db.Column(db.String(50))
well = db.Column(db.String(10))
plate = db.Column(db.String(50))
media = db.Column(db.String(50))
growth = db.Column(db.Integer)
compound = db.Column(db.String(100))
desc = db.Column(db.String(100))
strain = db.Column(db.String(50))
phylo = db.Column(db.String(50))
mlst = db.Column(db.String(50))
class KineticData(db.Model):
id = db.Column(db.Integer, primary_key=True)
plateid = db.Column(db.String(50))
strainid = db.Column(db.String(50))
strain = db.Column(db.String(50))
specie = db.Column(db.String(50))
metadata_mods = db.Column(db.String(100))
project = db.Column(db.String(50))
well = db.Column(db.String(10))
plate = db.Column(db.String(50))
media = db.Column(db.String(50))
replicates = db.Column(db.String(10))
compound = db.Column(db.String(100))
keggid = db.Column(db.String(100))
casid = db.Column(db.String(100))
maxresp = db.Column(db.Float)
maxresprate = db.Column(db.Float)
timetill = db.Column(db.Float)
auc = db.Column(db.Float)
growth = db.Column(db.Float)
mlst = db.Column(db.String(50))
phylo = db.Column(db.String(50))