Open FrancescaDr opened 3 weeks ago
cell_metadata_sub = cell_metadata[cell_metadata['brain_section_label'] == 'Zhuang-ABCA-1.080'] cell_metadata_extended_sub = cell_metadata_extended[cell_metadata_extended['brain_section_label'] == 'Zhuang-ABCA-1.080']
adata_section80 = adata[adata.obs.index.isin(list(cell_metadata_sub.index))]
check if the indexes are in the same order first
then: adata_section80.obs = cell_metadata_extended_sub