Cytoscape 2.8.0 API

cytoscape.data
Class CyNetworkUtilities

java.lang.Object
  extended by cytoscape.data.CyNetworkUtilities

public class CyNetworkUtilities
extends Object

This class provides static methods that operate on a CyNetwork to perform various useful tasks. Many of these methods make assumptions about the data types that are available in the node and edge attributes of the network.


Constructor Summary
CyNetworkUtilities()
           
 
Method Summary
static boolean saveSelectedNodeNames(CyNetworkView networkView, CyNetwork network, String filename)
          Saves all selected nodes in the current view to a file with the given name.
static boolean saveVisibleNodeNames(CyNetwork network, String filename)
          Saves all nodes in the given network to a file with the given name.
static boolean selectNodesStartingWith(CyNetwork network, String key, CyNetworkView networkView)
          Selects every node in the current view whose canonical name, label, or any known synonym starts with the string specified by the second argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CyNetworkUtilities

public CyNetworkUtilities()
Method Detail

saveSelectedNodeNames

public static boolean saveSelectedNodeNames(CyNetworkView networkView,
                                            CyNetwork network,
                                            String filename)
Saves all selected nodes in the current view to a file with the given name. TODO: The CyNetworkView is not a needed parameter


saveVisibleNodeNames

public static boolean saveVisibleNodeNames(CyNetwork network,
                                           String filename)
Saves all nodes in the given network to a file with the given name.


selectNodesStartingWith

public static boolean selectNodesStartingWith(CyNetwork network,
                                              String key,
                                              CyNetworkView networkView)
Selects every node in the current view whose canonical name, label, or any known synonym starts with the string specified by the second argument. Note that synonyms are only available if a naming server is available. This method does not change the selection state of any node that doesn't match the given key, allowing multiple selection queries to be concatenated.


Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.