createNetworkFromIgraph: Create a Cytoscape network from an igraph network

Description Usage Arguments Details Value See Also Examples

View source: R/createNetworkFromIgraph.R

Description

Takes an igraph network and generates data frames for nodes and edges to send to the createNetwork function. Returns the network.suid and applies the perferred layout set in Cytoscape preferences.

Usage

1
2
3
createNetworkFromIgraph(igraph, network.name = "MyNetwork",
  collection.name = "myNetworkCollection",
  base.url = "http://localhost:1234/v1", ...)

Arguments

igraph

(igraph) igraph network object

network.name

(char) network name

collection.name

(char) network collection name

base.url

cyrest base url for communicating with cytoscape

...

params for nodeSet2JSON() and edgeSet2JSON(); see createNetwork

Details

Vertices and edges from the igraph network will be translated into nodes and edges in Cytoscape. Associated attributes will also be passed to Cytoscape as node and edge table columns.

Value

(int) network SUID

See Also

createNetwork, createIgraphFromNetwork

Examples

1

cytoscape/r2cytoscape documentation built on May 4, 2019, 6:36 p.m.