-
Notifications
You must be signed in to change notification settings - Fork 31
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
Found more than one class "dist" in cache #121
Comments
Thanks for letting me know about this. Unfortunately, the proposed fix doesn't quite work. diris <- stats::dist(iris[1:10, -5])
methods::is(diris, "dist")
[1] TRUE
methods::is(diris, "stats::dist")
[1] FALSE This may require some research. |
Thank you for the very quick response! Would replacing |
|
Thank you very much, your work is much appreciated! |
Hello!
Thank you for creating and mantaining this very useful package!
I noticed this warning that pops up when creating the UMAP:
Found more than one class "dist" in cache; using the first, from namespace 'BiocGenerics' Also defined by 'spam'
This is an example that could help reproduce the problem:
The
spam
package is usually loaded together withSeurat
andBiocGenerics
withrhdf5
, so at least in my use-case I can't avoid getting this warning.I think that this warning is caused by an ambiguous definition of the
dist
class in theneghbors.R
anduwot.R
files, more precisely on these lines:uwot/R/neighbors.R
Line 14 in 3bff01f
uwot/R/uwot.R
Line 3204 in 3bff01f
uwot/R/uwot.R
Line 4266 in 3bff01f
Replacing
"dist"
with"stats::dist"
in these lines should fix this issue.Thank you!
The text was updated successfully, but these errors were encountered: