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

AnnData as input to setup.srt() #5

Open
EST09 opened this issue Jun 20, 2024 · 1 comment
Open

AnnData as input to setup.srt() #5

EST09 opened this issue Jun 20, 2024 · 1 comment

Comments

@EST09
Copy link

EST09 commented Jun 20, 2024

Hi,

Thank you for this package. It looks great and I'm really looking forward to using it!

I'm struggling a little with setting up my srt object with an anndata input. I load the anndata from a h5ad file
Screenshot 2024-06-20 at 11 35 52

and then try

dot.srt <- setup.srt(srt_data=ex_anndata$X, srt_coords=ex_anndata$obsm["spatial"])
My ex_anndata$X seems to be a matrix

Screenshot 2024-06-20 at 11 36 34

and my coordinates from ex_anndata$obsm["spatial"] are the same length as my matrix

Screenshot 2024-06-20 at 11 37 08 Screenshot 2024-06-20 at 11 37 36

Please could I check if there's something I'm missing?

I can load from a standard xenium output using the Seurat LoadXenium() function but I've changed the segmentation and saved to a xenium experiment format with sopa, and then Seurat is having trouble with the cell_feature_matrix.zarr.zip files which is why I've gone the h5ad anndata route.

Thank you,

Best wishes,
Emily

@EST09 EST09 closed this as completed Jun 20, 2024
@EST09 EST09 reopened this Jun 20, 2024
@EST09
Copy link
Author

EST09 commented Jun 20, 2024

sorry I'd supplied srt_data it as spot x gene - transposed it now. 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