Hello, I'm trying to build a 3D model using my own spatial slice information, the integration process is as follows, the slices have been aligned
adata_list_coords = [adata.obsm['align_spatial_3d'] for adata in adata_list]merged_data0 = anndata.concat(adata_list, axis=0)merged_data0.obsm['align_spatial_3d'] = np.concatenate(adata_list_coords, axis=0)
But when I try to build the model, the indexing problem is reported as an error
two_pc, plot_cmap = st.tdr.construct_pc(adata=merged_data0.copy(), spatial_key="align_spatial_3d", groupby=None, key_added="chip_id", colormap="rainbow")
I'd like to know what exactly is meant by indexing here, are the 3D coordinates corresponding to the cells? How do I go about troubleshooting this problem
two_pc,= st.tdr.construct_pc(adata=merged_data0.copy(), spatial_key="align_spatial_3d", groupby=None, key_added="chip_id", colormap="rainbow")
return one object would be ok
Hello, I'm trying to build a 3D model using my own spatial slice information, the integration process is as follows, the slices have been aligned
adata_list_coords = [adata.obsm['align_spatial_3d'] for adata in adata_list]
merged_data0 = anndata.concat(adata_list, axis=0)
merged_data0.obsm['align_spatial_3d'] = np.concatenate(adata_list_coords, axis=0)
But when I try to build the model, the indexing problem is reported as an errortwo_pc, plot_cmap = st.tdr.construct_pc(adata=merged_data0.copy(), spatial_key="align_spatial_3d", groupby=None, key_added="chip_id", colormap="rainbow")
I'd like to know what exactly is meant by indexing here, are the 3D coordinates corresponding to the cells? How do I go about troubleshooting this problem