下游分析软件:https://github.com/ZilongZhang44/single-cell-downstream-analysis
#设置R包默认安装镜像:
options(repos=structure(c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")))
#安装biocmanager包
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(version = "3.12")
#调用biocmanager包
library("BiocManager")
#利用biomanager安装常用的包
BiocManager::install(c("ggplot2","ggtree","DESeq2"))
#安装seurat
install.packages("Seurat",dependencies=T)
library(Seurat)
#查看Seurat版本信息
packageVersion("Seurat")
# 安装scran
# library(BiocManager)
BiocManager::install("scran")
library(scran)
# 详细展示分群的分辨率
install.packages('clustree')
library(clustree)
#安装devtools
install.packages("devtools",dependencies=T)
library("devtools")
#安装SingleR\cellassign
library(devtools)
devtools::install_github("LTLA/SingleR")
BiocManager::install("SingleR") # 上述安装报错,可以使用这种安装方式
library(SingleR)
# install.packages("tensorflow")
# tensorflow::install_tensorflow(extra_packages='tensorflow-probability', version = "2.1.0")
#安装clusterProfiler
BiocManager::install("clusterProfiler")
library(clusterProfiler)
#安装Monocle2和Monocle3包;
BiocManager::install("monocle",force = TRUE)
library(monocle)
# package.version(monocle)
#利用biomanager安装常用的包
BiocManager::install(c("dplyr","BiocParallel",'scater','SummarizedExperiment'),force = TRUE)
#安装Italk
## Download and install the package
install.packages("igraph")
## Load package
library(igraph)
if(!require(devtools))
install.packages("devtools")
devtools::install_github("Coolgenome/iTALK", build_vignettes = TRUE)
library(iTALK)
remotes::install_github("Coolgenome/iTALK", build_vignettes = TRUE)
devtools::install_github("sqjin/CellChat")
library(CellChat)
# 安装DoubletFinder
install.packages("remotes")
library(remotes)
remotes::install_github('chris-mcginnis-ucsf/DoubletFinder')
# 安装传参的包
install.packages("getopt")
# remotes:install_github("trevorld/r-getopt")
# https://www.cnblogs.com/timeisbiggestboss/p/7811009.html
install.packages("optparse")
remotes::install_github("trevorld/r-optparse")
# 安装数据标准化包
devtools::install_github(repo = 'ChristophH/sctransform')