Class ConBox
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConBox
Some predefined constraints.
- Author:
- Ozgun Babur
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstraintFrom PhysicalEntity to its parent Complex recursively.static ConstraintFrom Complex to its members recursively (also getting member of the inner complexes).static ConstraintcompToER()From Complex or SimplePhysicalEntity to the related EntityReference.static ConstraintFrom Control to the controlled Processstatic ConstraintFrom Control to the controller PhysicalEntitystatic ConstraintFrom PhysicalEntity to the controlled Conversion, skipping the middle Control.static ConstraintFrom PhysicalEntity to the controlled Interaction, skipping the middle Control.static ConstraintFrom Control to the controlled Conversion, traversing downstream Controls recursively.static ConstraintFrom Control to the controlled Interaction, traversing downstream Controls recursively.static ConstraintFrom Control to the controlled TemplateReaction, traversing downstream Controls recursively.static ConstraintFrom Conversion to the upstream Control (and its upstream Control recursively).static ConstraintFrom Conversion to the controller of the upstream Control (and its upstream Control recursively).static ConstraintdifferentialActivity(boolean activating) Gets a constraint to ensure that ensures only one of the two PhysicalEntities has an activity.static Constraintequal(boolean equal) Makes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards complex direction.static ConstrainterToPE()From EntityReference to the member PhysicalEntitystatic ConstraintFrom PhysicalEntity to its generic equivalents, i.e.static ConstraintChecks if two physical entities have non-empty and different compartments.static ConstrainthasProvenance(String name) Makes sure that the object is associated with a Provenance with the given name.static ConstraintMakes sure that the object has an Xref with the given ID.static ConstraintMakes sure that the two interactions are members of the same pathway.static ConstraintFrom Interaction to the upstream Control (and its upstream Control recursively).static ConstraintFrom Interaction to the controlling Controls recursively, and their controller PEs.static ConstraintFrom Interaction to the related PhysicalEntity.static ConstraintisBait()Checks if the molecule is a bait of a Y2H experiment.static ConstraintisHuman()Makes sure the EntityReference or the PhysicalEntity belongs to human.static ConstraintisPrey()Checks if the molecule is a prey of a Y2H experiment.static Constraintleft()From Conversion to its left participants.static ConstraintlinkedER(boolean up) static ConstraintMakes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards complex direction.static ConstraintlinkToComplex(Blacklist blacklist) Makes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards complex direction.static ConstraintlinkToSimple(Blacklist blacklist) Makes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards member direction.static ConstraintMakes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards member direction.static ConstraintmaxDegree(int limit) Makes sure the participant degree (number of Conversions that this is a participant) of the PhysicalEntity is less than or equal to the parameter.static ConstraintmodificationConstraint(String modifTerm) Makes sure that the PhysicalEntity or any linked PE contains the modification term.static ConstraintMakes sure that the PhysicalEntity is controlling more reactions than it participates (excluding complex assembly).static ConstraintnameEquals(String name) Filters Named to contain a specific name.static ConstraintnameEquals(String... name) Filters Named to contain a name from the input set.static ConstraintStarts from an Interaction and gets next Interactions in temporal order, if ever defined in a Pathway.static ConstraintMakes sure that the second element (PhysicalEntity) is not a participant of the first element (Interaction).static ConstraintMakes sure the Interaction has no Controlstatic ConstraintMakes sure the second element (Control) is not a controller to the first element (Interaction).static ConstraintMakes sure that the PhysicalEntity do not have member physical entities..static ConstraintMakes sure a PhysicalEntity of any linked member PhysicalEntities toward members are not labeled as inactive.static ConstraintFrom Interaction to its PhysicalEntity participants.static ConstraintFrom Interaction to the related EntityReference of its participants.static ConstraintFrom PhysicalEntity to the Conversion that it participates.static ConstraintFrom PhysicalEntity to the Interaction that it participates.static ConstraintMakes sure that the given physical entity is not related to the entity reference.static ConstraintFrom PhysicalEntity to the downstream Controlstatic ConstraintFrom PhysicalEntity to the downstream Conversion.static ConstraintFrom PhysicalEntity to the downstream Interaction.static ConstraintpeToER()From SimplePhysicalEntity to its EntityReference.static ConstraintFrom PhysicalEntity to the related Interaction.static Constraintproduct()From TemplateReaction to its products.static Constraintright()From Conversion to its right participants.static ConstraintFrom complex to its simple members (members which are of type SimplePhysicalEntity) recursively.static ConstraintsimplePEToConv(RelType type) From simple PhysicalEntity to related Conversion.static Constraintstatic Constrainttype(Class<? extends BioPAXElement> clazz) Creates an element type constraint.static ConstraintFrom PhysicalEntity to parent Complex recursively, or to itself.static ConstraintFrom Complex to its members, or the complex itself.static ConstraintFrom complex to its simple members recursively, or the Complex itself
-
Constructor Details
-
ConBox
public ConBox()
-
-
Method Details
-
erToPE
From EntityReference to the member PhysicalEntity- Returns:
- generative constraint to get to the member PhysicalEntity of the EntityReference
-
peToER
From SimplePhysicalEntity to its EntityReference.- Returns:
- generative constraint to get the EntityReference of the SimplePhysicalEntity
-
peToControl
From PhysicalEntity to the downstream Control- Returns:
- generative constraint to get the Control that the PhysicalEntity is a controller
-
peToControlledConv
From PhysicalEntity to the downstream Conversion.- Returns:
- generative constraint to get the Conversion that the PhysicalEntity is a controller
-
peToControlledInter
From PhysicalEntity to the downstream Interaction.- Returns:
- generative constraint to get the Interaction that the PhysicalEntity is a controller
-
peToInter
From PhysicalEntity to the related Interaction.- Returns:
- generative constraint to get the Interaction that the PhysicalEntity is a controller
-
simplePEToConv
From simple PhysicalEntity to related Conversion. The relation can be through complexes and generics.- Parameters:
type- relationship type- Returns:
- generative constraint
-
interToPE
From Interaction to the related PhysicalEntity.- Returns:
- the constraint
-
controlled
From Control to the controlled Process- Returns:
- generative constraint to get the controlled Process of the Control
-
controllerPE
From Control to the controller PhysicalEntity- Returns:
- generative constraint to get the controller PhysicalEntity of the Control
-
controlToConv
From Control to the controlled Conversion, traversing downstream Controls recursively.- Returns:
- generative constraint to get the downstream (controlled) Conversion of the Control
-
controlToTempReac
From Control to the controlled TemplateReaction, traversing downstream Controls recursively.- Returns:
- generative constraint to get the downstream (controlled) TemplateReaction of the Control
-
controlToInter
From Control to the controlled Interaction, traversing downstream Controls recursively.- Returns:
- generative constraint to get the downstream (controlled) Interaction of the Control
-
convToControl
From Conversion to the upstream Control (and its upstream Control recursively).- Returns:
- generative constraint to get the upstream Controls of the Conversion
-
convToController
From Conversion to the controller of the upstream Control (and its upstream Control recursively).- Returns:
- the constraint
-
interToControl
From Interaction to the upstream Control (and its upstream Control recursively).- Returns:
- generative constraint to get the upstream Controls of the Interaction
-
controlsConv
From PhysicalEntity to the controlled Conversion, skipping the middle Control.- Returns:
- generative constraint to get the Conversion that the PhysicalEntity controls
-
controlsInteraction
From PhysicalEntity to the controlled Interaction, skipping the middle Control.- Returns:
- generative constraint to get the Interaction that the PhysicalEntity controls
-
nextInteraction
Starts from an Interaction and gets next Interactions in temporal order, if ever defined in a Pathway.- Returns:
- generative constraint
-
genericEquiv
From PhysicalEntity to its generic equivalents, i.e. either parent PhysicalEntity recursively or member PhysicalEntity recursively. Note that another member of the parent is not a generic equivalent.- Returns:
- generative constraint to get the generic equivalents of the PhysicalEntity
-
complexMembers
From Complex to its members recursively (also getting member of the inner complexes).- Returns:
- generative constraint to get the members of the Complex
-
simpleMembers
From complex to its simple members (members which are of type SimplePhysicalEntity) recursively.- Returns:
- generative constraint to get the simple members of the Complex recursively
-
withComplexMembers
From Complex to its members, or the complex itself.- Returns:
- generative constraint to get the members of a complex and to itself
-
withSimpleMembers
From complex to its simple members recursively, or the Complex itself- Returns:
- generative constraint to get the simple members of the Complex recursively, or the Complex itself
-
complexes
From PhysicalEntity to its parent Complex recursively.- Returns:
- generative constraint to get the parent Complex of the PhysicalEntity recursively
-
withComplexes
From PhysicalEntity to parent Complex recursively, or to itself.- Returns:
- generative constraint to get the parent Complex of PhysicalEntity recursively, ot to itself
-
left
From Conversion to its left participants.- Returns:
- generative constraint to get the left participants of the Conversion
-
right
From Conversion to its right participants.- Returns:
- generative constraint to get the right participants of the Conversion
-
participatesInConv
From PhysicalEntity to the Conversion that it participates.- Returns:
- generative constraint to get the Conversions that the PhysicalEntity is a participant of
-
participatesInInter
From PhysicalEntity to the Interaction that it participates.- Returns:
- generative constraint to get the Interactions that the PhysicalEntity is a participant of
-
interToController
From Interaction to the controlling Controls recursively, and their controller PEs.- Returns:
- the constraint
-
compToER
From Complex or SimplePhysicalEntity to the related EntityReference. If Complex, then EntityReference of simple members (recursively) are related.- Returns:
- generative constraint to get the related EntityReference of the Complex or SimplePhysicalEntity
-
nameEquals
Filters Named to contain a specific name.- Parameters:
name- name to require- Returns:
- constraint to check if the name exists in among names
-
nameEquals
Filters Named to contain a name from the input set.- Parameters:
name- name to require- Returns:
- constraint
-
differentialActivity
Gets a constraint to ensure that ensures only one of the two PhysicalEntities has an activity. Size of this constraint is 2.- Parameters:
activating- true/false (TODO explain)- Returns:
- constraint to make sure only one of the PhysicalEntity has an activity
-
participant
From Interaction to its PhysicalEntity participants.- Returns:
- generative constraint to get the participants of the Interaction
-
participantER
From Interaction to the related EntityReference of its participants.- Returns:
- generative constraint to get the related PhysicalEntity of the participants of an Interaction
-
product
From TemplateReaction to its products.- Returns:
- generative constraint to get the products of the TemplateReaction
-
notControlled
Makes sure the Interaction has no Control- Returns:
- constraint to filter out Interactions with a Control
-
isHuman
Makes sure the EntityReference or the PhysicalEntity belongs to human. Please note that this check depends on the display name of the related BioSource object to be "Homo sapiens". If that is not the case, the constraint won't work.- Returns:
- constraint to make sure the EntityReference or the PhysicalEntity belongs to human
-
hasXref
Makes sure that the object has an Xref with the given ID. This id is not an RDF ID, it is the value of the Xref, like gene symbol.- Parameters:
xrefID- xref id- Returns:
- constraint
-
hasProvenance
Makes sure that the object is associated with a Provenance with the given name. This id is not an RDF ID, it is the name of the resource, like TRANSFAC.- Parameters:
name- name of the provenance- Returns:
- constraint
-
notAParticipant
Makes sure that the second element (PhysicalEntity) is not a participant of the first element (Interaction).- Returns:
- constraint to make sure that the PhysicalEntity in second index is not a participant of the Interaction in first index
-
peNotRelatedToER
Makes sure that the given physical entity is not related to the entity reference.- Returns:
- the constraint todo: method not tested
-
notControlsThis
Makes sure the second element (Control) is not a controller to the first element (Interaction).- Returns:
- constraint to filter out cases where the Control at the second index is controlling the Interaction at the first index.
-
notLabeledInactive
Makes sure a PhysicalEntity of any linked member PhysicalEntities toward members are not labeled as inactive.- Returns:
- constraint to filter out PhysicalEntity labeled as inactive.
-
modificationConstraint
Makes sure that the PhysicalEntity or any linked PE contains the modification term. Size = 1.- Parameters:
modifTerm- term to check- Returns:
- constraint to filter out PhysicalEntity not associated to a modification term
-
linkToSpecific
Makes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards member direction.- Returns:
- the constraint
-
linkToComplex
Makes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards complex direction.- Returns:
- the constraint
-
linkedER
-
linkToSimple
Makes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards member direction.- Parameters:
blacklist- used to detect ubiquitous small molecules- Returns:
- the constraint
-
linkToComplex
Makes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards complex direction.- Parameters:
blacklist- used to detect ubiquitous small molecules- Returns:
- the constraint
-
equal
Makes a linker constraint from PhysicalEntity to its linked PhysicalEntity towards complex direction.- Parameters:
equal- true/false (TODO explain)- Returns:
- the constraint
-
type
Creates an element type constraint.- Parameters:
clazz- a BioPAX type, i.e., corresponding interface class- Returns:
- the constraint
-
notGeneric
Makes sure that the PhysicalEntity do not have member physical entities..- Returns:
- the constraint
-
maxDegree
Makes sure the participant degree (number of Conversions that this is a participant) of the PhysicalEntity is less than or equal to the parameter.- Parameters:
limit- max degree limit- Returns:
- the constraint
-
source
-
inSamePathway
Makes sure that the two interactions are members of the same pathway.- Returns:
- non-generative constraint
-
moreControllerThanParticipant
Makes sure that the PhysicalEntity is controlling more reactions than it participates (excluding complex assembly).- Returns:
- non-generative constraint
-
hasDifferentCompartments
Checks if two physical entities have non-empty and different compartments.- Returns:
- the constraint
-
isPrey
Checks if the molecule is a prey of a Y2H experiment.- Returns:
- the constraint
-
isBait
Checks if the molecule is a bait of a Y2H experiment.- Returns:
- the constraint
-