免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
Chapter 12 Visualization of Functional Enrichment Result | clusterProfiler: universal enrichment too

原文地址:https://yulab-smu.github.io/clusterProfiler-book/chapter12.html

The enrichplot package implements several visualization methodsto help interpreting enrichment results. It supports visualizing enrichmentresults obtained from DOSE (Yu et al. 2015),clusterProfiler (???),ReactomePA (Yu and He 2016) and meshes. Bothover representation analysis (ORA) and gene set enrichment analysis (GSEA) aresupported.

Many of these visualization methods were first implemented in DOSE and rewrote from scratch using ggplot2. If you want to use old methods3, you can use the doseplot package.

12.1 Bar Plot

Bar plot is the most widely used method to visualize enriched terms. It depictsthe enrichment scores (e.g. p values) and gene count or ratio as bar heightand color.

library(DOSE)data(geneList)de <- names(geneList)[abs(geneList) > 2]edo <- enrichDGN(de)
library(enrichplot)barplot(edo, showCategory=20)

12.2 Dot plot

Dot plot is similar to bar plot with the capability to encode another score asdot size.

edo2 <- gseNCG(geneList, nPerm=10000)p1 <- dotplot(edo, showCategory=30) + ggtitle("dotplot for ORA")p2 <- dotplot(edo2, showCategory=30) + ggtitle("dotplot for GSEA")plot_grid(p1, p2, ncol=2)

12.3 Gene-Concept Network

Both the barplot and dotplot only displayed most significant enriched terms,while users may want to know which genes are involved in these significantterms.In order to consider the potentially biological complexities in which a gene may belong to multiple annotation categories and provide information of numeric changes if available, we developed cnetplot function to extract the complex association.The cnetplot depicts the linkages of genes and biological concepts (e.g. GO terms or KEGG pathways) as a network. GSEA result is also supportedwith only core enriched genes displayed.

## convert gene ID to Symboledox <- setReadable(edo, 'org.Hs.eg.db', 'ENTREZID')cnetplot(edox, foldChange=geneList)

## categorySize can be scaled by 'pvalue' or 'geneNum'cnetplot(edox, categorySize="pvalue", foldChange=geneList)

cnetplot(edox, foldChange=geneList, circular = TRUE, colorEdge = TRUE)

12.4 Heatmap-like functional classification

The heatplot is similar to cnetplot, while displaying the relationships as aheatmap. The gene-concept network may become too complicated if user want toshow a large number significant terms. The heatplot can simplify the resultand more easy to identify expression patterns.

heatplot(edox)

heatplot(edox, foldChange=geneList)

12.5 Enrichment Map

Enrichment map organizes enriched terms into a network with edges connectingoverlapping gene sets. In this way, mutually overlapping gene sets are tend tocluster together, making it easy to identify functional module.

The emapplot function supports results obtained from hypergeometric test and gene set enrichment analysis.

emapplot(edo)

12.6 UpSet Plot

The upsetplot is an alternative to cnetplot for visualizing the complexassociation between genes and gene sets. It emphasizes the gene overlappingamong different gene sets.

upsetplot(edo)

12.7 ridgeline plot for expression distribution of GSEA result

The ridgeplot will visualize expression distributions of core enriched genesfor GSEA enriched categories. It helps users to interpret up/down-regulated pathways.

ridgeplot(edo2)

12.8 running score and preranked list of GSEA result

Running score and preranked list are traditional methods for visualizing GSEAresult. The enrichplot package supports both of them to visualizethe distribution of the gene set and the enrichment score.

gseaplot(edo2, geneSetID = 1, by = "runningScore", title = edo2$Description[1])

gseaplot(edo2, geneSetID = 1, by = "preranked", title = edo2$Description[1])

gseaplot(edo2, geneSetID = 1, title = edo2$Description[1])

Another method to plot GSEA result is the gseaplot2 function:

gseaplot2(edo2, geneSetID = 1, title = edo2$Description[1])

The gseaplot2 also supports multile gene sets to be displayed on the same figure:

gseaplot2(edo2, geneSetID = 1:3)

User can also displaying the pvalue table on the plot via pvalue_tableparameter:

gseaplot2(edo2, geneSetID = 1:3, pvalue_table = TRUE,          color = c("#E495A5", "#86B875", "#7DB0DD"), ES_geom = "dot")

User can specify subplots to only display a subset of plots:

gseaplot2(edo2, geneSetID = 1:3, subplots = 1)

gseaplot2(edo2, geneSetID = 1:3, subplots = 1:2)

The gsearank function plot the ranked list of genes belong to the specificgene set.

gsearank(edo2, 1, title = edo2[1, "Description"])

Multiple gene sets can be aligned using cowplot:

library(ggplot2)library(cowplot)pp <- lapply(1:3, function(i) {    anno <- edo2[i, c("NES", "pvalue", "p.adjust")]    lab <- paste0(names(anno), "=",  round(anno, 3), collapse="\n")    gsearank(edo2, i, edo2[i, 2]) + xlab(NULL) +ylab(NULL) +        annotate("text", 0, edo2[i, "enrichmentScore"] * .9, label = lab, hjust=0, vjust=0)})plot_grid(plotlist=pp, ncol=1)

12.9 pubmed trend of enriched terms

One of the problem of enrichment analysis is to find pathways for furtherinvestigation. Here, we provide pmcplot function to plot the number/proportionof publications trend based on the query result from PubMed Central. Of course,users can use pmcplot in other scenarios. All text that can be queried on PMCis valid as input of pmcplot.

terms <- edo$Description[1:3]p <- pmcplot(terms, 2010:2017)p2 <- pmcplot(terms, 2010:2017, proportion=FALSE)plot_grid(p, p2, ncol=2)

12.10 goplot

goplot can accept output of enrichGO and visualized the enriched GO induced graph.

goplot(ego)

12.11 browseKEGG

To view the KEGG pathway, user can use browseKEGG function, which will open web browser and highlight enriched genes.

browseKEGG(kk, 'hsa04110')

12.12 pathview from pathview package

clusterProfiler users can also use pathview from the pathview(Luo and Brouwer 2013) to visualize KEGG pathway.

The following example illustrate how to visualize “hsa04110” pathway, which was enriched in our previous analysis.

library("pathview")hsa04110 <- pathview(gene.data  = geneList,                     pathway.id = "hsa04110",                     species    = "hsa",                     limit      = list(gene=max(abs(geneList)), cpd=1))

For further information, please refer to the vignette of pathview(Luo and Brouwer 2013).

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
GSEA富集分析可視化
GSEA分析合理性討論
手把手教你用R做GSEA分析
clusterProfiler|GSEA富集分析及可視化
enrichplot: 讓你們對clusterProfiler系列包無法自拔
求助:如何讀GSEA plot圖
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服