scverse / scverse/spatialdata-io

Unique cell_ID issue with cosmx reader

Open
#291 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
103
Forks
65
Avg merge
1h 8m
Merged PRs (30d)
3

Description

Hi, after having updated my spatialdata-io from version 0.1.4 to 0.1.7, I am having an issue with the cosmx reader to create a spatialdata object. Using the same data that I did not have an issue with using the older version, I am now getting an error that the cell_IDs are not unique.

This column does seem to only uniquely label cells per field of view (FOV), so indeed that column does not uniquely label each cell in the whole dataset.

Could I please get some help on using this latest version with this data, would you recommend I change these IDs to be unique across the whole dataset in each input file to satisfy this? Is this compatible with newer versions of CosMx output?

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CosMx reader and reproduce the cell_ID uniqueness error using the same data under spatialdata-io 0.1.7, comparing it with 0.1.4. Determine whether per-FOV identifiers are expected to load, and document or verify the required handling for data whose cell_ID values repeat across FOVs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.