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

Load 10xgenomics Visium data using scanpy #27

Closed
maiskovich opened this issue Nov 14, 2023 · 0 comments
Closed

Load 10xgenomics Visium data using scanpy #27

maiskovich opened this issue Nov 14, 2023 · 0 comments

Comments

@maiskovich
Copy link

Hello,

Thank you for sharing the package.

I am trying to load some Visium data following the tutorial. In there, I see that the data is loaded as adata1 = sdm.datasets.dataset.melanoma(), I thought that I could just do adata = sc.read_visium("visium_ov_orig") to load my own files(using a Visium h5 file, this can be replicated with this file ), but then, I am getting errors in other parts of the tutorial, it starts failing when I call:
sdm.extract_lr(adata, 'human', min_cell=3)
with the error:
pandas.errors.InvalidIndexError: Reindexing only valid with uniquely valued Index objects

Is there a different way to load this data? I tried checking the codebase and couldn't find a method that seemed more suitable.

Thank you

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

1 participant