Closed aadimator closed 1 week ago
I've been able to solve this error by adding the following lines before integration:
data_list = []
for library_id, file_path in zip(library_ids, files):
data = st.io.read_h5ad(file_path=file_path, bin_type='cell_bins')
# Had to this, otherwise it was throwing an error during integration
data.adata.obs['orig.ident'] = library_id
data.adata.var_names_make_unique()
data.adata.obs_names_make_unique()
data.tl.raw_checkpoint()
data_list.append(data)
# Create MSData object
ms_data = MSData(_data_list=data_list, _names=library_ids, _relationship='other', _var_type='intersect')
ms_data.integrate()
Hi, I've been trying to follow the official Multi-Sample tutorial to read in my
adjusted.cellbin.h5ad
files. And I'm getting the following error when run themodel.integrate()
part:Also, when reading in the data, we can see that the genes aren't being
intersected
as they were in the demo example: I thought that they are supposed to be just the common genes in this step, as in the official example.Here's my full code:
I'm using Windows 11, and I've installed the
Stereopy v1.4.0
.