public class InteractionContainer extends Object
| Constructor and Description |
|---|
InteractionContainer()
Creates a new empty interaction container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInteraction(Interaction interaction)
Adds an interaction to this container.
|
List<Interaction> |
getInteractions()
Retuens all interactions from this container.
|
List<Interaction> |
getInteractionsBetween(LeafIdentifier first,
LeafIdentifier second)
Returns all Interactions between two leaves (i.e.
|
List<Interaction> |
getLigandInteractions() |
boolean |
hasInteractions(LeafIdentifier first,
LeafIdentifier second)
Returns true if any interaction between the two leaves is annotated in this container.
|
void |
mapToPseudoAtoms(OakStructure structure)
Adds the interactions in this container to a structure as pseudo atoms.
|
void |
validateWithStructure(OakStructure structure) |
public InteractionContainer()
public List<Interaction> getInteractionsBetween(LeafIdentifier first, LeafIdentifier second)
LeafIdentifiers are given is irrelevant.first - The first leaf.second - The second leaf.public boolean hasInteractions(LeafIdentifier first, LeafIdentifier second)
first - The first leaf.second - The second leaf.public void mapToPseudoAtoms(OakStructure structure)
LeafSubstructure that has a three letter code according to the type of interaction. The pseudo atom is
positioned a the center of the annotated interaction centers.structure - The structure to assign the interaction to.public List<Interaction> getInteractions()
public List<Interaction> getLigandInteractions()
public void addInteraction(Interaction interaction)
interaction - The interaction to add.public void validateWithStructure(OakStructure structure)
Copyright © 2018. All rights reserved.