Monocel3简介以及安装
一、软件介绍
1.1 monocel3
Monocel3是单细胞分析领域一个重要的R 包,它是之前 Monocel和 Monocel2的升级版本,之前的 Monocel2 主要用于单细胞拟时分析。而新版本的 Monocel3 在原有基础上,还可以进行聚类,单细胞亚型分类,细胞注释,拟时分析,基因表达等分析。包含了 Seurat+SingleR 的功能,可以说一个 R 包可以完成单细胞数据分析绝大部分的功能。使用同一个 R 包分析起来更加方便。
目前 monocel3 已经取代了之前的 monocel2,不过目前仍处于开发版,还有很多功能在完善过程中。
Monocle3 主要有三大功能,
1. 分群、计数细胞 Clustering, classifying, and counting cells
2. 构建细胞轨迹 Constructing single-cell trajectories.
3. 差异表达分析 Differential expression analysis.
官网:https://cole-trapnell-lab.github.io/monocle3/
帮助文档:https://cole-trapnell-lab.github.io/monocle3/docs/introduction/
文章:https://cole-trapnell-lab.github.io/monocle3/papers/
1.2 monocel3 升级功能
相比于 monocel2,新版软件主要做了以下升级。https://cole-trapnell-lab.github.io/monocle3/docs/updates/
1、A better structured workflow to learn developmental trajectories.一个更好的构建分化轨迹的方法
2、Support for the UMAP algorithm to initialize trajectory inference.支持 UMAP 推断发育轨迹
3、Support for trajectories with multiple roots.支持多个祖源(toots)的发育推断
4、Ways to learn trajectories that have loops or points of convergence.Algorithms that automatically partition cells to learn disjoint or parallel trajectories using ideas from "approximate graph abstraction".增加 approximate graph abstraction 理解各条发育轨迹的分离及平行发育的轨迹。
5、A new statistical test for genes that have trajectory-dependent expression. This replaces both the old differentialGeneTest() function and BEAM().新的轨迹依赖表达基因分析方法:替换 monocle2 中的 differalgenetest()函数和 BEAM()
6、Project query data set onto a reference.整合数据集分析;
7、Transfer annotations to query data set from reference.直接将注释结果转换为模板,用于新细胞鉴定;
8、Save and load Monocle objects and transformation models.增加 save_monocle_objects 和 load_monocle_objects 函数保存结果。
9、Mixed negative binomial distribution for fit_models.支持负二项分布模型
10、A 3D interface to visualize trajectories and gene expression.支持 3D 视图可视化轨迹分析和基因差异表达分析结果。
总而言之,QC,聚类,亚群鉴定,细胞轨迹分析等Monocel3都可以完成。
1.3 软件安装
软件是一个 R 包,有多种方式进行安装,下面推荐三种安装方法,适应不同的使用情况。
方法一:Bioconductor 安装
#安装一些依赖包
BiocManager::install(c('BiocGenerics', 'DelayedArray', 'DelayedMatrixStats',
'limma', 'lme4', 'S4Vectors', 'SingleCellExperiment',
'SummarizedExperiment', 'batchelor', 'Matrix.utils',
'HDF5Array', 'terra', 'ggrastr'),lib = "/opt/R/4.2.1/lib/R/library",destdir = '/home/xhs/Rpack/download')
方法二:通过 github 安装
install.packages("devtools")
devtools::install_github('cole-trapnell-lab/monocle3')
如果网络无法连接到 github,可以将安装包下载到本地,然后本地安装。
#下载 github 软件包,本地安装
devtools::install(pkg = "monocle3-master/")
方法三:利用 bioconda 安装
conda install -c bioconda r-monocle3
1.4 分析流程
monocle3 分析流程图
Monocle 包数据分析主要包含以下过程:
1、读入数据,保存为 cell_data_set 类;
cds <- new_cell_data_set(expression_matrix,
cell_metadata = cell_metadata,
gene_metadata = gene_annotation)
## Step 1: Normalize and pre-process the data
cds <- preprocess_cds(cds, num_dim = 100)
2、(可选的)移除批次效应;
## Step 2: Remove batch effects with cell alignment
cds <- align_cds(cds, alignment_group = "batch")
3、细胞聚类;
## Step 3: Reduce the dimensions using UMAP
cds <- reduce_dimension(cds)
## Step 4: Cluster the cells
cds <- cluster_cells(cds)
4、(可选的)细胞排序进行拟时分析
## Step 5: Learn a graph
cds <- learn_graph(cds)
## Step 6: Order cells
cds <- order_cells(cds)
plot_cells(cds)
5、差异表达分析
# With regression:
gene_fits <- fit_models(cds, model_formula_str = "~embryo.time")
fit_coefs <- coefficient_table(gene_fits)
emb_time_terms <- fit_coefs %>% filter(term == "embryo.time")
emb_time_terms <- emb_time_terms %>% mutate(q_value = p.adjust(p_value))
sig_genes <- emb_time_terms %>% filter (q_value < 0.05) %>% pull(gene_short_name)
# With graph autocorrelation:
pr_test_res <- graph_test(cds, neighbor_graph="principal_graph", cores=4)
pr_deg_ids <- row.names(subset(pr_test_res, q_value < 0.05))
写在最后:有时间我们会努力更新的。大家互动交流可以前去论坛,地址在下面,复制去浏览器即可访问,弥补下公众号没有留言功能的缺憾。原地址暂未启用(bioinfoer.com)。
sx.voiceclouds.cn
有些板块也可以预设为大家日常趣事的分享等,欢迎大家来提建议。
相关文章
- Python – Pycharm venv 离线安装模块「建议收藏」
- Windows10安装 cuDNN 方法
- Py之dlib:Python库之dlib库的简介、安装、使用方法详细攻略
- CentOS安装MySQL8.0「建议收藏」
- [前端]解决React npm包管理器及npx安装网络慢的方式
- OpenCV 教程 01:简介与安装,图片与视频的基本操作
- eclipse安装mybatis插件_mybatis分页插件原理
- ubuntu18.04安装配置mysql
- Acrobat Reader DC 2020软件免费下载及安装教程PDF编辑器全版本下载
- Acrobat DC(PDF) 功能简介+安装破解PDF编辑器全版本下载
- Acrobat DC(PDF) 功能简介+安装破解PDF编辑器全版本下载
- BeautifulSoup文档1-简介、安装和使用
- FRRouting套件简介(二)安装FRR
- Qt——Ubuntu下安装Qt Creator的方法步骤总结及其界面功能与基本设置简介(Qt简介、Qt Creator版本选择、软件入门、常用设置)
- 【Android 逆向】GDA 逆向工具安装 ( GDA 下载 | GDA 简介 | 运行 GDA 分析 APK 文件 )
- Istio入门(服务网格Service Mesh)安装简介
- NoSQL和Redis简介及Redis在Windows下的安装和使用教程
- 安装Linux LVM: 迈出开启新系统的步伐(linuxlvm安装)
- 安装Linux环境的PHP扩展指南(linux安装php扩展)
- 迈向 Linux 之旅:安装 ISO 的过程(安装linuxiso)
- 用法Linux下安装驱动程序的命令用法简介(linux安装驱动命令)
- Linux本地安装简介:深入系统核心(linux本地安装)
- MySQL零部署:轻松获取免安装版本(mysql免安装版本)
- 在centos上安装MySQL服务器(centos装mysql)
- “轻松安装Linux RPM包的方法简介”(linuxrpm安装包)
- Oracle无需安装,即用即走(oracle免装版)
- Redis高可用架构安装简介(redis高可用安装)
- 跟我学Nodejs(一)---Node.js简介及安装开发环境
- NoSQL和Redis简介及Redis在Windows下的安装和使用教程