netBuild: Building microbial networks

View source: R/netBuild.R

netBuildR Documentation

Building microbial networks

Description

This is a function to build microbial networks using abundance matrix.

Usage

netBuild(
  case_dir,
  control_dir,
  net_case_dir,
  net_control_dir,
  method = "sparcc"
)

Arguments

case_dir

string.The directory of diseased data set.

control_dir

string.The directory of healthy data set.

net_case_dir

string.The directory of network correlation of diseased data set.

net_control_dir

string.The directory of network correlation of healthy data set.

method

string. The method chosen to build microbial networks which can be "sparcc" or "pearson".

Value

microbial networks of case and control data set.

Examples

case_dir = '/tests/case_dir'
control_dir = '/tests/control_dir'
net_case_dir = '/tests/net_case_dir'
net_control_dir = '/tests/net_control_dir'
netBuild(case_dir = case_dir,
     control_dir = control_dir,
     net_case_dir = net_case_dir,
     net_control_dir = net_control_dir,
     method = "sparcc")



xiaolw95/NetMoss documentation built on May 8, 2022, 11:03 p.m.