Description Usage Arguments Value
View source: R/networkDFfromMPoutput.R
make node and edge data frames from microPop output to use in visNetwork
1 2 3 4 5 6 7 8 | networkDFfromMPoutput(
chosen.time,
MPoutput,
groupNames = NULL,
sumOverPaths = TRUE,
sumOverStrains = TRUE,
convertToMoles = TRUE
)
|
chosen.time |
the time you want to plot |
MPoutput |
the output from microPopModel() |
groupNames |
Default is NULL which plots all the microbes. To plot a subset of all the groups, specify a vector of strings of the names of the groups you want to plot. |
sumOverPaths |
Logical. Default is TRUE which sums flows between the same nodes even if they are on different metabolic paths |
sumOverStrains |
Logical. Default is TRUE which means the strains are put into their functional group nodes and the flow are summed. When it is FALSE, each strain will have its own node. |
convertToMoles |
Logical. Default is TRUE |
a list containing the edges and nodes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.