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
Modifier and TypeFieldDescriptionstatic final String
protected OptimalCECPParameters
static final String
version history: 1.0 - Initial versionFields inherited from class org.biojava.nbio.structure.align.ce.CeMain
calculator
Fields inherited from class org.biojava.nbio.structure.align.AbstractStructureAlignment
newline
-
Constructor Summary
-
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 void
void
setParameters
(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:StructureAlignment
Get the name of the Algorithm- Specified by:
getAlgorithmName
in interfaceStructureAlignment
- Overrides:
getAlgorithmName
in classCeMain
- Returns:
- the name of the algorithm
-
getVersion
Description copied from interface:StructureAlignment
Get the Version information for this Algorithm.- Specified by:
getVersion
in interfaceStructureAlignment
- Overrides:
getVersion
in classCeMain
- Returns:
- the version of the algorithm
-
getParameters
Description copied from interface:StructureAlignment
Return the paramers for this algorithm.- Specified by:
getParameters
in interfaceStructureAlignment
- Overrides:
getParameters
in classCeMain
- Returns:
- an
OptimalCECPParameters
object
-
setParameters
Description copied from interface:StructureAlignment
Set the default parameters for this algorithm to use- Specified by:
setParameters
in interfaceStructureAlignment
- Overrides:
setParameters
in classCeMain
- Parameters:
params
- Should be anOptimalCECPParameters
object 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 theparameters
. If the parametertryAllCPs
is true, all possible CP sites are tried and the optimal site is returned. Otherwise, thecpPoint
parameter is used to determine the CP point, greatly reducing the computation required.- Specified by:
align
in interfaceStructureAlignment
- Overrides:
align
in classCeMain
- Parameters:
ca1
- CA atoms of the first proteinca2
- CA atoms of the second proteinparam
-CeParameters
object- 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. Use#alignHeuristic(Atom[], Atom[], Object)
for a faster algorithm.- Parameters:
ca1
- CA atoms of the first proteinca2
- CA atoms of the second proteinparam
-CeParameters
objectalignments
- 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
-