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

UMAP with R #228

Closed
arararararararar8 opened this issue Apr 30, 2019 · 3 comments
Closed

UMAP with R #228

arararararararar8 opened this issue Apr 30, 2019 · 3 comments
Labels
Good Reads Issues that discuss important topics regarding UMAP, that provide useful code or nice visualizations

Comments

@arararararararar8
Copy link

Hello,

I am trying to use umap through R for seurat. What exactly is the code that I should be entering in conda and in R for me to be able to use umap through R?

@lmcinnes
Copy link
Owner

lmcinnes commented May 2, 2019

I am not really an R user, so I don't actually know what to do to get this python version of umap working in R. I believe Seurat has some functionality in this respect, and if you want to use that then you should simply install this package as per the installation instructions. Alternatively there are UMAP packages specifically for R such as UWOT that you can install from CRAN.

@peekxc
Copy link

peekxc commented May 10, 2019

Stumbled upon this issue. It should be quite straightforward to use UMAP w/ reticulate, unless you really want to another package...

E.g.

umap <- import("umap") ## installed from pip via umap-learn module
reducer <- umap$UMAP(n_components=2L, n_neighbors=15L)
umap_emb <- reducer$fit_transform(dataset)

@lmcinnes
Copy link
Owner

Good to know, thanks. I'm not an R user so a lot of this is a mystery to me.

@sleighsoft sleighsoft changed the title UMAP on r UMAP with R Sep 12, 2019
@sleighsoft sleighsoft added the Good Reads Issues that discuss important topics regarding UMAP, that provide useful code or nice visualizations label Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good Reads Issues that discuss important topics regarding UMAP, that provide useful code or nice visualizations
Projects
None yet
Development

No branches or pull requests

4 participants