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

Error converting Giotto to Seurat object #749

Open
jennie-ui opened this issue Sep 3, 2023 · 1 comment
Open

Error converting Giotto to Seurat object #749

jennie-ui opened this issue Sep 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jennie-ui
Copy link

Describe the Error

Hello, I'm trying to convert a Giotto object into a Seurat object to calculate module scores. However, I've encountered errors when trying different input parameters. Has anyone encountered a similar issue beforet? Your help would be greatly appreciated. Thank you!

Error Message

Below is the code I used, along with the corresponding error messages:

> xenium_seurat <- giottoToSeurat(xenium_gobj)
Error in if (nrow(avail_sn) > 0) { : argument is of length zero
> xenium_seurat <- giottoToSeurat(xenium_gobj, spat_unit = 'rna')
Error in if (nrow(raw_exist) > 0) { : argument is of length zero
> xenium_seurat <- giottoToSeurat(xenium_gobj, spat_unit = 'cell')
Error in if (nrow(avail_sn) > 0) { : argument is of length zero

Giotto object information

Here is my Giotto object, which contains Xenium data:

> xenium_gobj
An object of class giotto 
>Active spat_unit:  cell 
>Active feat_type:  rna 
[SUBCELLULAR INFO]
polygons      : cell nucleus 
features      : rna blank_code neg_code neg_probe 
[AGGREGATE INFO]
expression -----------------------
  [cell][rna] raw normalized scaled
spatial locations ----------------
  [cell] raw
  [nucleus] raw
dim reduction --------------------
  [cell][rna] pca harmony umap
nearest neighbor networks --------
  [cell][rna] sNN.umap

Feel free to reach out if you have any ideas on how to resolve this issue!

@jennie-ui jennie-ui added the bug Something isn't working label Sep 3, 2023
@tsoruu
Copy link

tsoruu commented Sep 19, 2023

A Giotto Suite user here, not a Giotto Suite developer. Found the same bug when converting a Giotto Single Cell object to Seurat. Same Error too. I'll look up the function code in my free time. For now, I'm following the Seurat Single Cell Tutorial and modifying some parameters to suit my needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants