Closed GokceOGUZ closed 9 months ago
Hi, you can do this like below:
anno = reading from the excel you mentioned as a dataframe
anno.rename({'ID': 'bins', 'CellType': 'group'}, inplace=True)
data.tl.result['anno'] = anno
data.tl.reset_key_record('cluster', 'anno')
I have an excel file with 118,443 rows & 2 columns. 1st column is the BinID, 2nd column is the cell type annotation. Here is an example:![image](https://github.com/STOmics/Stereopy/assets/22001565/2f8d8724-76c0-4edd-8118-43952f4e49b3)
I would like to add this metadata to my Stereopy object which has 118,443 bins & 37 clusters.
I would be really glad if you could suggest me a solution.