Learn R Programming

DrDimont (version 0.1.4)

target_edge_list: [INTERNAL] Get edges adjacent to target nodes

Description

[INTERNAL] Based on the supplied graph and target nodes this function returns a list of edges that are directly adjacent to target nodes. These edges can be used for further computation to compute the integrated interaction scores and differential scores in the networks.

Usage

target_edge_list(graph, target_nodes, group)

Value

An edge list as a data frame.

Arguments

graph

[igraph] Combined graph (iGraph graph object) for a specific group

target_nodes

[data.frame] Has column `node_id` (unique node IDs in the iGraph graph object that are targeted by drugs) and columns `groupA` and `groupB` (bool values specifying whether the node is contained in the combined graph of the group)

group

[string] Indicates which group `groupA` or `groupB` is analyzed