|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.data.Semantics
public class Semantics
This class defines names for certain data attributes that are commonly used within Cytoscape. The constants defined here are provided to enable different modules to use the same name when referring to the same conceptual attribute. This class also defines some static methods for assigning these attributes to a network, given the objects that serve as the source for this information.
Field Summary | |
---|---|
static String |
BIOLOGICAL_PROCESS
|
static String |
CANONICAL_NAME
The name "CANONICAL_NAME" is an historical artifact. |
static String |
CELLULAR_COMPONENT
|
static String |
DNA
|
static String |
GO_ALIASES
|
static String |
GO_COMMON_NAME
|
static String |
INTERACTION
|
static String |
MOLECULAR_FUNCTION
|
static String |
MOLECULE_TYPE
|
static String |
PROTEIN
|
static String |
RNA
|
static String |
SPECIES
|
Constructor Summary | |
---|---|
Semantics()
|
Method Summary | |
---|---|
static void |
applyNamingServices(CyNetwork network)
This method should be called in the process of creating a new network, or upon loading a new bioDataServer. |
static boolean |
areSynonyms(String firstName,
String secondName,
CyNetwork network)
This method is used to determine if two, potentially different names really refer to the same thing; that is, the two names are synonyms. |
static void |
assignCommonNames(CyNetwork network,
BioDataServer bioDataServer)
This method takes every canonical name defines in the node attributes of the given network, and attempts to assign a common name by getting a list of synonyms for the canonical name from the bioDataServer and using the first synonym as the common name. |
static void |
assignNodeAliases(CyNode node,
String species,
BioDataServer bds)
Use the given BioDataServer to set all of the aliases for a node, given its species. |
static void |
assignSpecies(CyNetwork network)
This method attempts to set a species attribute for every canonical name defined in the node attributes member of the supplied network. |
static List |
getAllSynonyms(String name,
CyNetwork network)
This method returns a list of all names that are synonyms of the given name. |
static String |
getInteractionType(CyNetwork network,
Edge edge)
Returns the interaction type of the given edge. |
static String[] |
getInteractionTypes(CyNetwork network)
Returns an array containing all of the unique interaction types present in the network. |
static Set |
getSpeciesInNetwork(CyNetwork network)
Returns every unique species defined in the supplied network. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CANONICAL_NAME
public static final String GO_COMMON_NAME
public static final String GO_ALIASES
public static final String SPECIES
public static final String INTERACTION
public static final String MOLECULE_TYPE
public static final String PROTEIN
public static final String DNA
public static final String RNA
public static final String MOLECULAR_FUNCTION
public static final String BIOLOGICAL_PROCESS
public static final String CELLULAR_COMPONENT
Constructor Detail |
---|
public Semantics()
Method Detail |
---|
public static void applyNamingServices(CyNetwork network)
public static void assignSpecies(CyNetwork network)
public static Set getSpeciesInNetwork(CyNetwork network)
public static void assignNodeAliases(CyNode node, String species, BioDataServer bds)
Note: This is only for GO data!
node
- the Node that will be assigned namesspecies
- the species of the Node ( NOTE: if null, there will be a check
to see if the node has a species set for attribute
Semantics.SPECIES, if not, then the general Cytoscape
defaultSpecies ( settable with -s ) will be used. )bds
- the given BioDataServer ( NOTE: if null, then the general
Cytoscape BioDataServer will be used ( settable with -b ) ).public static void assignCommonNames(CyNetwork network, BioDataServer bioDataServer)
public static String[] getInteractionTypes(CyNetwork network)
public static String getInteractionType(CyNetwork network, Edge edge)
public static boolean areSynonyms(String firstName, String secondName, CyNetwork network)
public static List getAllSynonyms(String name, CyNetwork network)
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |