Other

项目介绍

jmw86069/multienrichjam 是一个托管在 GitHub 上的开源项目,主要使用 R 编写,采用 Other 许可证,目前获得 27 个 Star、4 次 Fork。

仓库全名
jmw86069/multienrichjam
开源许可证
Other
Star 数
27
Fork 数
4

README 摘要

multienrichjam The goal of multienrichjam is to enable Multi-Enrichment Analysis of multiple gene set pathway enrichment datasets together. This work was inspired by complementary tools based originally upon “Enrichment Map”, a Cytoscape plugin developed by the lab of Dr. Gary Bader. Bader lab EnrichmentMap from Merico,et al, PLoS One, 2010 Similar methods were implemented in R by the group of Dr. Guangchuang Yu,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

multienrichjam 用什么语言开发?

主要使用 R 编写,采用 Other 许可证,目前有 27 个 Star。

multienrichjam 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 multienrichjam 的源码?

可以直接克隆仓库:git clone https://github.com/jmw86069/multienrichjam.git,默认分支为 master;安装与运行步骤见仓库 README。

multienrichjam 最近还在维护吗?

仓库最近一次更新为 5月30日,当前没有未关闭的 Issue;Star 数为 27,可作为社区活跃度的参考。

关于

Multi-Enrichment Analysis of Gene Set Enrichment Analysis Results

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

R

Release

贡献者

README

multienrichjam

The goal of multienrichjam is to enable Multi-Enrichment Analysis of multiple gene set pathway enrichment datasets together.

This work was inspired by complementary tools based originally upon “Enrichment Map”, a Cytoscape plugin developed by the lab of Dr. Gary Bader.

Similar methods were implemented in R by the group of Dr. Guangchuang Yu, notably within the suite of clusterProfiler tools which include enrichplot::emapplot() and ggtangle::cnetplot() among numerous other powerful tools.

Multi-enrichment analysis is designed to complement existing tools, while focusing on the details of comparing multiple enrichment results together.

How to install

Install using the remotes package:

# if necessary, install 'remotes'
# install.package("remotes")
remotes::install_github("jmw86069/multienrichjam",
   upgrade="always",
   build_vignettes=TRUE,
   dependencies=TRUE);

Alternatively, use the pak package:

# if necessary, install 'pak'
# install.package("pak")
pak::pkg_install("jmw86069/multienrichjam",
   upgrade=TRUE,
   dependencies=TRUE);

The argument dependencies=TRUE includes suggested packages, most notably the ‘openxlsx’ package which is used to import Ingenuity Pathway Analysis (IPA) results stored in Excel ‘xlsx’ format.

Package Reference

Documentation is created using ‘pkgdown’ with all functions, articles, and changelog.

Full multienrichjam documentation

Quick walkthrough

Start with one or more enrichment results. Each enrichment result is either a data.frame or enrichResult from clusterProfiler, and must have the following columns:

  • Pathway name: some identifier, name, or label
  • Enrichment P-value: Typically adjusted P-value, or FDR
  • genes: one field with genes involved in enrichment of each pathway

Any enrichResult or gseaResult from clusterProfiler will have the required data already.

multiEnrichMap() to create Mem output

library(multienrichjam)

ipafiles <- system.file(
   "extdata",
   c("Newborns-IPA.txt", "OlderChildren-IPA.txt"),
   package = "multienrichjam"
)
names(ipafiles) <- c("Newborns", "OlderChildren")
ipa_l <- lapply(ipafiles, importIPAenrichment)
erlist <- lapply(ipa_l, function(i) {
   i[["Canonical Pathways"]]
})
er_Newborns <- erlist$Newborns
er_OlderChildren <- erlist$OlderChildren

## Turn off ComplexHeatmap warnings
ComplexHeatmap::ht_opt("message" = FALSE)
Mem <- multiEnrichMap(list(
   Newborns = er_Newborns,
   OlderChildren = er_OlderChildren
))

The output can be summarized by printing the object.

Mem
#> class: Mem
#> dim: 2 enrichments, 21 sets, 28 genes
#> - enrichments (2): Newborns, OlderChildren
#> - sets (21): mTOR Signaling, RAR Activation, ..., Gluconeogenesis I, Glycolysis I
#> - genes (28): ADCY3, CASP8, ..., SMARCD3, YWHAQ
#> Analysis parameters:
#> - top N per enrichment: 20
#> - significance threshold: 0.05 (colname: p.adjust)
#> - min gene count: 3

prepare_folio() to create MemPlotFolio output

This step determines pathway clusters, and defines other custom features used to produce a “Mem Plot Folio” - which is a collection of data visualization plots to navigate the results.

Mpf <- prepare_folio(Mem)

GenePathHeatmap()

This step displays the underlying gene-versus-pathway data, and forms the basis for most of the multienrichjam analysis.

GenePathHeatmap(Mpf)
Heatmap with gene-versus-pathway incidence matrix.

Pathways are clustered according to gene content. This step is intended to reduce redundancy, and to organize enrichment results based upon shared subsets of genes.

Genes are also clustered according to shared pathways, which can provide insights into the core genes involved across multiple pathways.

EnrichmentHeatmap()

This step displays the enrichment P-values in -log10 scale, using the same pathway clusters as defined in the gene-pathway heatmap.

EnrichmentHeatmap(Mpf)
Heatmap with enrichment P-values.

CnetCollapsed()

The “Cnet collapsed” network represents the Concept Network (Cnet) plot using collapsed pathway clusters. The first step prepare_folio() is critical to define or customize the pathway cluster assignment.

CnetCollapsed(Mpf)
Concept network (Cnet) with pathways collapsed by cluster.

By default, the cluster titles (“A”, “B”, “C”, “D”) are displayed, however the pathways can be used to form a label.

CnetCollapsed(Mpf, type = "set")
Concept network (Cnet) showing pathways collapsed by set, using pathway names for each cluster label.

CnetExemplar()

A “Cnet exemplar” plot uses one exemplar pathway per cluster, providing an alternative network summary view.

CnetExemplar(Mpf)
Concept network (Cnet) showing one exemplar pathway to represent each pathway cluster.

A Cnet exemplar plot can also be created using user-defined pathways of interest.

Custom Cnet Exemplar

custom_sets <- c(
   "RAR Activation",
   "mTOR Signaling",
   "Growth Hormone Signaling",
   "Tight Junction Signaling"
)
cnet <- mem2cnet(Mem[, custom_sets, ], spread_labels = TRUE)

jam_igraph(cnet)
Concept network (Cnet) showing a custom subset of exemplar pathways chosen by the scientist.

Note that this process is two-steps:

  1. Create the cnet network data.
  2. Plot using jam_igraph().

CnetCluster()

A “Cnet cluster” network displays the pathways only in one pathway cluster. It is not used very often, and typically is helpful when there might be different sub-networks within one cluster.

CnetCluster(Mpf, cluster = "C")
Concept network (Cnet) showing all pathways from the pathway cluster 'C'.

评论

暂无评论