Spatial Analysis (Vignette Error) #9608
-
|
Hi, I am currently in the process of learning ST analysis and was following the vignette however, the FindSpatiallyVariableFeatures function returns the following error: In dist(x = pos) : NAs introduced by coercion. Continuing with the vignette returns the following error: Error in xtfrm.data.frame(x) : cannot xtfrm data frames I tried troubleshooting but cannot seem to find a solution and was wondering if this is due to changes from Seurat 3 to 5, rendering some functions deprecated. Any help to resolve this would be appreciated!! Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Same problem here. @SCHansmann did you solved the issue? |
Beta Was this translation helpful? Give feedback.
-
|
Hello @SCHansmann and @smzt, thank you for reporting this issue. Are you encountering the Error in xtfrm.data.frame(x) : cannot xtfrm data frames when running the first FindSpatiallyVariableFeatures call in the vignette? (the stxBrain object): Would you also mind providing your sessionInfo() when encountering the error? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @YoukaiFromAccounting, Here is what I saw:
Backtrace:
Thanks for your help. Regards, Sheila |
Beta Was this translation helpful? Give feedback.
-
|
@INCLIVA-bioinformatics Great, thanks for confirming that deprecated SeuratObject functions were the cause of the issue. @SCHansmann would you be able to try updating your Seurat and SeuratObject and see if that solves the problem? Be sure to restart your R session to ensure that no existing package installations conflict with the updated packages. |
Beta Was this translation helpful? Give feedback.
@INCLIVA-bioinformatics Great, thanks for confirming that deprecated SeuratObject functions were the cause of the issue. @SCHansmann would you be able to try updating your Seurat and SeuratObject and see if that solves the problem?
Be sure to restart your R session to ensure that no existing package installations conflict with the updated packages.