Class OptimalCECPMain
java.lang.Object
org.biojava.nbio.structure.align.AbstractStructureAlignment
org.biojava.nbio.structure.align.ce.CeMain
org.biojava.nbio.structure.align.ce.OptimalCECPMain
- All Implemented Interfaces:
 StructureAlignment
A wrapper for 
CeMain which sets default parameters to be appropriate for finding
 circular permutations.
 A circular permutation consists of a single cleavage point and rearrangement between two structures, for example:
ABCDEFG DEFGABC
- Author:
 - Spencer Bliven.
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected OptimalCECPParametersstatic final Stringversion history: 1.0 - Initial versionFields inherited from class org.biojava.nbio.structure.align.ce.CeMain
calculator - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionFinds the optimal alignment between two proteins allowing for a circular permutation (CP).alignOptimal(Atom[] ca1, Atom[] ca2, Object param, AFPChain[] alignments) Finds the optimal alignment between two proteins allowing for a circular permutation (CP).alignPermuted(Atom[] ca1, Atom[] ca2, Object param, int cp) Aligns ca1 with ca2 permuted by cp residues.Get the name of the AlgorithmReturn the paramers for this algorithm.Get the Version information for this Algorithm.static voidvoidsetParameters(ConfigStrucAligParams params) Set the default parameters for this algorithm to useMethods inherited from class org.biojava.nbio.structure.align.ce.CeMain
align, getCECalculator 
- 
Field Details
- 
algorithmName
- See Also:
 
 - 
version
version history: 1.0 - Initial version- See Also:
 
 - 
params
 
 - 
 - 
Constructor Details
- 
OptimalCECPMain
public OptimalCECPMain() 
 - 
 - 
Method Details
- 
getAlgorithmName
Description copied from interface:StructureAlignmentGet the name of the Algorithm- Specified by:
 getAlgorithmNamein interfaceStructureAlignment- Overrides:
 getAlgorithmNamein classCeMain- Returns:
 - the name of the algorithm
 
 - 
getVersion
Description copied from interface:StructureAlignmentGet the Version information for this Algorithm.- Specified by:
 getVersionin interfaceStructureAlignment- Overrides:
 getVersionin classCeMain- Returns:
 - the version of the algorithm
 
 - 
getParameters
Description copied from interface:StructureAlignmentReturn the paramers for this algorithm.- Specified by:
 getParametersin interfaceStructureAlignment- Overrides:
 getParametersin classCeMain- Returns:
 - an 
OptimalCECPParametersobject 
 - 
setParameters
Description copied from interface:StructureAlignmentSet the default parameters for this algorithm to use- Specified by:
 setParametersin interfaceStructureAlignment- Overrides:
 setParametersin classCeMain- Parameters:
 params- Should be anOptimalCECPParametersobject specifying alignment options
 - 
alignPermuted
public AFPChain alignPermuted(Atom[] ca1, Atom[] ca2, Object param, int cp) throws StructureException Aligns ca1 with ca2 permuted by cp residues.WARNING: Modifies ca2 during the permutation. Be sure to make a copy before calling this method.
- Parameters:
 ca1-ca2-param-cp-- Returns:
 - Throws:
 StructureException
 - 
align
Finds the optimal alignment between two proteins allowing for a circular permutation (CP).The precise algorithm is controlled by the
parameters. If the parametertryAllCPsis true, all possible CP sites are tried and the optimal site is returned. Otherwise, thecpPointparameter is used to determine the CP point, greatly reducing the computation required.- Specified by:
 alignin interfaceStructureAlignment- Overrides:
 alignin classCeMain- Parameters:
 ca1- CA atoms of the first proteinca2- CA atoms of the second proteinparam-CeParametersobject- Returns:
 - The best-scoring alignment
 - Throws:
 StructureException- See Also:
 
 - 
alignOptimal
public AFPChain alignOptimal(Atom[] ca1, Atom[] ca2, Object param, AFPChain[] alignments) throws StructureException Finds the optimal alignment between two proteins allowing for a circular permutation (CP).This algorithm performs a CE alignment for each possible CP site. This is quite slow.
- Parameters:
 ca1- CA atoms of the first proteinca2- CA atoms of the second proteinparam-CeParametersobjectalignments- If not null, should be an empty array of the same length as ca2. This will be filled with the alignments from permuting ca2 by 0 to n-1 residues.- Returns:
 - The best-scoring alignment
 - Throws:
 StructureException
 - 
main
 
 -