common_neighbors: Shared neighbors of connected vertices

View source: R/WPPI_functions.R

common_neighborsR Documentation

Shared neighbors of connected vertices

Description

For each interacting pair of proteins in the PPI network, store the nodes of the common neighbors. This function works for any igraph graph.

Usage

common_neighbors(graph_op)

Arguments

graph_op

Igraph object based on OmniPath PPI interactions from graph_from_op.

Value

Data frame (tibble) with igraph vertex IDs of connected pairs of vertices (source and target), a list column with the IDs of their common neighbors, and a column with the number of neighbors.

See Also

graph_from_op

Examples

graph_op <- graph_from_op(wppi_omnipath_data())
genes_interest <-
    c("ERCC8", "AKT3", "NOL3", "GFI1B", "CDC25A", "TPX2", "SHE")
graph_op_1 <- subgraph_op(graph_op, genes_interest, 1)
shared_neighbors <- common_neighbors(graph_op_1)


AnaGalhoz37/wppi documentation built on Nov. 8, 2022, 7:47 a.m.