graph_interaction: Interaction data frame from igraph graph object

graph_interactionR Documentation

Interaction data frame from igraph graph object

Description

Convert an igraph graph object to interaction data frame. This is the reverse of the operation done by thje interaction_graph function. Networks can be easily converted to igraph objects, then you can make use of all igaph methods, and at the end, get back the interactions in a data frame, along with all new edge and node attributes.

Usage

graph_interaction(graph, implode = FALSE)

Arguments

graph

An igraph graph object created formerly from an OmniPath interactions data frame.

implode

Logical: restore the original state of the list type columns by imploding them to character vectors, subitems separated by semicolons.

Value

An interaction data frame.

See Also

interaction_graph


saezlab/OmnipathR documentation built on Oct. 16, 2024, 11:49 a.m.