When using a mtx file to input the expression data, squidpy fails to match the tissue_positions_list.csv data to the file. I believe this is an issue due to how the file is read in, specifically since it utilizes read_mtx from the anndata package. Since the cell barcodes aren't contained in the mtx file, and instead in the barcodes.tsv.gz file, when the code tries to match the indices from tissue_positions_list.csv, none of them are contained in the anndata object. This leads to all the fields in the filled as nan.
Description
When using a mtx file to input the expression data, squidpy fails to match the
tissue_positions_list.csv
data to the file. I believe this is an issue due to how the file is read in, specifically since it utilizesread_mtx
from the anndata package. Since the cell barcodes aren't contained in the mtx file, and instead in thebarcodes.tsv.gz
file, when the code tries to match the indices fromtissue_positions_list.csv
, none of them are contained in the anndata object. This leads to all the fields in the filled asnan
....
Minimal reproducible example
Version
1.4.1
...