@@ -171,17 +171,17 @@ def gen_load_spatial_jobs(caf, mode_dictionary = {}, load_raw=True):
171
171
visium_tissue_positions_file = None
172
172
visium_scalefactors_file = None
173
173
spatial_filetype = caf ['spatial_filetype' ][nn ]
174
- if "vpt_cell_by_gene" in caf [ nn ] .columns :
174
+ if "vpt_cell_by_gene" in caf .columns :
175
175
if pd .notna (caf ['vpt_cell_by_gene' ][nn ]):
176
176
vpt_cell_by_gene = caf ['vpt_cell_by_gene' ][nn ]
177
177
else :
178
178
vpt_cell_by_gene = None
179
- if "vpt_cell_metadata" in caf [ nn ] .columns :
179
+ if "vpt_cell_metadata" in caf .columns :
180
180
if pd .notna (caf ['vpt_cell_metadata' ][nn ]):
181
181
vpt_cell_metadata = caf ['vpt_cell_metadata' ][nn ]
182
182
else :
183
183
vpt_cell_metadata = None
184
- if "vpt_cell_boundaries" in caf [ nn ] .columns :
184
+ if "vpt_cell_boundaries" in caf .columns :
185
185
if pd .notna (caf ['vpt_cell_boundaries' ][nn ]):
186
186
vpt_cell_boundaries = caf ['vpt_cell_boundaries' ][nn ]
187
187
else :
@@ -192,25 +192,25 @@ def gen_load_spatial_jobs(caf, mode_dictionary = {}, load_raw=True):
192
192
vpt_cell_boundaries = None
193
193
spatial_filetype = caf ['spatial_filetype' ][nn ]
194
194
#counts file
195
- if "visium_feature_bc_matrix" in caf [ nn ] .columns :
195
+ if "visium_feature_bc_matrix" in caf .columns :
196
196
if pd .notna (caf ["visium_feature_bc_matrix" ][nn ]):
197
197
visium_feature_bc_matrix = caf ["visium_feature_bc_matrix" ][nn ]
198
198
else :
199
199
visium_feature_bc_matrix = None
200
200
# fullres image
201
- if "visium_fullres_image_file" in caf [ nn ] .columns :
201
+ if "visium_fullres_image_file" in caf .columns :
202
202
if pd .notna (caf ["visium_fullres_image_file" ][nn ]):
203
203
visium_fullres_image_file = caf ["visium_fullres_image_file" ][nn ]
204
204
else :
205
205
visium_fullres_image_file = None
206
206
# tissue position
207
- if "visium_tissue_positions_file" in caf [ nn ] .columns :
207
+ if "visium_tissue_positions_file" in caf .columns :
208
208
if pd .notna (caf ["visium_tissue_positions_file" ][nn ]):
209
209
visium_tissue_positions_file = caf ["visium_tissue_positions_file" ][nn ]
210
210
else :
211
211
visium_tissue_positions_file = None
212
212
# scalefactor
213
- if "visium_scalefactors_file" in caf [ nn ] .columns :
213
+ if "visium_scalefactors_file" in caf .columns :
214
214
if pd .notna (caf ["visium_scalefactors_file" ][nn ]):
215
215
visium_scalefactors_file = caf ["visium_scalefactors_file" ][nn ]
216
216
else :
0 commit comments