Learn R Programming

molnet (version 0.1.0)

target_edge_list: 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 find differential scores in the networks.

Usage

target_edge_list(graph, target_nodes, group)

Arguments

graph

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 `group1` and `group2` (boolean values specifying whether the node is contained in the combined graph of the group)

group

Character. Indicates which group is analyzed.

Value

An edge list as a data frame.