Class SpokeExpansion
- java.lang.Object
-
- psidev.psi.mi.jami.binary.expansion.AbstractComplexExpansionMethod<T,B>
-
- psidev.psi.mi.jami.binary.expansion.AbstractSpokeExpansion<Interaction,BinaryInteraction>
-
- psidev.psi.mi.jami.binary.expansion.SpokeExpansion
-
- All Implemented Interfaces:
ComplexExpansionMethod<Interaction,BinaryInteraction>
public class SpokeExpansion extends AbstractSpokeExpansion<Interaction,BinaryInteraction>
The spoke expansion Complex n-ary data has been expanded to binary using the spoke model. This assumes that all molecules in the complex interact with a single designated molecule, usually the bait.- 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 SpokeExpansion()Constructor for SpokeExpansion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ParticipantcollectBestBaitForSpokeExpansion(Interaction interaction)collectBestBaitForSpokeExpansionprotected BinaryInteractioncreateBinaryInteraction(Interaction interaction, Participant c1, Participant c2)createBinaryInteractionCollection<BinaryInteraction>expand(Interaction interaction)expandvoidsetBinaryInteractionFactory(BinaryInteractionFactory factory)Sets the binary interaction factory-
Methods inherited from class psidev.psi.mi.jami.binary.expansion.AbstractSpokeExpansion
collectBinaryInteractionsFromNary
-
Methods inherited from class psidev.psi.mi.jami.binary.expansion.AbstractComplexExpansionMethod
createBinaryInteractionWrappersFrom, createNewSelfBinaryInteractionsFrom, findInteractionCategory, getBinaryInteractionFactory, getMethod, isInteractionExpandable
-
-
-
-
Method Detail
-
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
-
createBinaryInteraction
protected BinaryInteraction createBinaryInteraction(Interaction interaction, Participant c1, Participant c2)
createBinaryInteraction
- Specified by:
createBinaryInteractionin classAbstractSpokeExpansion<Interaction,BinaryInteraction>- Parameters:
interaction- : the interaction to expandc1- : the baitc2- : the prey- Returns:
- the binary interaction
-
collectBestBaitForSpokeExpansion
protected Participant collectBestBaitForSpokeExpansion(Interaction interaction)
collectBestBaitForSpokeExpansion
- Specified by:
collectBestBaitForSpokeExpansionin classAbstractSpokeExpansion<Interaction,BinaryInteraction>- Parameters:
interaction- : the interaction to expand- Returns:
- the best bait to use for complex expansion among all participants of this interaction
-
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.
-
-