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

The vapply error strikes again: values must be length 1, but FUN(X[[2]]) result is length 0 (Issue #1072) #41

Open
LilianaLucca opened this issue Apr 12, 2022 · 0 comments

Comments

@LilianaLucca
Copy link

Hello, I am running into an issue when trying to work with a list of Seurat objects, which I named seurats. not sure if this issue belongs to the seurat or seuratobject repo. Anyway, my code:
lapply(X = seurats, FUN = function(x){
FeatureScatter(x, feature1 = "percent.mt", feature2 = "nFeature_RNA") +
geom_density2d()
})

the answer:
Error in vapply(X = keyed.objects, FUN = function(x) { :
values must be length 1,
but FUN(X[[2]]) result is length 0

The versions:
packageVersion("SeuratObject")
[1] ‘4.0.4’

packageVersion("Seurat")
[1] ‘4.1.0’

R is 4.1.2
RStudio is 2022.02.0
OS is MacOS Monterey

If this is a bug that it's going to take some time to fix, what can I do in the meantime?
Many thanks!

Lili

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

1 participant