target_edge_list: Edges adjacent to target nodes

Description Usage Arguments Value

View source: R/drug_targets.R

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

1
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.


molnet-org/molnet documentation built on Dec. 21, 2021, 8:59 p.m.