Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visium observation with NaN metadata #906

Open
jychien opened this issue Oct 30, 2024 · 0 comments
Open

Visium observation with NaN metadata #906

jychien opened this issue Oct 30, 2024 · 0 comments
Assignees

Comments

@jychien
Copy link

jychien commented Oct 30, 2024

Description

When tissue_positions.csv rather than tissue_positions_list.csv is in the spatial directory for a Visium dataset, the resulting AnnData object has:

  • NaN in adata.obs array_row, array_col, and in_tissue
  • nan in adata.obsm[‘spatial’] for the first cell barcode in the tissue_positions.csv list.

Minimal reproducible example

Image

Traceback

It looks like this the issue could be that it should be header=0 rather than header=1 in this line:

header=1 if tissue_positions_file.name == "tissue_positions.csv" else None,

Version

squidpy 1.2.3 and later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants