pmcBioinformaticsBioinformatics716bioinfo9808944bioinformaticsBioinformatics1367-48031367-4811Oxford University PressPMC9113354PMC9113354.1911335491133543556116410.1093/bioinformatics/btac175btac1751Applications NotesData and Text MiningAcademicSubjects/SCI01060 CBNplot: Bayesian network plots for enrichment analysishttps://orcid.org/0000-0001-7721-9359SatoNoriaki Department of Biomedical Data Intelligence, Graduate School of Medicine, Kyoto University, Kyoto 606-8507, Japan TamadaYoshinori Department of Biomedical Data Intelligence, Graduate School of Medicine, Kyoto University, Kyoto 606-8507, Japan Innovation Center for Health Promotion, Hirosaki University, Aomori 036-8562, Japan https://orcid.org/0000-0002-6485-8781YuGuangchuang Department of Bioinformatics, School of Basic Medical Sciences, Southern Medical University, Guangzhou 510515, China OkunoYasushi Department of Biomedical Data Intelligence, Graduate School of Medicine, Kyoto University, Kyoto 606-8507, Japan RIKEN Advanced Institute for Computational Sciences, Hyogo 650-0047, Japan LuZhiyongAssociate EditorTo whom correspondence should be addressed. sato.noriaki.o01@kyoto-u.jp15520222532022381040795429592960261020212022022203202224320220942022250320221805202202022023© The Author(s) 2022. Published by Oxford University Press.2022https://creativecommons.org/licenses/by/4.0/This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted reuse, distribution, and reproduction in any medium, provided the original work is properly cited.AbstractSummary

When investigating gene expression profiles, determining important directed edges between genes can provide valuable insights in addition to identifying differentially expressed genes. In the subsequent functional enrichment analysis (EA), understanding how enriched pathways or genes in the pathway interact with one another can help infer the gene regulatory network (GRN), important for studying the underlying molecular mechanisms. However, packages for easy inference of the GRN based on EA are scarce. Here, we developed an R package, CBNplot, which infers the Bayesian network (BN) from gene expression data, explicitly utilizing EA results obtained from curated biological pathway databases. The core features include convenient wrapping for structure learning, visualization of the BN from EA results, comparison with reference networks, and reflection of gene-related information on the plot. As an example, we demonstrate the analysis of bladder cancer-related datasets using CBNplot, including probabilistic reasoning, which is a unique aspect of BN analysis. We display the transformability of results obtained from one dataset to another, the validity of the analysis as assessed using established knowledge and literature, and the possibility of facilitating knowledge discovery from gene expression datasets.

Availability and implementation

The library, documentation and web server are available at https://github.com/noriakis/CBNplot.

Supplementary information

Supplementary data are available at Bioinformatics online.

JSPS KAKENHI Grant-in-Aid for Early-Career Scientists 19K18321 JST COI JPMJCE1302pmc-status-qastatus0pmc-status-liveyespmc-status-embargonopmc-status-releasedyespmc-prop-open-accessyespmc-prop-olfnopmc-prop-manuscriptnopmc-prop-legally-suppressednopmc-prop-has-pdfyespmc-prop-has-supplementyespmc-prop-pdf-onlynopmc-prop-suppress-copyrightnopmc-prop-is-real-versionnopmc-prop-is-scanned-articlenopmc-prop-preprintnopmc-prop-in-epmcyespmc-license-refCC BY
1 Introduction

Identification of differentially expressed genes (DEGs) between conditions, especially disease conditions, and subsequent enrichment analysis (EA) can help infer the biological basis of the differences. In EA, understanding how pathways or genes in a pathway interact with one another can help infer the gene regulatory network (GRN), which is important for studying the underlying molecular mechanisms. However, packages for easily inferring the GRN based on EA are scarce.

Here, we developed CBNplot, an R package that explicitly uses curated biological pathway information with EA to construct the Bayesian network (BN). The unique aspects of the package are probabilistic reasoning and visualization using EA results from clusterProfiler (Wu et al., 2021) family and core functions from bnlearn (Scutari, 2010).

2 Implementation

The core features are convenient wrapping for structure learning, visualization of the BN from EA results and comparison with reference networks using graphite (Sales et al., 2012). For structure learning, the inference is performed using the bootstrap-based approach based on R library bnlearn. Various score-based and constraint-based algorithms can be used to quantitatively calculate the degree of relatedness between genes or pathways with parallel computing according to the functions of bnlearn (Imoto et al., 2002; Scutari, 2010). For genes, the preprocessed expression profile was used to infer the BN, and for pathways, the eigengene in the pathway was used as the pathway expression value (Oldham et al., 2006; Foroushani et al., 2017). The hub genes and edges with high confidence for direction can be further visualized in the network.

Users can additionally connect the dependency score provided by the Dependency Map (DepMap) to the inferred network, especially for cancer-related research (Tsherniak et al., 2017). DepMap calculates the dependency score by genome-scale loss-of-function screens in cancer-related cell lines using the CRISPR/Cas9 system and RNA interference. The R package depmap is used to obtain DepMap data (Killian and Gatto, 2021). Users can specify their cell line or lineage of interest.

3 Results

We illustrate the application using the RNA-Seq data of bladder cancer deposited in the Gene Expression Omnibus database under the accession identifier GSE133624 (Chen et al., 2019) and data from The Cancer Genome Atlas Urothelial Bladder Carcinoma (TCGA-BLCA) and its associated clinical variables (Cancer Genome Atlas Research Network et al., 2013; Colaprico et al., 2016; Robertson et al., 2017). We used DESeq2 to identify DEGs in GSE133624, which were passed to clusterProfiler or ReactomePA to infer the differentially expressed biological pathways (Jassal et al., 2020; Love et al., 2014; Yu and He, 2016). The figure was derived from bnpathplot, a core function of the library performing network inference by the biological pathways as nodes and using the pathway expression values (Fig. 1A).

The CBNplot workflow. Representative plots made using CBNplot are shown. (A) The Bayesian network (BN) plot showing the relationship between pathways significantly related to bladder cancer from the gene and disease ontology. (B) The dotplot showing conditional distribution of the expression of MMP-2 by logic sampling, conditional on the evidence of tumor category. The BN was based on genes belonging to the three pathways in the subtitle.

The inferred networks using EA results can be verified through probabilistic reasoning and classification. We used TCGA-BLCA data and the over-representation analysis results of ReactomePA inferred from the DEGs of GSE133624. We obtained significantly enriched pathways related to the matrix metalloproteinase-2 (MMP-2) gene and constructed the network using the genes in the top three representative pathways as nodes and their expression values by the function bngeneplot. Age and factorized tumor category were included as clinical variables. We sampled the conditional distribution of MMP-2 expression by setting the tumor category as evidence using the wrapper function of cpdist in bnlearn. The resulting distribution of MMP-2 for each category (Fig. 1B) was plotted using the library ggdist (Kay, 2020). The predicted expression considering the network in MMP-2-related pathways increased with tumor category (Kanayama et al., 1998). The application result of the classification of a clinical variable using BN inferred from gene expression values is depicted in Supplementary Text S1 and Supplementary Figures S1 and S2. The runtime and the assessment of network stability are summarized in Supplementary Table S1 and Supplementary Figure S3.

4 Conclusion

CBNplot combines EA results from curated biological pathways, BN inference, probabilistic reasoning and classification using bnlearn, with subsequent visualization. The package aims to infer the BN from the EA results in the defined sets of biological pathways that include basically less than a hundred genes, thus alleviating the number of nodes for the inference in the general computer resources. As the inference of BN from hundreds of nodes is less reliable when the sample size is low, the result should be interpreted carefully. It can highlight interactions between genes and pathways and benefit the identification of candidate genes of interest or hypothesis testing through knowledge mining and visualization.

Supplementary Material

Click here for additional data file.

Acknowledgements

We gratefully acknowledge Dr. Marco Scutari for exporting the function of R package bnlearn.

Funding

This work was partially supported by JSPS KAKENHI Grant-in-Aid for Early-Career Scientists [19K18321] and JST COI [JPMJCE1302].

Conflict of Interest: none declared.

ReferencesCancer Genome Atlas Research Network. et al (2013) The Cancer Genome Atlas Pan-Cancer analysis project. Nat. Genet., 45, 1113–1120.2407184910.1038/ng.2764PMC3919969 Chen X.  et al (2019) 5-Methylcytosine promotes pathogenesis of bladder cancer through stabilizing mRNAs. Nat. Cell Biol., 21, 978–990.3135896910.1038/s41556-019-0361-y Colaprico A.  et al (2016) TCGAbiolinks: an R/Bioconductor package for integrative analysis of TCGA data. Nucleic Acids Res., 44, e71.2670497310.1093/nar/gkv1507PMC4856967 Foroushani,A.  et al (2017) Large-scale gene network analysis reveals the significance of extracellular matrix pathway and homeobox genes in acute myeloid leukemia: an introduction to the Pigengene package and its applications. BMC Med. Genomics, 10, 16.2829821710.1186/s12920-017-0253-6PMC5353782 Imoto S.  et al (2002) Bootstrap analysis of gene networks based on Bayesian networks and nonparametric regression. Genome Inform., 13, 369–370. Jassal B.  et al (2020) The reactome pathway knowledgebase. Nucleic Acids Res., 48, D498–D503.3169181510.1093/nar/gkz1031PMC7145712 Kanayama H.  et al (1998) Prognostic values of matrix metalloproteinase-2 and tissue inhibitor of metalloproteinase-2 expression in bladder cancer. Cancer, 82, 1359–1366.9529029 Kay M. (2020) ggdist: visualizations of distributions and uncertainty. R package version 3.0.0, https://doi.org/10.5281/zenodo.3879620. Killian T. , GattoL. (2021) Exploiting the DepMap cancer dependency data using the Depmap R package. F1000Res, 10, 416. Love M.I.  et al (2014) Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biol., 15, 550.2551628110.1186/s13059-014-0550-8PMC4302049 Oldham,M.C.  et al (2006) Conservation and evolution of gene coexpression networks in human and chimpanzee brains. Proc. Natl. Acad. Sci. U. S. A, 103, 17973–17978.1710198610.1073/pnas.0605938103PMC1693857 Robertson A.G. , et al; TCGA Research Network. (2017) Comprehensive molecular characterization of muscle-invasive bladder cancer. Cell, 171, 540–556. e25.2898876910.1016/j.cell.2017.09.007PMC5687509 Sales G.  et al (2012) graphite - a Bioconductor package to convert pathway topology to gene network. BMC Bioinformatics, 13, 20.2229271410.1186/1471-2105-13-20PMC3296647 Scutari M. (2010) Learning Bayesian networks with the bnlearn R package. J. Stat. Softw., 35, 1–22.21603108 Tsherniak A.  et al (2017) Defining a cancer dependency map. Cell, 170, 564–576. e16.2875343010.1016/j.cell.2017.06.010PMC5667678 Wu T.  et al (2021) clusterProfiler 4.0: a universal enrichment tool for interpreting omics data. Innov. J., 2, 100141.10.1016/j.xinn.2021.100141PMC845466334557778 Yu G. , HeQ.-Y. (2016) ReactomePA: an R/Bioconductor package for reactome pathway analysis and visualization. Mol. Biosyst., 12, 477–479.2666151310.1039/c5mb00663e