This function is used to create Cytoscape subnetwork aspects.
createCySubNetworks(id, nodes = NULL, edges = NULL)
integer; subnetwork IDs
integer; reference to node id OR character "all" to refer to all nodes
integer; reference to edge id OR character "all" to refer to all edges
Cytoscape contributes aspects that organize subnetworks, attribute tables, and visual attributes for use by its own layout and analysis tools. Furthermore are the aspects used in web-based visualizations like within the NDEx platform.
A group is defined by its unique id, which must be an (positive) integer, which serves as reference to other aspects. If no IDs are provided, they are created automatically.
Nodes and edges are referred by the IDs of the corresponding aspect. Unlike other aspects referring those IDs, the Cytoscape
subnetwork aspect allows to refer to all nodes and edges using the keyword
The relationship between (sub-)networks and views, and also the type (subnetwork or view) is defined in
## a minimal example cySubNetworks = createCySubNetworks( nodes = "all", edges = "all" ) ## defining several subnetworks at once cySubNetworks = createCySubNetworks( nodes = list("all", c(1,2,3)), edges = list("all", c(0,2)) ) ## with all parameters cySubNetworks = createCySubNetworks( id = c(0,1), nodes = list("all", c(1,2,3)), edges = list("all", c(0,2)) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.