azimuth icon indicating copy to clipboard operation
azimuth copied to clipboard

Seurat v5 not compatible with Azimuth

Open chunjie-sam-liu opened this issue 7 months ago • 0 comments

I tried to run the command below and get the error becuase of compatibility with Seurat v5

Azimuth::RunAzimuth(
  query = "PBMC_10K_output/filtered_feature_bc_matrix.h5",
  reference = "pbmcref"
)
Error in validObject(object = object) : 
  invalid class “Assay5” object: Layers must be two-dimensional objects
Calls: <Anonymous> ... .CreateStdAssay.list -> LayerData<- -> LayerData<-.Assay5 -> validObject

The error was caused by the SeuratObject:::CreateSeuratObject.default when Azimuth::LoadReference to load the reference cell map. https://github.com/satijalab/azimuth/blob/243ee5db80fcbffa3452c944254a325a3da2ef9e/R/azimuth.R#L52

For the Seurat version less than v5, it is ok but if the Seurat greater than v5, it will result in invalid class “Assay5” object: Layers must be two-dimensional objects.

chunjie-sam-liu avatar Jul 01 '24 22:07 chunjie-sam-liu