Open khpark00 opened 1 month ago
Hi @khpark00, thanks for reporting. If you could provide the traceback, that would be helpful (rlang::last_trace()).
Thank you for your consideration. Here's last_trace()
rlang::last_trace() <error/vctrs_error_subscript_oob> Error in
dplyr::rename()
: ! Can't rename columns that don't exist. ✖ Columncell
doesn't exist.Backtrace: ▆
- ├─SPATA2::asSPATA2(...)
- ├─SPATA2::asSPATA2(...)
- │ └─SPATA2 (local) .local(object, ...)
- │ └─Seurat::GetTissueCoordinates(object) %>% ...
- ├─dplyr::rename(., barcodes = cell, x_orig = x, y_orig = y)
- └─dplyr:::rename.data.frame(., barcodes = cell, x_orig = x, y_orig = y) Run rlang::last_trace(drop = FALSE) to see 18 hidden frames.
Unfortunately I cannot reproduce this error using the test dataset from our tutorial: https://themilolab.github.io/SPATA2/articles/package-compatibility.html.
Does that one work for you? If it works in your environment, feel free to share your dataset (or a subset) and I can troubleshoot.
Thanks, Simon
Unfortunately I cannot reproduce this error using the test dataset from our tutorial: https://themilolab.github.io/SPATA2/articles/package-compatibility.html.
Does that one work for you? If it works in your environment, feel free to share your dataset (or a subset) and I can troubleshoot.
Thanks, Simon
Hi @simonmfr, I met the same error when I tried to convert my seurat object (V4) into a SPATA2 object. I have uploaded my a
subset (one of the seurat_cluster) of my seurat spatial object for reproducing.
stobj_subset.zip
Best,
Hi, thanks. Did you try running the tutorial with the test dataset as suggested above? Best, Simon
Hi, thanks. Did you try running the tutorial with the test dataset as suggested above? Best, Simon
Hi, yes. I was able to successfully run the process with the test data, but it doesn't work when I use my own data . Best,
Hi, for some reason the object comes with differently formatted coordinates. It should work now. Can you please try after installing the dev branch via devtools::install_github("theMILOlab/SPATA2", "dev")
? The change will be included in the next release - thanks for reporting.
I'd like to convert my seurat object a (Seurat V5) into spata2 object, but it fails. Would you help how can I fix this problem? Error in
dplyr::rename()
: ! Can't rename columns that don't exist. ✖ Columncell
doesn't exist. Runrlang::last_trace()
to see where the error occurred.Best,