Closed AndrewHardigan closed 8 months ago
Hi Saket,
I can confirm that removing matrixStats and following your above fix in the other issue thread to install matrixStats version 1.1.0 has fixed this issue.
Thank you very much for your help! (and especially for being so quick with the fix!)
Best regards
-Drew
Hi @AndrewHardigan, On digging deeper, this seems to be coming from glmGamPoi. My recommendation would be to update to latest Bioconductor:
BiocManager::install(version = "3.18")
which should fix everything (even if you have matrixStats
1.2)
downgrade matrixStats also works for me
Hi, I tried the above suggestions but still facing the issue while running singleR. Can you please help me to resolve the error. ref <- celldex::HumanPrimaryCellAtlasData() colData(ref) results <- SingleR (test = as.SingleCellExperiment(Sample.combined), ref = ref, labels = ref$label.main, useNames = TRUE) results
Error: useNames = NA is defunct. Instead, specify either useNames = TRUE or useNames = FALSE. Traceback:
packageVersion("matrixStats") [1] ‘1.1.0’ packageVersion("BiocManager") [1] ‘1.30.22’
I got the same error code working with Single R, and downgrade matrixStats doesn't work for me.
I tried to update the matrixStats package, and everything was resolved while running a single R package.
I tried to update the matrixStats package, and everything was resolved while running a single R package.
Update to which version of matrixStats?
Thank you
[1] sessioninfo_1.2.2 viridis_0.6.5
[3] viridisLite_0.4.2 scRNAseq_2.12.0
[5] SingleCellExperiment_1.20.1 textshaping_0.3.7
[7] EnhancedVolcano_1.16.0 ggrepel_0.9.5
[9] magrittr_2.0.3 tidyr_1.3.1
[11] wrapr_2.1.0 celldex_1.8.0
[13] SingleR_2.0.0 SummarizedExperiment_1.28.0
[15] Biobase_2.58.0 GenomicRanges_1.50.2
[17] GenomeInfoDb_1.34.9 IRanges_2.32.0
[19] S4Vectors_0.36.2 BiocGenerics_0.44.0
[21] MatrixGenerics_1.10.0 matrixStats_1.1.0
[23] bonemarrowref.SeuratData_1.0.0 SeuratData_0.2.2.9001
[25] RColorBrewer_1.1-3 ggplot2_3.5.0
[27] patchwork_1.2.0 Seurat_5.0.0
[29] SeuratObject_5.0.1 sp_2.1-4
[31] dplyr_1.1.4
After installing the specific package version, close and restart RStudio to ensure the changes take effect.
hi there,
Thank you for your reply.
I still got a warning message.
Warning: useNames = NA is deprecated. Instead, specify either useNames = TRUE or useNames = FALSE.
But the function SingleR did return the results, so it looks like it worked. Do you still see the warning message?
Hello,
I am getting an error message (not a warning) running SCTransform() that prevents further analyses of the RNA/SCT (using the WNN analysis of 10x Multiome, RNA + ATAC Vignette as a guide)
This issue was previously discussed (#7501 ) as the same message was seen as a "warning" but not an "error" when running SCTransform, however that issue was closed as completed on July 6th, so I am posting a new issue here ( I originally posted to that issue before seeing it was closed).
Project: 10X Multiome dataset 11,775 nuclei/barcodes after filtering using WNN as a guide.
My code was
multiome <- SCTransform(multiome, verbose = FALSE) %>% RunPCA() %>% RunUMAP(dims = 1:50, reduction.name = 'umap.rna', reduction.key = 'rnaUMAP_')
Which returned:
Error: useNames = NA is defunct. Instead, specify either useNames = TRUE or useNames = FALSE.
To narrow down which command prompted this error, I started again and it occurs during the SCTransform call:
I first ran the 10k PBMC Multiome WNN Vignette code (copied below) yesterday without issue, however strangely I now also get the same error when I run the same code:
Attempting to specify useNames = TRUE or useNames = FALSE per the error message also does not work, and both attempts yield the same error:
I do not recall updating or changing any packages since running this code yesterday that would explain this change.
Thank you for your help with this issue!