public class IDARESettingsManager extends Object
Constructor and Description |
---|
IDARESettingsManager()
Initialize the IDare Manager
|
Modifier and Type | Method and Description |
---|---|
void |
addIDs(Collection<Long> ids)
Add all IDs of the collection to this manager.
|
static Set<String> |
getNetworkIDAREIDs(org.cytoscape.model.CyNetwork network,
String IDCol)
Get the set of nodeIDs present in the provided network
|
long |
getNextGeneID()
Get the next gene ID which is the largest current ID + 1
This Id should be used otherwise it will be blocked for this manager.
|
long |
getNextNetworkID()
Get the next network ID which is the largest current ID + 1
This Id should be used otherwise it will be blocked for this manager.
|
long |
getNextNodeID()
Get the next ID which is the largest current ID + 1
This Id should be used otherwise it will be blocked for this manager.
|
long |
getNextProteinComplexID()
Get the nextprotein Complex ID which is the largest current ID + 1
This Id should be used otherwise it will be blocked for this manager.
|
long |
getNextProteinID()
Get the next protein ID which is the largest current ID + 1
This Id should be used otherwise it will be blocked for this manager.
|
String |
getSubNetworkType(String targetType)
Get the IDAREType associated with a specific Target Type for the subnetwork generation.
|
String |
getType(String name)
Get the Type associated with a specific Name.
|
void |
handleSessionLoadedEvent(org.cytoscape.session.events.SessionLoadedEvent arg0)
Handle the loading of a session
|
static void |
initNetwork(org.cytoscape.model.CyNetwork network)
Set up the provided network using the Provided IDCol for the IDARE Names and the NodeTypesCol for the IDARE Node Types
|
static boolean |
isSetupNetwork(org.cytoscape.model.CyNetwork network)
Test whether a Network has the table Columns required for usage in IDARE
|
static void |
resetNetworks(Collection<org.cytoscape.model.CyNetwork> networks) |
void |
resetSubNetworkTypes()
Reset the SubNetworkTypes.
|
static void |
setIDARENames(org.cytoscape.model.CyNetwork network,
Collection<String> IDs,
String ColForNames)
Set the matching IDARENames to the values set in the Selected Column(except that Strings will be used in the IDARE_NAME column
|
static void |
SetNetworkData(org.cytoscape.model.CyNetwork network,
IDARESettingsManager IDAREIdmgr,
String NodeTypeCol,
String IDCol,
boolean overwrite,
NodeManager nm)
Set up the provided network using the Provided IDCol for the IDARE Names and the NodeTypesCol for the IDARE Node Types
|
void |
setSubNetworkType(String IDAREType,
String targetType)
Set the IDAREType associated with a specific Target Type for subnetwork generation.
|
void |
setType(String IDAREType,
String targetType)
Set the IDAREType associated with a specific Target Type.
|
static void |
SetupNetwork(org.cytoscape.model.CyNetwork network,
IDARESettingsManager IDAREIdmgr,
String NodeTypeCol,
String IDCol)
Set up the provided network using the Provided IDCol for the IDARE Names and the NodeTypesCol for the IDARE Node Types
|
public long getNextProteinID()
public long getNextGeneID()
public long getNextProteinComplexID()
public long getNextNodeID()
public long getNextNetworkID()
public void addIDs(Collection<Long> ids) throws IllegalArgumentException
ids
- - The ids that need to be checkedIllegalArgumentException
- - If the provided ID is already present in this Manager this exception is thrown
IF an exception is thrown, the Manager is still valid and none of the provided ids has been added.public String getType(String name)
name
- the name to request the type for..public void setType(String IDAREType, String targetType)
IDAREType
- The IDAREType for a specified targettype (i.e. entries from IDAREProperties
;targetType
- The type to match to the given IDARETypepublic void resetSubNetworkTypes()
public void setSubNetworkType(String IDAREType, String targetType)
IDAREType
- The IDAREType to assign a string totargetType
- The string the IDAREType should be assigned to.public String getSubNetworkType(String targetType)
targetType
- the type to extract an IDAREType for.public void handleSessionLoadedEvent(org.cytoscape.session.events.SessionLoadedEvent arg0)
arg0
- - The SessionLoadedEvent to use.public static void resetNetworks(Collection<org.cytoscape.model.CyNetwork> networks)
public static void SetupNetwork(org.cytoscape.model.CyNetwork network, IDARESettingsManager IDAREIdmgr, String NodeTypeCol, String IDCol)
network
- the network to set upIDAREIdmgr
- A IDARE ID Manager to set up the IDs of allNodeTypeCol
- The Column indicating the node type.IDCol
- The Column name indicating the node IDpublic static void SetNetworkData(org.cytoscape.model.CyNetwork network, IDARESettingsManager IDAREIdmgr, String NodeTypeCol, String IDCol, boolean overwrite, NodeManager nm)
network
- - the network to set upIDAREIdmgr
- - A IDARE ID Manager to set up the IDs of allNodeTypeCol
- The Column indicating the node type.IDCol
- The Column name indicating the node IDoverwrite
- Whether to overwrite existing names and types.nm
- The nodemanager, which should be updated according to the overwritten entries.public static boolean isSetupNetwork(org.cytoscape.model.CyNetwork network)
network
- The network to test.public static void setIDARENames(org.cytoscape.model.CyNetwork network, Collection<String> IDs, String ColForNames)
network
- - the network for which to assign the namesIDs
- - The IDs which are transferredColForNames
- - The Column to get the IDs from.public static void initNetwork(org.cytoscape.model.CyNetwork network)
network
- - the network to set uppublic static Set<String> getNetworkIDAREIDs(org.cytoscape.model.CyNetwork network, String IDCol)
network
- - the CyNetwork
to retrieve the nodeids fromIDCol
- - The column in the networks node CyTable
containing the IDs.Set
of IDs present in the provided networkCopyright © 2018. All rights reserved.