Description Usage Arguments Value Examples
View source: R/pipeline_functions.R
Constructs and returns two graphs for each network layer, where nodes correspond to the rows in the measurement data. Graphs are initially complete and edges are weighted by correlation of measurements across columns. The number of edges is then reduced by either a threshold on the p-value of the correlation or a minimum scale-free fit index. Each node is mapped to the biological identifiers given in the layer and the mapping table is returned as 'annotations'.
1 | generate_individual_graphs(layers, settings)
|
layers |
Named list with different network layers containing data and identifiers for both
groups (generated from |
settings |
A named list containing pipeline settings |
A nested named list with first-level elements 'graphs' and 'annotations'. The second level elements are 'group1' and 'group2'. These contain a list of iGraph objects ('graphs') and data frames ('annotations') mapping the graph node IDs to biological identifiers.
1 2 3 4 5 6 | data(layers_example)
layers <- layers_example
settings <- molnet::molnet_settings(handling_missing_data="pairwise.complete.obs")
individual_graphs <- molnet::generate_individual_graphs(layers, settings)
molnet::graph_metrics(individual_graphs$graphs$group1$mrna)
molnet::graph_metrics(individual_graphs$graphs$group2$mrna)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.