Personal tools

Cytoscape test: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 37: Line 37:
                 // you could also use other formats (e.g. GraphML) or grab the network data via AJAX
                 // you could also use other formats (e.g. GraphML) or grab the network data via AJAX


                 var sif = 'node1 typeA node2 node3 node4 node5\nnode2 typeB node6';
                 //var sif = 'node1 typeA node2 node3 node4 node5\nnode2 typeB node6';
                  
                  
                 // initialization options
                 // initialization options
Line 57: Line 57:
label: { passthroughMapper: { attrName: "id" } },
label: { passthroughMapper: { attrName: "id" } },
tf: { passthroughMapper: { attrName: "id" } },
tf: { passthroughMapper: { attrName: "id" } },
//tooltipText: "<b>${id}</b><br />${motif}",
tooltipText: "<b>${id}</b><br />${motif}",
                         shape: "ellipse",
                         shape: "ellipse",
                         borderWidth: 1,
                         borderWidth: 1,
Line 67: Line 67:
                     },
                     },
                     edges: {
                     edges: {
                         //width: { passthroughMapper: { attrName: "zscore" } },
                         width: { passthroughMapper: { attrName: "zscore" } },
label: { passthroughMapper: { attrName: "id" } },
label: { passthroughMapper: { attrName: "id" } },
tooltipText: { passthroughMapper: { attrName: "id" } },
tooltipText: { passthroughMapper: { attrName: "id" } },
//tooltipText: "<b>${id}</b><br />${zscore}",
tooltipText: "<b>${id}</b><br />${zscore}",
                         color: "#011e59",
                         color: "#011e59",
targetArrowShape: "delta",
targetArrowShape: "delta",

Revision as of 16:41, 23 April 2012

Cytoscape Web will replace the contents of this div with your graph.