1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

macOS CatalinaにMonocle3とphateRを導入

Posted at

macOS CatalinaにMonocle3を導入

MacOS 10.15.3初期状態
R 3.6.3/XCODE導入

XQuartz-2.7.11.dmgをインストール
https://www.xquartz.org/

準備:gfortranのエラー対処

/usr/local/gfortran/libを参照しているのでシンボリックリンクをはる

shellで操作

$ sudo mkdir -p /usr/local/gfortran/lib
$ cd /usr/local/gfortran/lib
$ sudo ln -fs /usr/local/lib/gcc/9/libgfortran.* ./
$ sudo ln -fs /usr/local/lib/gcc/9/libquadmath.* ./

準備:Bioconductor導入

Rで操作

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install()

準備:gdalをインストールしておく

sfの導入に必要なのでターミナルでgdalを導入
brew使える環境なら以下のコマンドでok(と思う)

shellで操作

$ brew install pkg-config
$ brew install gdal

Monocle3をインストール

Rで操作

BiocManager::install(c("SummarizedExperiment","SingleCellExperiment", "batchelor", "DelayedMatrixStats", "limma"))

install.packages("devtools")
devtools::install_github('cole-trapnell-lab/leidenbase')
devtools::install_github('cvarrichio/Matrix.utils')
install.packages("sf", dependencies = TRUE)
devtools::install_github('cole-trapnell-lab/monocle3')

phateRをインストール

shellで操作

$ pip3 install phate

Rで操作

install.packages("phateR")

または

if (!suppressWarnings(require(devtools))) install.packages("devtools")
reticulate::py_install("phate", pip=TRUE)
devtools::install_github("KrishnaswamyLab/phateR")
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?