Open jychien opened 1 week ago
Hi @jychien, the squidpy reader functions will be deprecated eventually, since we use spatialdata-io for reading now. I would suggest to use the Visium reader from spatialdata-io which loads the data into a spatialdata object.
sdata = sd.visium("path/to/directory")
The anndata object with coordinates can be found under sdata.tables
, so you can continue to use squidpy as usal for analysis.
Description
When
tissue_positions.csv
rather thantissue_positions_list.csv
is in the spatial directory for a Visium dataset, the resulting AnnData object has:Minimal reproducible example
Traceback
It looks like this the issue could be that it should be
header=0
rather thanheader=1
in this line: https://github.com/scverse/squidpy/blob/945e127b0e690a6f926de8c3b6d7ed4c6b2ebae5/src/squidpy/read/_read.py#L87Version
squidpy 1.2.3 and later