-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadModifiedCellstates.py
62 lines (44 loc) · 1.69 KB
/
LoadModifiedCellstates.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
57
58
59
60
61
62
import AddProteins as App
from RunAndCompress import GetSubDir
def not_another_main(nframes,lambd):
datafolders = []
rootdir = "/Users/Medina/cellmodeller/data"
datafolders,datafiles,folders = GetSubDir(rootdir)
startframe = 0
'''
foldername = sys.argv[1]
startframe = sys.argv[2]
nframes = sys.argv[3]
dt = sys.argv[4] #There's a bit of trouble with this
gridsize = sys.argv[5]
forwards = sys.argv[6]
'''
datafolders,datafiles,folders = GetSubDir(rootdir)
i = 0
for simulation in datafiles:
print 'Loading and running '+ datafolders[i]
cellstates,lineages = App.loadPickle_pro(simulation,startframe,nframes,1,True)
cellstates = App.add_radius(cellstates)
#cellstates = App.add_protein_pickles(simulation,startframe,nframes,lambd = lambd)
#cellstates_reordered = [cellstates[t]['cellStates'] for t in range(nframes)]
return cellstates
def load_unmod(nframes):
datafolders = []
rootdir = "/Users/Medina/cellmodeller/data"
datafolders,datafiles,folders = GetSubDir(rootdir)
startframe = 0
'''
foldername = sys.argv[1]
startframe = sys.argv[2]
nframes = sys.argv[3]
dt = sys.argv[4] #There's a bit of trouble with this
gridsize = sys.argv[5]
forwards = sys.argv[6]
'''
datafolders,datafiles,folders = GetSubDir(rootdir)
i = 0
for simulation in datafiles:
print 'Loading and running '+ datafolders[i]
cellstate,lineage = App.loadPickle_pro(simulation,startframe,nframes,1,True)
cellstate = [cellstates[t]['cellStates'] for t in range(nframes)]
return cellstate