Hi all,
seurat_combined <- FindClusters(seurat_combined, resolution = 0.1, algorithm = 4)
library(reticulate)
py_install("leidenalg")
leidenalg<- import("leidenalg")
py_install("numpy")
py_install("pandas")
I don't know how to install Numpy 1.6 in R. Would you please have a suggestion for this error? If I put:
py_install("numpy==1.6")
Error: one or more Python packages failed to install [error code 1].
I can run leiden using scanpy but trying in with seurat. Thank you so much!
Why are you installing python packages using R? Would it not be possible to install the required python packages and just run what you need (the python code) from R?
I know it is quite weird. I am working in R but to choose
algorithm = 4
, that is the error message I got. You can see the argument/algorithm here which mention about python: https://satijalab.org/seurat/reference/findclusters. I install numpy and pandas because I got error message that I don't have numpy and pandas. Numpy 1.6 is the next error after installing numpy.