I used Muon to analyse my CITE-seq data. During analysis, I changed the index name to add the sample information.
When I tried to save it to h5mu file, it shows
ValueError: DataFrame.index.name ('barcode') is also used by a column whose values are different. This is not supported. Please make sure the values are the same, or use a different name.
The code I run is mdata2.write('2024-09_Run3_mudata.h5ad')
Hi, I think I have solved the issue by changing one of the column name via mdata.obs.rename(columns={"barcode": "original barcode"}, inplace=True) . This could be successfully save and read.
Hi,
I used Muon to analyse my CITE-seq data. During analysis, I changed the index name to add the sample information.
When I tried to save it to h5mu file, it shows
ValueError: DataFrame.index.name ('barcode') is also used by a column whose values are different. This is not supported. Please make sure the values are the same, or use a different name.
The code I run is
mdata2.write('2024-09_Run3_mudata.h5ad')
The mdata2 information is
The mdata2.index is
Could you please help me with it?
Many thanks for your time.