Learn R Programming

BiOFI (version 0.1.0)

TarNet: TarNet

Description

A function is used to plot a network that consists of microbes and metabolites in the shared pathway from the result of MMfunc() function.

Usage

TarNet(IIS, mm2path, r = 0.1, p_adjust = 0.05)

Value

TarnetPairs A data frame including target network pairs.

Arguments

IIS

The result returned by IIS() function.

mm2path

The results returned by MMfunc() function.

r

A threshold value of correlation coefficient to construct the network. Default value is 0.1.

p_adjust

A threshold value of correlation adjust p value to construct the network. Default value is 0.05.

Examples

Run this code
IIScore <- IIS(microApath = micro.eg, metaApath = metabo.eg,
               conf = confounder.eg, groupInfo = groupInfo.eg)
MMfunc_res <- MMfunc(IIS = IIScore)
TarNet_res <- TarNet(IIS = IIScore, mm2path = MMfunc_res)

Run the code above in your browser using DataLab