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
public class OptimalCECPMain extends CeMain
A wrapper forCeMainwhich 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
Fields Modifier and Type Field Description static StringalgorithmNameprotected OptimalCECPParametersparamsstatic Stringversionversion history: 1.0 - Initial version-
Fields inherited from class org.biojava.nbio.structure.align.ce.CeMain
calculator
-
-
Constructor Summary
Constructors Constructor Description OptimalCECPMain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AFPChainalign(Atom[] ca1, Atom[] ca2, Object param)Finds the optimal alignment between two proteins allowing for a circular permutation (CP).AFPChainalignOptimal(Atom[] ca1, Atom[] ca2, Object param, AFPChain[] alignments)Finds the optimal alignment between two proteins allowing for a circular permutation (CP).AFPChainalignPermuted(Atom[] ca1, Atom[] ca2, Object param, int cp)Aligns ca1 with ca2 permuted by cp residues.StringgetAlgorithmName()Get the name of the AlgorithmConfigStrucAligParamsgetParameters()Return the paramers for this algorithm.StringgetVersion()Get the Version information for this Algorithm.static voidmain(String[] args)voidsetParameters(ConfigStrucAligParams params)Set the default parameters for this algorithm to use-
Methods inherited from class org.biojava.nbio.structure.align.ce.CeMain
align, getCECalculator
-
-
-
-
Field Detail
-
algorithmName
public static final String algorithmName
- See Also:
- Constant Field Values
-
version
public static final String version
version history: 1.0 - Initial version- See Also:
- Constant Field Values
-
params
protected OptimalCECPParameters params
-
-
Constructor Detail
-
OptimalCECPMain
public OptimalCECPMain()
-
-
Method Detail
-
getAlgorithmName
public String 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
public String 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
public ConfigStrucAligParams getParameters()
Description copied from interface:StructureAlignmentReturn the paramers for this algorithm.- Specified by:
getParametersin interfaceStructureAlignment- Overrides:
getParametersin classCeMain- Returns:
- an
OptimalCECPParametersobject
-
setParameters
public void setParameters(ConfigStrucAligParams params)
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
public AFPChain align(Atom[] ca1, Atom[] ca2, Object param) throws StructureException
Finds the optimal alignment between two proteins allowing for a circular permutation (CP). The precise algorithm is controlled by theparameters. 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(Atom[], Atom[], Object, AFPChain[])
-
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-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
-
-