Skip to contents

R Installation

R (http://www.r-project.org) is a language and environment for statistical computing and graphics. We assume R (version 4.0.0 or higher) has been installed in your local machine. The latest version can be installed following instructions below for different platforms (Windows, Mac, and Linux).

#Ensure you have the conda:
conda install -c conda-forge r-base

MNet Installation

MNet requires R version 4.0.0 or higher, please see https://cran.r-project.org.

MNet is available for all operating systems and can be installed via the Github.

if(!require(BiocManager)){
  install.packages("BiocManager")
}

if (!require(remotes)) {
  BiocManager::install("remotes", dependencies=T)
}

if (!require(devtools)) {
  BiocManager::install("devtools", dependencies=T)
}

BiocManager::install("hfang-bristol/dnet", dependencies=T)
BiocManager::install("tuantuangui/MNet", dependencies=T)

#If the installation of MNet is failed, please install the failed dependency package again, such as if the ERROR is "ERROR: dependencies ‘xxx’ is not available for package ‘MNet’", please install the 'xxx' package again.

Check the package ‘MNet’ successfully installed

library(help=MNet)

Frequently Asked Questions

  1. Can not install dependent packages dnet
    If the ERROR is “Error: Failed to install ‘dnet’ from GitHub: Could not resolve host: api.github.com”, please try it again.
BiocManager::install("hfang-bristol/dnet", dependencies=T)

Usage

  • Extended pathway analysis can be found here

  • Metabolism-related subnetwork analysis can be found here

  • Routine analysis can be found here