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

compatibility with alabaster.sce and DelayedArray #360

Open
alikhuseynov opened this issue Feb 13, 2025 · 3 comments
Open

compatibility with alabaster.sce and DelayedArray #360

alikhuseynov opened this issue Feb 13, 2025 · 3 comments

Comments

@alikhuseynov
Copy link

Hi, I'm having issues when running milo workflow when count data is DelayedMatrix, is there compatibility with alabaster.sce and DelayedArray ?
This currently won't work:

library(alabaster.sce)
library(SingleCellExperiment)
library(miloR)
milo <- Milo(sce)
# save SCE with alabaster.sce
fsave <- file.path(out_dir, "milo_obj")
saveObject(milo, fsave)
rm(milo)
# read saved object
milo <- readObject(fsave)
milo <- buildGraph(milo, k = 20, d = 30, reduced.dim = "PCA")
Error: unable to find an inherited method for function ‘findKNN’ for signature ‘X = "DelayedMatrix"’

any suggestions?
Thanks

@MikeDMorgan
Copy link
Member

Hi @alikhuseynov - the buildGraph function from Milo uses BiocNeighbors findKNN(), so you may want to double-check the compatability/versions you have installed for BiocNeighbours and DelayedArray data types.

@alikhuseynov
Copy link
Author

Hi @MikeDMorgan, Thanks for getting back on this.
I have release versions:

package.version("BiocNeighbors")
[1] "2.0.1"
> package.version("DelayedArray")
[1] "0.32.0"

I was expecting that findKNN() would work on "DelayedMatrix" or "ReloadedMatrix" by default, apparently it doesn't. Or am I missing something?
thanks

@MikeDMorgan
Copy link
Member

That's definitely a question for Aaron Lun as BiocNeighbors maintainer.

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