Skip to content

Commit cbc5ba1

Browse files
committed
Cleanup inport a bit
1 parent 39929b4 commit cbc5ba1

1 file changed

Lines changed: 20 additions & 68 deletions

File tree

‎lineage/Lineage_collections.py‎

Lines changed: 20 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -24,82 +24,34 @@ def popout_single_lineages(lineages):
2424
return trimed_lineages
2525

2626

27-
# -- Lapatinib control
27+
def load_condition(filename):
28+
return [
29+
LineageTree(list_of_cells, E)
30+
for list_of_cells in import_exp_data(
31+
path=f"lineage/data/LineageData/{filename}.xlsx"
32+
)
33+
]
2834

2935

30-
lap01 = [
31-
LineageTree(list_of_cells, E)
32-
for list_of_cells in import_exp_data(
33-
path=r"lineage/data/LineageData/AU00601_A5_1_V5.xlsx"
34-
)
35-
]
36-
lap012 = [
37-
LineageTree(list_of_cells, E)
38-
for list_of_cells in import_exp_data(
39-
path=r"lineage/data/LineageData/AU00601_A5_2_V4.xlsx"
40-
)
41-
]
42-
lap02 = [
43-
LineageTree(list_of_cells, E)
44-
for list_of_cells in import_exp_data(
45-
path=r"lineage/data/LineageData/AU00701_A5_1_V4.xlsx"
46-
)
47-
]
48-
lap03 = [
49-
LineageTree(list_of_cells, E)
50-
for list_of_cells in import_exp_data(
51-
path=r"lineage/data/LineageData/AU00801_A5_1_V4.xlsx"
52-
)
53-
]
36+
# -- Lapatinib control
37+
lap01 = load_condition("AU00601_A5_1_V5")
38+
lap012 = load_condition("AU00601_A5_2_V4")
39+
lap02 = load_condition("AU00701_A5_1_V4")
40+
lap03 = load_condition("AU00801_A5_1_V4")
5441

5542
Lapatinib_Control = lap01 + lap012 + lap02 + lap03
5643
# used for when we want to writes states instead of phase lengths
5744
len_lp_cntr = [len(lap01), len(lap012), len(lap02), len(lap03)]
5845
lpt_cn_reps = [len(lap01 + lap012), len(lap02), len(lap03)]
59-
# -- LAPATINIB 25 uMolars
6046

61-
lapb63 = [
62-
LineageTree(list_of_cells, E)
63-
for list_of_cells in import_exp_data(
64-
path=r"lineage/data/LineageData/AU00601_B6_1_V4.xlsx"
65-
)
66-
]
67-
lapb632 = [
68-
LineageTree(list_of_cells, E)
69-
for list_of_cells in import_exp_data(
70-
path=r"lineage/data/LineageData/AU00601_B6_2_V4.xlsx"
71-
)
72-
]
73-
lapb64 = [
74-
LineageTree(list_of_cells, E)
75-
for list_of_cells in import_exp_data(
76-
path=r"lineage/data/LineageData/AU00701_B6_1_V4.xlsx"
77-
)
78-
]
79-
lapb642 = [
80-
LineageTree(list_of_cells, E)
81-
for list_of_cells in import_exp_data(
82-
path=r"lineage/data/LineageData/AU00701_B6_2_V4.xlsx"
83-
)
84-
]
85-
lapb65 = [
86-
LineageTree(list_of_cells, E)
87-
for list_of_cells in import_exp_data(
88-
path=r"lineage/data/LineageData/AU00801_B6_1_V4.xlsx"
89-
)
90-
]
91-
lapb652 = [
92-
LineageTree(list_of_cells, E)
93-
for list_of_cells in import_exp_data(
94-
path=r"lineage/data/LineageData/AU00801_B6_2_V4.xlsx"
95-
)
96-
]
97-
lapb653 = [
98-
LineageTree(list_of_cells, E)
99-
for list_of_cells in import_exp_data(
100-
path=r"lineage/data/LineageData/AU00801_B6_3_V4.xlsx"
101-
)
102-
]
47+
# -- LAPATINIB 25 uM
48+
lapb63 = load_condition("AU00601_B6_1_V4")
49+
lapb632 = load_condition("AU00601_B6_2_V4")
50+
lapb64 = load_condition("AU00701_B6_1_V4")
51+
lapb642 = load_condition("AU00701_B6_2_V4")
52+
lapb65 = load_condition("AU00801_B6_1_V4")
53+
lapb652 = load_condition("AU00801_B6_2_V4")
54+
lapb653 = load_condition("AU00801_B6_3_V4")
10355

10456

10557
Lapt25uM = lapb63 + lapb632 + lapb64 + lapb642 + lapb65 + lapb652 + lapb653

0 commit comments

Comments
 (0)