Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: (converted from warning) useNames = NA is deprecated. Instead, specify either useNames = TRUE or useNames = FALSE. #250

Closed
Ztxfrhhyy opened this issue May 29, 2024 · 1 comment

Comments

@Ztxfrhhyy
Copy link

I would like to use slingshot for a seurat obj but run into an error. Here's my code and error message:

sds <- slingshot(Embeddings(data, "umap"), clusterLabels = data$seurat_clusters,

  •              start.clus = 0, stretch = 0, useNames = FALSE)
    

Error: (converted from warning) useNames = NA is deprecated. Instead, specify either useNames = TRUE or useNames = FALSE.

packageVersion("matrixStats")
[1] ‘1.1.0’
packageVersion("slingshot")
[1] ‘2.6.0’
packageVersion("SingleCellExperiment")
[1] ‘1.20.1’

It worked several weeks ago as:
sds <- slingshot(Embeddings(data, "umap"), clusterLabels = data$seurat_clusters,

  •              start.clus = 0, stretch = 0)
    

But now even I add the useNames=TRUE/FALSE, it won't work. Could anybody help? Thanks!

@kstreet13
Copy link
Owner

Hi @Ztxfrhhyy,

This is a duplicate of this issue: #221
I would recommend updating to the latest R version and re-installing the relevant packages.
Also, useNames is not a valid argument for slingshot, so adding that won't change anything.

Best,
Kelly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants