Class BipartiteExpansion
- java.lang.Object
-
- psidev.psi.mi.jami.binary.expansion.AbstractComplexExpansionMethod<T,B>
-
- psidev.psi.mi.jami.binary.expansion.AbstractBipartiteExpansion<Interaction,BinaryInteraction>
-
- psidev.psi.mi.jami.binary.expansion.BipartiteExpansion
-
- All Implemented Interfaces:
ComplexExpansionMethod<Interaction,BinaryInteraction>
public class BipartiteExpansion extends AbstractBipartiteExpansion<Interaction,BinaryInteraction>
The bipartite expansion. Complex n-ary data has been expanded to binary using the bipartite model. This assumes that all molecules in the complex interact with a single externally designated entity.- Since:
05/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.binary.expansion.ComplexExpansionMethod
BIPARTITE, BIPARTITE_EXPANSION, BIPARTITE_EXPANSION_MI, MATRIX, MATRIX_EXPANSION, MATRIX_EXPANSION_MI, SPOKE, SPOKE_EXPANSION, SPOKE_EXPANSION_MI
-
-
Constructor Summary
Constructors Constructor Description BipartiteExpansion()Constructor for BipartiteExpansion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BinaryInteractioncreateBinaryInteraction(Interaction interaction, Participant c1, Participant c2)createBinaryInteractionprotected ParticipantcreateParticipantForComplexEntity(Complex complexEntity)createParticipantForComplexEntityCollection<BinaryInteraction>expand(Interaction interaction)expandvoidsetBinaryInteractionFactory(BinaryInteractionFactory factory)Sets the binary interaction factoryvoidsetInteractorFactory(InteractorFactory interactorFactory)Setter for the fieldinteractorFactory.-
Methods inherited from class psidev.psi.mi.jami.binary.expansion.AbstractBipartiteExpansion
collectBinaryInteractionsFromNary, createComplexEntity, generateComplexName, getInteractorFactory
-
Methods inherited from class psidev.psi.mi.jami.binary.expansion.AbstractComplexExpansionMethod
createBinaryInteractionWrappersFrom, createNewSelfBinaryInteractionsFrom, findInteractionCategory, getBinaryInteractionFactory, getMethod, isInteractionExpandable
-
-
-
-
Method Detail
-
createBinaryInteraction
protected BinaryInteraction createBinaryInteraction(Interaction interaction, Participant c1, Participant c2)
createBinaryInteraction
- Specified by:
createBinaryInteractionin classAbstractBipartiteExpansion<Interaction,BinaryInteraction>- Parameters:
interaction- : the interaction to expandc1- : the participant with the created complexc2- : the original participant- Returns:
- the binary interaction
-
createParticipantForComplexEntity
protected Participant createParticipantForComplexEntity(Complex complexEntity)
createParticipantForComplexEntity
- Specified by:
createParticipantForComplexEntityin classAbstractBipartiteExpansion<Interaction,BinaryInteraction>- Parameters:
complexEntity- : the generated complex- Returns:
- the participant generated for the generated complex
-
expand
public Collection<BinaryInteraction> expand(Interaction interaction) throws ComplexExpansionException
expand
- Specified by:
expandin interfaceComplexExpansionMethod<Interaction,BinaryInteraction>- Overrides:
expandin classAbstractComplexExpansionMethod<Interaction,BinaryInteraction>- Parameters:
interaction- : the interaction to expand- Returns:
- the collection of binary interactions generated from the given interaction.
- Throws:
ComplexExpansionException- : when the interaction is not expandable by this method
-
setInteractorFactory
public void setInteractorFactory(InteractorFactory interactorFactory)
Setter for the field
interactorFactory.- Overrides:
setInteractorFactoryin classAbstractBipartiteExpansion<Interaction,BinaryInteraction>- Parameters:
interactorFactory- : the interactor factory we want to use to create the complex for bipartite expansion
-
setBinaryInteractionFactory
public void setBinaryInteractionFactory(BinaryInteractionFactory factory)
Sets the binary interaction factory- Specified by:
setBinaryInteractionFactoryin interfaceComplexExpansionMethod<Interaction,BinaryInteraction>- Overrides:
setBinaryInteractionFactoryin classAbstractComplexExpansionMethod<Interaction,BinaryInteraction>- Parameters:
factory- aBinaryInteractionFactoryobject.
-
-