satijalab / azimuth

A Shiny web app for mapping datasets using Seurat v4
https://satijalab.org/azimuth
GNU General Public License v3.0
108 stars 31 forks source link

RunAzimuth fails with tonsilref #162

Closed RobJackson28 closed 1 year ago

RobJackson28 commented 1 year ago

I get the following error when trying to use RunAzimuth() to annotate the tutorial data pbmcsca using the tonsilref reference. I get this same error with my own Seurat data when using tonsilref. Other references such as pbmcref and lungref run successfully for the tutorial data as well as my own. Any help is greatly appreciated!

> pbmcsca <- RunAzimuth(pbmcsca, reference = "tonsilref")
Warning: Overwriting miscellanous data for model
Warning: Adding a dimensional reduction (refUMAP) without the associated assay being present
Error in validObject(object = value) : 
  invalid class "DimReduc" object: Keys must match the pattern '^[a-zA-Z][a-zA-Z0-9]*_$'
> sessionInfo()
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)

Matrix products: default

locale:
[1] LC_COLLATE=English_Canada.utf8  LC_CTYPE=English_Canada.utf8    LC_MONETARY=English_Canada.utf8 LC_NUMERIC=C                   
[5] LC_TIME=English_Canada.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] lungref.SeuratData_2.0.0   patchwork_1.1.2            pbmcref.SeuratData_1.0.0   pbmcsca.SeuratData_3.0.0   tonsilref.SeuratData_1.0.0
 [6] SeuratData_0.2.2.9001      Azimuth_0.4.6.9004         shinyBS_0.61.1             Seurat_4.9.9.9050          SeuratObject_4.9.9.9086   
[11] sp_2.0-0 
Gesmira commented 1 year ago

Hi, Thanks for reporting this! I've pushed a fix to the Seurat5 branch of Azimuth. Please restart your R session and reinstall with: remotes::install_github("satijalab/azimuth", "seurat5")

RobJackson28 commented 1 year ago

Works now, thanks!

shivUSF commented 6 months ago

I am Having the same issue again while running - RunAzimuth(bmmw, reference = "bonemarrowref") Is this 'remotes::install_github("satijalab/azimuth", "seurat5")' still working?