You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been experimenting with this really nice package for the last few days, for aligning spatial transcriptomics and spatial proteomics slides. First within modality, but I'm also keen to experiment with multimodal alignment. I have come across a potential bug, that might be related to #798 where the cells seem to be completely shuffled after alignment.
This only occurs when the shape of the different slides that I am aligning are not the same. In addition, I get an Error about incompatible shapes when trying to align slides with the "star" policy. I believe these two things might be related, so I am putting both of them in the same issue, but happy to split them up if more convenient.
I would be thankful for any pointers or help on this!
frommoscotimportdatasetsfrommoscot.problems.spaceimportAlignmentProblemimportscanpyasscimportsquidpyassqadata=datasets.sim_align()
# add x coordinate to obs to visualise it later onadata.obs['x'] =adata.obsm['spatial'][:, 0]
# subsample adata to get slightly different number of cells for every batch# if we don't do this, the errors don't ocurr and everything behaves normallysc.pp.subsample(adata, fraction=0.99)
display(adata.obs.groupby('batch').count())
sq.pl.spatial_scatter(adata, shape=None, library_id="batch", color=["batch", 'x'])
thanks @hspitzer for reporting! Indeed it seems to be related to #798 . Either something changed in the way the indices are handled, or possibly it has to do with the scipy LinearOperator that might have undergone some changes.
Hi,
I've been experimenting with this really nice package for the last few days, for aligning spatial transcriptomics and spatial proteomics slides. First within modality, but I'm also keen to experiment with multimodal alignment. I have come across a potential bug, that might be related to #798 where the cells seem to be completely shuffled after alignment.
This only occurs when the shape of the different slides that I am aligning are not the same. In addition, I get an Error about incompatible shapes when trying to align slides with the "star" policy. I believe these two things might be related, so I am putting both of them in the same issue, but happy to split them up if more convenient.
I would be thankful for any pointers or help on this!
Here a reproducible example (adapted from the spatial alignment example:
This results in the following image:
Now, after the alignment all x coordinates are completely shuffled, even though the points look like they are aligned nicely
Secondly, here the error that ocurrs when trying the "star" policy
error message
The text was updated successfully, but these errors were encountered: