Differences between revisions 3 and 4
Revision 3 as of 2006-02-28 02:00:37
Size: 873
Editor: pix39
Comment:
Revision 4 as of 2006-02-28 02:04:09
Size: 879
Editor: pix39
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
CyNetwork [] groups = someAlgorithm.calculateGroups(someArgs); {{{CyNetwork}}} [] groups = someAlgorithm.calculateGroups(someArgs);

Please review the Java-Docs at http://db.systemsbiology.net/cytoscape/grouping/doc/ and comment.

To give you a better idea of how the interfaces work together, here is an example:

Example 1. Algorithm calculated groups:

CyNetwork [] groups = someAlgorithm.calculateGroups(someArgs); groupManager.addGroupsToNetwork(myNetwork); GroupingStrategy collapsingStrategy = GroupingStrategyFactory.createGroupingStrategy(GroupingStrategyFactory.COLLAPSING_STRATEGY); GroupingStrategy stackingStrategy = GrouupingStrategyFactory.createGroupingStrategy(GroupingStrategyFactory.STACKING_STRATEGY); for(int i = 0; i < groups.length; i++){

  • if(groups[i].nodeCount() > SOME_LIMIT){

    • collapsingStrategy.group(myNetwork,groups[i]); // this collapses the groups
    }else{
    • stackingStrategy.group(myNetwork,groups[i]); // this aligns the nodes in a stack
    }

}

API (last edited 2009-02-12 01:04:00 by localhost)

Funding for Cytoscape is provided by a federal grant from the U.S. National Institute of General Medical Sciences (NIGMS) of the Na tional Institutes of Health (NIH) under award number GM070743-01. Corporate funding is provided through a contract from Unilever PLC.

MoinMoin Appliance - Powered by TurnKey Linux