Cytoscape test2: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 49: | Line 49: | ||
var edges = vis.selected("edges"); | var edges = vis.selected("edges"); | ||
var nodes = vis.selected("nodes"); | var nodes = vis.selected("nodes"); | ||
selected = ((edges.length > 0) || (nodes.length > 0)); | selected = ((edges.length > 0) || (nodes.length > 0)); | ||
vis.visualStyle(visual_style); | vis.visualStyle(visual_style); | ||
} | } | ||
Line 84: | Line 62: | ||
entries: [ { attrValue: "motif", value: "#ff9900" }, | entries: [ { attrValue: "motif", value: "#ff9900" }, | ||
{ attrValue: "tf", value: "#0099ff" } ] | { attrValue: "tf", value: "#0099ff" } ] | ||
}; | }; | ||
Line 135: | Line 103: | ||
// initialization options | // initialization options | ||
var options = { | |||
// where you have the Cytoscape Web SWF | |||
swfPath: "/resource_browser/rb_js/cytoscapeweb/swf/CytoscapeWeb", | |||
// where you have the Flash installer SWF | |||
flashInstallerPath: "/resource_browser/rb_js/cytoscapeweb/swf/playerProductInstall" | |||
}; | |||
var vis = new org.cytoscapeweb.Visualization(div_id, options); | var vis = new org.cytoscapeweb.Visualization(div_id, options); |
Revision as of 14:14, 25 April 2012
FF:10563-108A5
Cytoscape Web will replace the contents of this div with your graph.
TF to TF network. Motif is an attribute of the source TF node. Promoter is an attribute of the TF to TF edge.