View source: R/01_flowgraph_accessors.R
fg_get_summary_index | R Documentation |
Retrieves the index of the requested summary from a given flowGraph object.
fg_get_summary_index(fg, type = "node", index = NULL, summary_meta = NULL)
fg |
flowGraph object. |
type |
A string indicating feature type the summary was created for 'node' or 'edge'. |
index |
The user must provide
|
summary_meta |
The user must provide
|
An integer analagous to index
.
If both index
and summary_meta
are NULL
, returns 1.
flowGraph-class
fg_get_summary_desc
fg_add_summary
fg_rm_summary
fg_plot
no_cores <- 1
data(fg_data_pos30)
fg <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class,
no_cores=no_cores)
# set features to NULL to apply summary statistic to all features.
fg <- fg_summary(fg, no_cores=no_cores, class="class", label1="control",
overwrite=FALSE, test_name="t", diminish=FALSE,
node_features=NULL, edge_features=NULL)
show(fg)
index <- flowGraph:::fg_get_summary_index(
fg, type="node", summary_meta=list(
feature="SpecEnr", test_name="t", class="class",
label1="control", label2="exp"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.