热点新闻
Monocle2: orderCells()
2023-09-17 23:53  浏览:3155  搜索引擎搜索“微商筹货网”
温馨提示:为防找不到此信息,请务必收藏信息以备急用! 联系我时,请说明是在微商筹货网看到的信息,谢谢。
展会发布 展会网站大全 报名观展合作 软文发布

计算每个基因的 pseudotime

require(monocle) require(Seurat) require(dplyr) #-------------------------------------------------------# #Identify genes for ordering cells, "fullModelFormulaStr=" specify the conditions that we want to dominate the cell trajectory #Or, we can use the genes identify by other ways diff_test_res <- differentialGeneTest(Monocle2_object, fullModelFormulaStr = "~Media") #In this case, "Media" is condition that we want to dominate the cell trajectory trajectory_ordering_genes <- row.names (subset(diff_test_res, qval < 0.01)) #-------------------------------------------------------# #Set the highly variable genes for dimension reduction Monocle2_object <- setOrderingFilter(Monocle2_object, ordering_genes=trajectory_ordering_genes) #-------------------------------------------------------# #Dimension reduction by PCA, then other method based on PCA results #For pseudotime calculation, the dimension reduction method "DDRTree" is recommended Monocle2_object <- reduceDimension(Monocle2_object, max_components = 2, num_dim = 6, reduction_method = 'DDRTree', verbose = T) #-------------------------------------------------------# #Order cells (calculate pseudotime) by dimension reduction results (not PCA) produced by reduceDimension() Monocle2_object <- orderCells(Monocle2_object, num_paths=1) #-------------------------------------------------------# #Show the dimention reduction and pseudotime results plot_cell_trajectory(Monocle2_object)

发布人:6141****    IP:117.173.23.***     举报/删稿
展会推荐
让朕来说2句
评论
收藏
点赞
转发