Description Usage Arguments Value
View source: R/network_generation.R
(INTERNAL) This function takes two data frames of (biological) identifiers of nodes. Each data frame corresponds to the identifiers of the components contained in the single-layer network of a sample group. This function outputs the same data frames, with an added column ('node_id') that contains node IDs which can later be used as 'name' parameter for an iGraph graph. Node IDs begin with the defined 'prefix' and an underscore. If a molecule is present in both groups, the node ID will be the same across the whole layer, allowing to easily combine the graphs of both groups in 'differential_score()' to calculate differential scores of identical nodes in both sample groups. The function is used by the high-level wrapper generate_individual_graphs to create annotations, which uniquely define nodes across the network layer.
1 | create_unique_layer_node_ids(identifiers1, identifiers2, layer_name)
|
identifiers1, identifiers2 |
Data frames containing the biological identifiers of each group of the same network layer. |
layer_name |
Name of layer node ids are created for |
Returns an named list. Elements 'identifiers1' and 'identifiers2' contain the input data frames with an additional column 'node_id'. 'all' contains all unique node IDs assigned across the network layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.