scverse / scverse/spatialdata

PointsModel warning

Open
#1,098 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
394
Forks
95
Avg merge
4d 3h
Merged PRs (30d)
7

Description

Hello!

I got this warning when running:

sdata = sdio.xenium(
    "/path/to/my/folder",
    nucleus_boundaries=False,
    cells_boundaries=False,
)

WARNING  The `feature_key` column feature_name is categorical with unknown categories. Please ensure the categories
         are known before calling `PointsModel.parse()` to avoid significant performance implications due to the   
         need for dask to compute the categories. If you did not use PointsModel.parse() explicitly in your code   
         (e.g. this message is coming from a reader in `spatialdata_io`), please report this finding.

It said to report this finding.

Thank you!

  • OS: macOS
  • Context: loading data from Google Drive folder

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 by reproducing the warning with the shown sdata.xenium call and the Google Drive folder context. Read the PointsModel.parse() path and the spatialdata_io reader mentioned in the warning; done means identifying why feature_name has unknown categories and confirming the warning no longer occurs or is appropriately handled.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.