Skip to content

CMiNetShinyApp designed to generate consensus microbiome networks by integrating results from multiple network construction algorithms

License

Notifications You must be signed in to change notification settings

solislemuslab/CMiNetShinyAPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMiNetShinyAPP

GitHub license GitHub Issues Code Size GitHub Releases

Description

CMiNetShinyApp is a Shiny application designed to construct consensus microbiome networks by integrating results from multiple network construction algorithms. Tailored specifically for microbiome data, this tool captures the intricate relationships between microbial taxa, offering insights into complex biological systems and their impacts on health and disease.

The CMiNetShinyApp incorporates a variety of established algorithms, including Pearson and Spearman correlation, Biweight midcorrelation, Sparse Correlations for Compositional data (SparCC), Sparse InversE Covariance estimation for Ecological Association and Statistical Inference (SpiecEasi), Semi-Parametric Rank-based Correlation and Partial Correlation Estimation (SPRING), Generalized Co-Occurrence Differential Abundance analysis (gCoda), Correlation Inference for Compositional Data through Lasso (CCLasso), and a novel algorithm based on conditional mutual information (CMIMN). These algorithms generate individual microbial association networks, which CMiNet combines into a single, weighted consensus network. By integrating the strengths of each method, CMiNet delivers a robust and comprehensive representation of microbial interactions.

Table of Contents

Methods Included in CMiNet ShinyAPP

CMiNet ShinyAPP employs a range of established algorithms to construct individual microbial association networks, including:

CMiNet combines these networks into a single, weighted consensus network, leveraging the strengths of each method to provide a comprehensive and reliable representation of microbial interactions.

CMiNet Shiny App

The CMiNet Shiny App simplifies the process of constructing, visualizing, and analyzing microbiome networks. It includes the following features:

  • CMiNet: Construct a weighted network, select algorithms, and download results.
  • Visualization: This visualization compares network structures based on four different thresholds. Below each network depicts the number of nodes with degree > 0 (NN Deg >0), the number of edges (N Edges), and the maximum degree value in the network (Max-Deg).
  • Final Network: Explore the final network based on user-defined thresholds.
  • About: Access detailed information about running and interpreting CMiNet results.

Source Code

The CMiNetShinyApp is an open-source project, and its source code is available in this repository. The main web app code is located in app.R.

Running the web apps locally

To run the app locally, follow these steps: 1- Clone the Repository: Download the code from GitHub using the following command:

git clone https://github.com/solislemuslab/CMiNetShinyAPP.git

2- Install Required Dependencies: Ensure all required R packages are installed. Use the following script to install them:

install.packages(c("devtools", "shiny", "shinyWidgets", "shinyBS", 
                   "igraph", "tidyverse", "visNetwork"))

devtools::install_github("solislemuslab/CMiNet")

# Install dependencies for SPRING and SpiecEasi (order matters):
devtools::install_github("zdk123/[email protected]")
devtools::install_github("GraceYoon/SPRING")

If you encounter errors during installation, ensure you manually install any missing dependencies. 3- Run the App: Open the project file CMiNet_shinyapp.Rproj and run the app using:

shiny::runApp()
  1. Running Instructions: Once the app is running, you can upload your microbiome dataset, select algorithms, and explore results in the visualization tab. Use the sample dataset provided to familiarize yourself with the workflow.

CMiNet ShinyApp Sample Data

The CMiNet ShinyApp includes a sample dataset from the American Gut Project (available via the SpiecEasi package) to demonstrate its functionality. You can download this Sample Gut Microbiome Dataset to explore the required data format. Additionally, the Weighted Gut Microbiome Network generated by CMiNet ShinyApp using this sample data is available for download, allowing you to examine the output and functionality of the tool in detail.

Define the parameter on all Algorithms

The CMiNet ShinyApp enables users to customize the default parameters of each algorithm to suit their specific research needs and preferences. Below is a list of parameters for the various algorithms, pre-configured with default settings, which can be adjusted as needed.

  • sparcc_params = list(imax = 20, kmax = 10, alpha = 0.1, Vmin = 1e-4)
  • spiecEasi_mb_params= list(method = 'mb', lambda.min.ratio = 1e-2, nlambda = 15, pulsar.params = list(rep.num = 20, ncores = 4))
  • spiecEasi_glasso_params =params = list(method = 'glasso', lambda.min.ratio = 1e-2, nlambda = 15, pulsar.params = list(rep.num = 50), ncores = 4))
  • spring_params = list(Rmethod = "original", quantitative = TRUE, ncores = 5, lambdaseq = "data-specific", nlambda = 15, rep.num = 20)
  • gcoda_params = list(counts = FALSE, pseudo = 0.5, lambda.min.ratio = 1e-4, nlambda = 15, ebic.gamma = 0.5)
  • c_MI_params = list(quantitative = TRUE, q1 = 0.7, q2 = 0.95)
  • cclasso_params = list(counts = FALSE, pseudo = 0.5, k_cv = 3, lam_int = c(1e-4, 1), k_max = 20, n_boot = 20)

Sample Data Result from CMiNet ShinyApp

The following figure represents the result of running the CMiNet ShinyApp on the sample dataset. This visualization was generated using the Visualization Tab, showcasing the weighted microbiome network constructed from the sample data. The figure illustrates the intricate microbial associations derived from the consensus network methodology.

Reporting Issues and Asking Questions

If you encounter a bug, experience a failed function, or have a feature request, please open an issue in the GitHub issue tracker.

License

CMiNet ShinyApp is licensed under the GNU General Public License v3.0 (GPL-3). © Solis-Lemus Lab (2024).

Citation

If you use CMiNet ShinyApp in your work, we kindly ask that you cite the following paper:

@article{aghdam2024,
  year = {2024},
  publisher = {In process},
  author = {Rosa Aghdam, Shan Shan, Richard Lankau and Claudia Solis-Lemus},
  title = {Leveraging Machine Learning and Enhanced Network-based methods in Potato Disease Interactions}
}
@article{aghdam2024_2,
  year = {2024},
  journal={arXiv preprint arXiv:2411.08309},
  author = {Rosa Aghdam and Claudia Solis-Lemus},
  title = {CMiNet: R package for learning the Consensus Microbiome Network}
} 

About

CMiNetShinyApp designed to generate consensus microbiome networks by integrating results from multiple network construction algorithms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages