(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.
create_unique_layer_node_ids(identifiers1, identifiers2, layer_name)Data frames containing the biological identifiers of each group of the same network layer.
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.