Open Quentin-bioinfo opened 2 months ago
I posted about a similar issue. The work around of that was omitting split_pattern
Unfortunately, that leads to NaNs in my sample _id and cell _type column.
Could this be due to the pandas 2.0?
I think that the tuto isn't clear for that part. But i was able to move forward by adding the metadata to the individual cystopic object and only then merge it.
Can you share the code how you did it?
Describe the bug After creating the citopic objects for each samples and merge it, i want to use the function cistopic_obj.add_cell_data(cell_data, split_pattern='-').
I get an error saying "Reindexing only valid with uniquely valued Index objects".
But there is no duplicated index in my cell data annotation. when I did the pre processing of the scRNA seq part I used: matrix.obs_names_make_unique() and also try to add : matrix.obsnames = [f"{idx}{sample}" for idx in matrix.obs_names] before to concat all the samples together to create the object I used go clusterize and generate the cell data annotation.
I don't see where that error could come from ?
To Reproduce
Error output