新建一个conda环境,安装4.3.3版本的R,并将此版本的R内核添加到Jupyter
conda create -n Seuratv5
conda install r-base=4.3.3
install.package(c('repr','IRdisplay','evaluate','crayon','pbdZMQ','uuid','digest','devtools'))
#devtools安装报错,提示没有usethis
#一气之下,我选择使用conda安装
conda install -c bioconda r-devtools
devtools::install_github(IRkernel/IRkernel)
conda install -c r r-irkernel #方法2
#报错
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 1.
#解决方式
#参考https://github.com/IRkernel/IRkernel/issues/713
#
github上的解答如下:
jupyter-client has to be installed but "jupyter kernelspec --version" exited with code 1.
means that the jupyter command is in your PATH, but jupyter-client isn’t installed
似乎是jupyter-client未安装
pip install jupyter-client
IRkernel::installspec(name='Seuratv5',displayname='Seuratv5_R')
R中Seuratv5安装参考2个教程
Analysis, visualization, and integration of Visium HD spatial datasets with Seurat • Seurat