labsyspharm / scimap

Spatial Single-Cell Analysis Toolkit
https://scimap.xyz/
MIT License
71 stars 24 forks source link

Add spatial obsm to adata on MCMICRO loading #66

Open adamjtaylor opened 1 year ago

adamjtaylor commented 1 year ago

This PR adds the spatial OBSM to the data object created by the sm.pp.mcmicro_to_scimap function, pulling coordinates from X_centroid and Y_centroid.

This allows for scanpy visualizations such as sc.pl.embedding(adata, basis = 'spatial', color = 'leiden') to be run natively.

image