Package org.biopax.paxtools.pattern.util
Class PhysicalEntityChain
java.lang.Object
org.biopax.paxtools.pattern.util.PhysicalEntityChain
This class takes two PhysicalEntity objects linked with generic or complex member relationships,
and prepares an array of PEs that link those.
- Author:
- Ozgun Babur
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final PathAccessorAccessor to the modification term.protected static final PathAccessorAccessor to the modification term.Array that links two ends of the chain. -
Constructor Summary
ConstructorsConstructorDescriptionPhysicalEntityChain(PhysicalEntity small, PhysicalEntity big) Constructor with endpoints. -
Method Summary
Modifier and TypeMethodDescriptionChecks if the chain has a member with an activity label.protected PhysicalEntity[]fillArray(PhysicalEntity parent, PhysicalEntity target, int depth, int dir) Creates the chain that links the given endpoints.Retrieves the cellular location of the PhysicalEntity.Collects modifications from the elements of the chain.booleanChecks if two chains intersect without ignoring endpoint intersection.booleanintersects(PhysicalEntityChain rpeh, boolean ignoreEndPoints) Checks if two chains intersect.
-
Field Details
-
pes
Array that links two ends of the chain. -
PE2TERM
Accessor to the modification term. -
PE2FEAT
Accessor to the modification term.
-
-
Constructor Details
-
PhysicalEntityChain
Constructor with endpoints. The end points are differentiated with the terms small and big. This refers to a hierarchy in the relation. Small means you will get to this end while going towards MEMBER direction, and big means this end is at the COMPLEX direction. To understand this please see the directions in LinkedPE.- Parameters:
small- member end of the chainbig- complex end of the chain- See Also:
-
-
Method Details
-
fillArray
protected PhysicalEntity[] fillArray(PhysicalEntity parent, PhysicalEntity target, int depth, int dir) Creates the chain that links the given endpoints.- Parameters:
parent- current elementtarget- target at the member enddepth- current depthdir- current direction to traverse homologies- Returns:
- array of entities
-
getCellularLocations
Retrieves the cellular location of the PhysicalEntity.- Returns:
- cellular location of the PhysicalEntity
-
intersects
Checks if two chains intersect without ignoring endpoint intersection.- Parameters:
rpeh- second chain- Returns:
- true if they intersect
-
intersects
Checks if two chains intersect.- Parameters:
rpeh- second chainignoreEndPoints- flag to ignore intersections at the endpoints of the chains- Returns:
- true if they intersect
-
checkActivityLabel
Checks if the chain has a member with an activity label.- Returns:
- the activity status found
-
getModifications
Collects modifications from the elements of the chain.- Returns:
- modifications
-