|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.dao.PathwayGraphImpl
public class PathwayGraphImpl
a simple pathway graph to detect the structure change.
| Constructor Summary | |
|---|---|
PathwayGraphImpl()
default constructor |
|
| Method Summary | |
|---|---|
void |
addEdge(java.lang.Integer leftId,
java.lang.Integer rightId)
add an edge |
void |
addNode(PathwayElementNode node)
add an element |
java.util.Map |
getAllEbidEidMap()
get the entity blockid->entityid mapping for comparison |
java.util.List |
getAllEbidList()
get all entity node bid list |
java.util.List |
getAllIbidList()
get all interaction node bid list |
java.util.Set |
getContext(java.lang.Integer ibid)
get all entity id around the interaction in specified steps. |
java.util.List |
getDownstreamEntityNodeIdList(java.lang.Integer blockId)
get the downstream entity node id list |
java.util.List |
getDownstreamInteractionNodeIdList(java.lang.Integer blockId)
get the downstream interaction node id list |
java.util.List |
getDownstreamNodeIdList(java.lang.Integer blockId)
get the list of new version record |
PathwayElementNode |
getNode(java.lang.Integer nodeId)
return a node by id |
java.util.Map |
getNodeMap()
|
java.util.Set |
getPbidSet()
|
InteractionStructure |
getSignature(java.lang.Integer ibid)
generate the signature of an interaction based on the entityid, the format is (left entity id 1, left entity id 2, ...; right id 1, right id 2, ...) without any space. |
java.util.List |
getUpstreamEntityNodeIdList(java.lang.Integer blockId)
get the upstream entity node id list |
java.util.List |
getUpstreamInteractionNodeIdList(java.lang.Integer blockId)
get the upstream interaction node id list |
java.util.List |
getUpstreamNodeIdList(java.lang.Integer blockId)
get the list of old version record |
boolean |
isControlInteraction(java.lang.Integer blockId)
if this is a control interaction |
boolean |
isDetachableInteraction(java.lang.Integer ibid)
check if the node specified by the blockid can be detached from the pathway structure |
boolean |
isEntitywithlocation(java.lang.Integer blockId)
if it is an entitywithlocation |
boolean |
isInteraction(java.lang.Integer blockId)
if it is an interaction |
boolean |
isNormalInteraction(java.lang.Integer blockId)
if it is a normal interaction |
PathwayAlignment |
isomorphism(PathwayGraph graph,
AlignmentAlgorithm algorithm)
run isomorphism |
void |
removeNode(java.lang.Integer nodeId)
remove a node from the pathway structure |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathwayGraphImpl()
| Method Detail |
|---|
public void addNode(PathwayElementNode node)
PathwayGraph
addNode in interface PathwayGraphnode - the structure node informationpublic PathwayElementNode getNode(java.lang.Integer nodeId)
getNode in interface PathwayGraphnodeId - the blockid of the node
public void removeNode(java.lang.Integer nodeId)
PathwayGraph
removeNode in interface PathwayGraphnodeId - the node id of the pathway element
public boolean isEntitywithlocation(java.lang.Integer blockId)
throws NoSuchNodeException
PathwayGraph
isEntitywithlocation in interface PathwayGraphblockId - the blockid of the entitywithlocation
NoSuchNodeException - the node id does not exist
public boolean isInteraction(java.lang.Integer blockId)
throws NoSuchNodeException
PathwayGraph
isInteraction in interface PathwayGraphblockId - the blockid of the node
NoSuchNodeException - the node id does not exist
public boolean isNormalInteraction(java.lang.Integer blockId)
throws NoSuchNodeException
PathwayGraph
isNormalInteraction in interface PathwayGraphblockId - the blockid of the node
NoSuchNodeException - the node id does not exist
public boolean isControlInteraction(java.lang.Integer blockId)
throws NoSuchNodeException
PathwayGraph
isControlInteraction in interface PathwayGraphblockId - the blockid of current node
NoSuchNodeException - the node id does not existpublic java.util.List getDownstreamNodeIdList(java.lang.Integer blockId)
PathwayGraph
getDownstreamNodeIdList in interface PathwayGraphblockId - the record id to be query
public java.util.List getUpstreamNodeIdList(java.lang.Integer blockId)
PathwayGraph
getUpstreamNodeIdList in interface PathwayGraphblockId - the recordid to be query
public java.util.List getUpstreamEntityNodeIdList(java.lang.Integer blockId)
PathwayGraph
getUpstreamEntityNodeIdList in interface PathwayGraphblockId - the current node id
public java.util.List getDownstreamEntityNodeIdList(java.lang.Integer blockId)
PathwayGraph
getDownstreamEntityNodeIdList in interface PathwayGraphblockId - the current node id
public java.util.List getUpstreamInteractionNodeIdList(java.lang.Integer blockId)
PathwayGraph
getUpstreamInteractionNodeIdList in interface PathwayGraphblockId - the current node id
public java.util.List getDownstreamInteractionNodeIdList(java.lang.Integer blockId)
PathwayGraph
getDownstreamInteractionNodeIdList in interface PathwayGraphblockId - the current node id
public void addEdge(java.lang.Integer leftId,
java.lang.Integer rightId)
throws NoSuchNodeException
PathwayGraph
addEdge in interface PathwayGraphleftId - the left node idrightId - the right node id
NoSuchNodeException - exception if one of nodes does not existpublic boolean isDetachableInteraction(java.lang.Integer ibid)
graph - the pathway graph structurecheckedBlockId - the blockid of the node to be checked
public java.util.List getAllIbidList()
getAllIbidList in interface PathwayGraphpublic java.util.List getAllEbidList()
getAllEbidList in interface PathwayGraphpublic java.util.Map getAllEbidEidMap()
getAllEbidEidMap in interface PathwayGraphpublic java.util.Map getNodeMap()
getNodeMap in interface PathwayGraph
public PathwayAlignment isomorphism(PathwayGraph graph,
AlignmentAlgorithm algorithm)
isomorphism in interface PathwayGraphgraph - the other pathway graphalgorithm - the alignment algorithm
public InteractionStructure getSignature(java.lang.Integer ibid)
getSignature in interface PathwayGraphibid - the interaction blockid
public java.util.Set getPbidSet()
getPbidSet in interface PathwayGraphpublic java.util.Set getContext(java.lang.Integer ibid)
getContext in interface PathwayGraphibid - the blockid of the interaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||