Open YingXu-FDU opened 3 months ago
Hi @YingXu-FDU,
transformSeuratToSpata
is deprecated, please use asSPATA2()
as described in our documentation: https://themilolab.github.io/SPATA2/articles/spata-v2-platform-compatibility.html
For initializing, please update SPATA2 and confuns, and try again.
Hi there, Im here to ask about the errors about the ’transformSeuratToSpata‘ function. Below is my codes and packages version if you need. Seurat Version 5.0. SPATA2 Version 2.0.4.
Here is the code. spata_obj <- initiateSpataObject_CountMtr(coords_df = coords_df,count_mtr = sce@assays$Spatial$counts, sample_name = "Name")
Here is the error messege. 21:49:38 Optimization finished 21:49:39 Setting up new
spata2
object. 21:49:39 Neither object of classHistologyImaging
nor image provivded. Slot @images remains empty. 21:49:39 Initiation finished. Error in getActiveMatrixName(object, verbose = FALSE) : Please set an active matrix withsetActivenMatrix()
It seems that i should set the active matrix for the spata2 object, however, i couldnt run the initiateSpataObject_CountMtr to construct the object. how can i fix it? Many thanks.