Closed hcjarnagin closed 5 months ago
Hi @hcjarnagin,
I think the issue is likely with your version of Nebulosa. Can you update to latest dev branch of scCustomize ("release/2.0.0") and then run BiocManager::install("Nebulosa")
to update Nebulosa and see if that fixes issue. If not can you provide reproducible example with pbmc data from SeuratData package? I'm unable to replicate issue on my end.
Best, Sam
library(tidyverse)
library(Seurat)
#> Loading required package: SeuratObject
#> Loading required package: sp
#>
#> Attaching package: 'SeuratObject'
#> The following objects are masked from 'package:base':
#>
#> intersect, t
library(scCustomize)
#> scCustomize v2.1.2.9063
#> If you find the scCustomize useful please cite.
#> See 'samuel-marsh.github.io/scCustomize/articles/FAQ.html' for citation info.
pbmc <- pbmc3k.SeuratData::pbmc3k.final
pbmc <- suppressMessages(UpdateSeuratObject(pbmc))
#> Warning: Assay RNA changing from Assay to Assay
#> Warning: Graph RNA_nn changing from Graph to Graph
#> Warning: Graph RNA_snn changing from Graph to Graph
#> Warning: DimReduc pca changing from DimReduc to DimReduc
#> Warning: DimReduc umap changing from DimReduc to DimReduc
#> Warning: Adding a command log without an assay associated with it
#> Adding a command log without an assay associated with it
Plot_Density_Custom(pbmc, "CD14")
Created on 2024-05-14 with reprex v2.1.0
Thank you so much for your suggestion! Reverting scCustomize back to 2.0.0 worked. I did have to download XQuartz to my computer and restart R to ensure Cairo was functional, after reverting this package. Thanks again for the great package and the helpful response! Seems to be fully functional now.
All scCustomize/Nebulosa Plots are not printing to my R version. If I use ggplot2 versions > 3.4.4 I receive this error:
Error in
Plot_Density_Custom()
: ! Due to error in Nebulosa package and ggplot2 v3.5.0 Plot_Density_Custom functionality is currently restricted to ggplot v3.4.4 or lower.If I use ggplot2 versions <= 3.4.4, the plots simply print to a blank screen. I can save them as an object and see the elements in the object lists, but can't print to a PDF, Tiff, or even make it visible.
Do you have any suggestions?