Class InterToPartER
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.InterToPartER
- All Implemented Interfaces:
Constraint
This constraint is used to collect related EntityReference of the participant physical entities.
The constraint let's users to set some participants as taboo, and they are excluded from
analysis.
Var0 - Interaction
Var1 - Taboo element number 1
...
Var(numTabooElements+1) - Last taboo element
Var(numTabooElements+2) - The related EntityReference
- Author:
- Ozgun Babur
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionConstructor without parameters.InterToPartER(int numOfTabooElements) Constructor with parameters.InterToPartER(InterToPartER.Direction direction) Constructor with direction.InterToPartER(InterToPartER.Direction direction, int numOfTabooElements) Constructor with parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis is a generative constraint.protected Collection<BioPAXElement>generate(Conversion conv, InterToPartER.Direction direction, Set<Entity> taboo) Gets the related entity references of the given interaction,protected Collection<BioPAXElement>generate(Interaction inter, Set<Entity> taboo) Gets the related entity references of the given interaction.Iterated over non-taboo participants and collectes related ER.Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, getVariableSize, satisfies, setSize
-
Constructor Details
-
InterToPartER
public InterToPartER(int numOfTabooElements) Constructor with parameters. A taboo element is the participant that we want to exclude from the analysis. User should provide the number of taboo elements, then during execution, these elements will be fetched from the current match.- Parameters:
numOfTabooElements- the number of entities to exclude from the analysis
-
InterToPartER
Constructor with parameters. A taboo element is the participant that we want to exclude from the analysis. User should provide the number of taboo elements, then during execution, these elements will be fetched from the current match. The direction is left, or right, or both sides of the Conversion.- Parameters:
direction- ide(s) of an interaction to considernumOfTabooElements- the number of entities to exclude from the analysis
-
InterToPartER
public InterToPartER()Constructor without parameters. There are no taboo elements. -
InterToPartER
Constructor with direction. There are no taboo elements.- Parameters:
direction- - side(s) of an interaction to consider; seeInterToPartER.Direction
-
-
Method Details
-
canGenerate
public boolean canGenerate()This is a generative constraint.- Specified by:
canGeneratein interfaceConstraint- Overrides:
canGeneratein classConstraintAdapter- Returns:
- true if the constraint can generate candidates
-
generate
Iterated over non-taboo participants and collectes related ER.- Specified by:
generatein interfaceConstraint- Overrides:
generatein classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- related participants
-
generate
Gets the related entity references of the given interaction.- Parameters:
inter- interactiontaboo- entities to ignore/skip- Returns:
- entity references
-
generate
protected Collection<BioPAXElement> generate(Conversion conv, InterToPartER.Direction direction, Set<Entity> taboo) Gets the related entity references of the given interaction,- Parameters:
conv- conversion interactiondirection- which side(s) participants of the conversion to considertaboo- skip list of entities- Returns:
- entity references
-