Skip to content

Commit eedd761

Browse files
committed
create metadata utils and exe file
1 parent 8f3e508 commit eedd761

26 files changed

+42716
-15
lines changed

metadata/Get_metadata_from_csv_layout.ipynb

+21-14
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@
114114
},
115115
{
116116
"cell_type": "code",
117-
"execution_count": 53,
117+
"execution_count": 5,
118118
"metadata": {},
119119
"outputs": [
120120
{
121121
"name": "stdout",
122122
"output_type": "stream",
123123
"text": [
124-
"C:\\Users\\Fer\\Documents\\GitHub\\2022_09_09_LiveCellPainting_fossa_Cimini\\analysis\\2022_06_07_DILI\\2023_new_batch\\metadata\\layout_day2.xlsx\n",
125-
"layout_day2\n"
124+
"C:\\Users\\Fer\\Documents\\GitHub\\2022_09_09_LiveCellPainting_fossa_Cimini\\metadata\\layout\\2023_new_batch_DILI\\layout_day1.xlsx\n",
125+
"layout_day1\n"
126126
]
127127
}
128128
],
@@ -142,7 +142,7 @@
142142
},
143143
{
144144
"cell_type": "code",
145-
"execution_count": 54,
145+
"execution_count": 6,
146146
"metadata": {},
147147
"outputs": [],
148148
"source": [
@@ -152,14 +152,14 @@
152152
},
153153
{
154154
"cell_type": "code",
155-
"execution_count": 55,
155+
"execution_count": 7,
156156
"metadata": {},
157157
"outputs": [
158158
{
159159
"name": "stdout",
160160
"output_type": "stream",
161161
"text": [
162-
"['None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'Huh7 Aspirin 10 trt', 'Huh7 Aspirin 10 trt', 'Huh7 Aspirin 10 trt', 'Huh7 Aspirin 10 trt', 'Huh7 Aspirin 1 trt', 'Huh7 Aspirin 1 trt', 'Huh7 Aspirin 1 trt', 'Huh7 Aspirin 1 trt', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'None', 'None', 'Huh7 Cyclophosphamide 10 trt', 'Huh7 Cyclophosphamide 10 trt', 'Huh7 Cyclophosphamide 10 trt', 'Huh7 Cyclophosphamide 10 trt', 'Huh7 Cyclophosphamide 1 trt', 'Huh7 Cyclophosphamide 1 trt', 'Huh7 Cyclophosphamide 1 trt', 'Huh7 Cyclophosphamide 1 trt', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'None', 'None', 'Huh7 Orphenadrine 10 trt', 'Huh7 Orphenadrine 10 trt', 'Huh7 Orphenadrine 10 trt', 'Huh7 Orphenadrine 10 trt', 'Huh7 Orphenadrine 1 trt', 'Huh7 Orphenadrine 1 trt', 'Huh7 Orphenadrine 1 trt', 'Huh7 Orphenadrine 1 trt', 'Huh7 Lovastatin 1 trt', 'Huh7 Lovastatin 10 trt', 'None', 'None', 'Huh7 Amiodarone 10 trt', 'Huh7 Amiodarone 10 trt', 'Huh7 Amiodarone 10 trt', 'Huh7 Amiodarone 10 trt', 'Huh7 Amiodarone 1 trt', 'Huh7 Amiodarone 1 trt', 'Huh7 Amiodarone 1 trt', 'Huh7 Amiodarone 1 trt', 'Huh7 Lovastatin 1 trt', 'Huh7 Lovastatin 10 trt', 'None', 'None', 'Huh7 Lactose 10 negcon', 'Huh7 Lactose 10 negcon', 'Huh7 Lactose 10 negcon', 'Huh7 Lactose 10 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Lovastatin 1 trt', 'Huh7 Lovastatin 10 trt', 'None', 'None', 'Huh7 Etoposide 10 trt', 'Huh7 Etoposide 10 trt', 'Huh7 Etoposide 10 trt', 'Huh7 Etoposide 10 trt', 'Huh7 Etoposide 1 trt', 'Huh7 Etoposide 1 trt', 'Huh7 Etoposide 1 trt', 'Huh7 Etoposide 1 trt', 'Huh7 Lovastatin 1 trt', 'Huh7 Lovastatin 10 trt', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None']\n"
162+
"['None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'Huh7 Amiodarone 1 trt', 'Huh7 Amiodarone 1 trt', 'Huh7 Amiodarone 1 trt', 'Huh7 Amiodarone 1 trt', 'Huh7 Amiodarone 10 trt', 'Huh7 Amiodarone 10 trt', 'Huh7 Amiodarone 10 trt', 'Huh7 Amiodarone 10 trt', 'Huh7 Cyclophosphamide 1 trt', 'Huh7 Cyclophosphamide 10 trt', 'None', 'None', 'Huh7 Lovastatin 1 trt', 'Huh7 Lovastatin 1 trt', 'Huh7 Lovastatin 1 trt', 'Huh7 Lovastatin 1 trt', 'Huh7 Lovastatin 10 trt', 'Huh7 Lovastatin 10 trt', 'Huh7 Lovastatin 10 trt', 'Huh7 Lovastatin 10 trt', 'Huh7 Cyclophosphamide 1 trt', 'Huh7 Cyclophosphamide 10 trt', 'None', 'None', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Non-treated 0 negcon', 'Huh7 Cyclophosphamide 1 trt', 'Huh7 Cyclophosphamide 10 trt', 'None', 'None', 'Huh7 Etoposide 1 trt', 'Huh7 Etoposide 1 trt', 'Huh7 Etoposide 1 trt', 'Huh7 Etoposide 1 trt', 'Huh7 Etoposide 10 trt', 'Huh7 Etoposide 10 trt', 'Huh7 Etoposide 10 trt', 'Huh7 Etoposide 10 trt', 'Huh7 Cyclophosphamide 1 trt', 'Huh7 Cyclophosphamide 10 trt', 'None', 'None', 'Huh7 Orphenadrine 1 trt', 'Huh7 Orphenadrine 1 trt', 'Huh7 Orphenadrine 1 trt', 'Huh7 Orphenadrine 1 trt', 'Huh7 Orphenadrine 10 trt', 'Huh7 Orphenadrine 10 trt', 'Huh7 Orphenadrine 10 trt', 'Huh7 Orphenadrine 10 trt', 'Huh7 Lactose 10 negcon', 'Huh7 Lactose 10 negcon', 'None', 'None', 'Huh7 Aspirin 1 trt', 'Huh7 Aspirin 1 trt', 'Huh7 Aspirin 1 trt', 'Huh7 Aspirin 1 trt', 'Huh7 Aspirin 10 trt', 'Huh7 Aspirin 10 trt', 'Huh7 Aspirin 10 trt', 'Huh7 Aspirin 10 trt', 'Huh7 Lactose 10 negcon', 'Huh7 Lactose 10 negcon', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None']\n"
163163
]
164164
}
165165
],
@@ -176,16 +176,25 @@
176176
},
177177
{
178178
"cell_type": "code",
179-
"execution_count": 56,
179+
"execution_count": 29,
180180
"metadata": {},
181-
"outputs": [],
181+
"outputs": [
182+
{
183+
"name": "stdout",
184+
"output_type": "stream",
185+
"text": [
186+
"['Huh7', 'Amiodarone', '1', 'trt']\n"
187+
]
188+
}
189+
],
182190
"source": [
183-
"metadata_cols = [\"well_position\", \"cell_type\", \"compound\", \"concentration_uM\", \"control_type\"]"
191+
"# metadata_cols = [\"well_position\", \"cell_type\", \"compound\", \"concentration_uM\", \"control_type\"]\n",
192+
"metadata_cols = metadata_utils.get_example_to_name_metadata_cols(samples)"
184193
]
185194
},
186195
{
187196
"cell_type": "code",
188-
"execution_count": 57,
197+
"execution_count": 30,
189198
"metadata": {},
190199
"outputs": [],
191200
"source": [
@@ -203,13 +212,11 @@
203212
},
204213
{
205214
"cell_type": "code",
206-
"execution_count": 58,
215+
"execution_count": 33,
207216
"metadata": {},
208217
"outputs": [],
209218
"source": [
210-
"platemap_column_title = \"plate_map_name\"\n",
211-
"\n",
212-
"metadata_cols.insert(0, platemap_column_title)\n",
219+
"metadata_cols.insert(0, \"plate_map_name\")\n",
213220
"sublist_add_platemap = [[file_name] + sublist for sublist in sublist]"
214221
]
215222
},
590 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)