Skip to content

bioc/CBNplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CBNplot: Bayesian network plot for the enrichment analysis results

R-CMD-check

Plot bayesian network inferred from expression data based on the enrichment analysis results from libraries including clusterProfiler and ReactomePA using bnlearn.

Installation

BiocManager::install("CBNplot")
library(devtools)
install_github("noriakis/CBNplot")

Usage

Plot examples

  • The gene-to-gene relationship compared with the reference network.

  • The plot is customizable highliting edges and nodes like hub genes.

  • The example using MicrobiomeProfiler, thanks to the fix by @xiangpin.
library(MicrobiomeProfiler)
data(Rat_data)
ko.res <- enrichKO(Rat_data)
exp.dat <- matrix(abs(rnorm(910)), 91, 10) %>% magrittr::set_rownames(value=Rat_data) %>% magrittr::set_colnames(value=paste0('S', seq_len(ncol(.))))
exp.dat %>% head
library(CBNplot)
bngeneplot(ko.res, exp=exp.dat, pathNum=1, orgDb=NULL)

  • Another customized plot.

About

This is a read-only mirror of the git repos at https://bioconductor.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published