show_network: Visualize node neighborhood with SigmaJS

View source: R/netvis.R

show_networkR Documentation

Visualize node neighborhood with SigmaJS

Description

This function takes an OmniPath interaction data frame as input and returns a sigmaJS object for the subgraph formed by the neighbors of a node of interest.

Usage

show_network(interactions, node = NULL)

Arguments

interactions

An OmniPath interaction data frame.

node

The node of interest.

Value

A sigmaJS object, check http://sigmajs.john-coene.com/index.html for further details and customization options.

Examples

## Not run: 
# get interactions from omnipath
interactions <- omnipath()
# create and plot the network containing ATM neighbors
viz_sigmajs_neighborhood(interactions_df = interactions, int_node = "ATM")

## End(Not run)


saezlab/OmnipathR documentation built on Nov. 10, 2024, 11:02 p.m.