forked from NBISweden/workshop-scRNAseq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Czarnewski
committed
Jan 31, 2020
1 parent
eff953f
commit bd96173
Showing
3 changed files
with
61 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,56 @@ | ||
# Error - UMAP not found | ||
--- | ||
layout: default | ||
title: 'Precourse Material - scRNAseq course' | ||
--- | ||
|
||
If your R does not find the correct python version, it will complain that `umap-learn` is not installed and ask you to install it. Here are some tips on how to find the correct python version that was installed in the conda environment. | ||
|
||
### Try selecting the correct conda env in R: | ||
|
||
In this example the conda env is named `sc_course`. | ||
#### <img border="0" src="https://www.svgrepo.com/show/83019/faq-button.svg" width="40" height="40"> FAQ | ||
*** | ||
|
||
library(reticulate) | ||
reticulate:use_conda("sc_course") | ||
<br/> | ||
|
||
Then check what python you have in R: | ||
|
||
reticulate::py_config() | ||
# should read at top: | ||
python: /Users/asbj/miniconda3/envs/sc_course/bin/python | ||
##### Error - umap-learn not found | ||
*** | ||
|
||
If your R does not find the correct python version, it will complain that `umap-learn` is not installed and ask you to install it. Here are some tips on how to find the correct python version that was installed in the conda environment. | ||
|
||
If that still is not right, you may have an r-reticulate python installation as well and need to perform the steps below. | ||
**Try selecting the correct conda env in R** | ||
|
||
### Restart R and select python version | ||
In this example the conda environment is named `scRNAseq2020`. | ||
``` | ||
library(reticulate) | ||
reticulate::use_conda("scRNAseq2020") | ||
``` | ||
|
||
OBS! Before doing anything else you need to select python version. | ||
Then check what python you have in R: | ||
``` | ||
reticulate::py_config() | ||
# should read at top: | ||
python: /Users/asbj/miniconda3/envs/scRNAseq2020/bin/python | ||
``` | ||
|
||
First, find out what path you have to your conda python (In terminal): | ||
If that still is not right, you may have an `r-reticulate` python installation as well and need to perform the steps below. | ||
|
||
which python | ||
/Users/asbj/miniconda3/envs/sc_course/bin/python | ||
<br/> | ||
|
||
Then in R (after restarting): | ||
**Restart R and select python version** | ||
|
||
reticulate::use_python("/Users/asbj/miniconda3/envs/sc_course/bin/python", required=T) | ||
OBS! Before doing anything else you need to select python version. | ||
|
||
First, find out what path you have to your conda python (in TERMINAL): | ||
``` | ||
which python | ||
/Users/asbj/miniconda3/envs/scRNAseq2020/bin/python | ||
``` | ||
|
||
Then check again with py_config if correct version of python is used: | ||
Then in R (after restarting): | ||
``` | ||
reticulate::use_python("/Users/asbj/miniconda3/envs/scRNAseq2020/bin/python", required=T) | ||
``` | ||
|
||
reticulate::py_config() | ||
Then check again with `py_config` if correct version of python is used: | ||
``` | ||
reticulate::py_config() | ||
``` | ||
|
||
If you have the correct version now, you should be able to run UMAP without issues. | ||
|
||
|