# Convert anndata to seurat (spatial)

**URL:** <https://discourse.scverse.org/t/convert-anndata-to-seurat-spatial/3644>\
**Category:** anndata\
**Created:** [May 9, 2025, 3:54pm UTC](https://discourse.scverse.org/t/convert-anndata-to-seurat-spatial/3644 "2025-05-09T15:54:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![npont](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@npont](https://discourse.scverse.org/u/npont)\
**Post date:** [May 9, 2025, 3:54pm UTC](https://discourse.scverse.org/t/convert-anndata-to-seurat-spatial/3644/1 "2025-05-09T15:54:15Z")

</div>

Hi there,  
I am struggling to convert my anndata object to Seurat properly.  
I made a StarDist segmentation using scanpy, creating a anndata object (which is basically a segmented visium HD object) and I now want to use it on Seurat to perform downstream analysis.

Did anyone went through that yet?

Thanks a bunch!

---

<div class="post-metadata">

**Author:** ![ttreis](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/ttreis/32/1186_2.png) [@ttreis](https://discourse.scverse.org/u/ttreis)\
**Post date:** [May 9, 2025, 4:08pm UTC](https://discourse.scverse.org/t/convert-anndata-to-seurat-spatial/3644/2 "2025-05-09T16:08:19Z")

</div>

Hey npont,

I recommend to use SpatialData instead of AnnData for anything spatial. Then you can segment using Squidpy and SOPA and probably also perform a good chunk of your downstream analysis.
