Uses of Class
org.biojava.nbio.structure.align.model.AFPChain
Package
Description
Classes for the alignment of structures.
Classes related to the implementation of the CE alignment algorithm, here called jCE.
Classes related to the implementation of the FATCAT alignment algorithm, here called jFATCAT.
Utility methods for better interaction with Jmol.
Serialization and deserialization for structure alignment results (as AFPChain object) to XML.
Input and Output of Structures
-
Uses of AFPChain in org.biojava.nbio.structure.align
Modifier and TypeMethodDescriptionabstract AFPChain
abstract AFPChain
Run an alignment while specifying the atoms to be aligned.run an alignment and also send a bean containing the parameters.CallableStructureAlignment.call()
Modifier and TypeMethodDescriptionstatic int
Set the list of equivalent residues in the two proteins given a list of AFPs WARNING: changes the values for FocusRes1, focusRes2 and FocusResn in afpChain!static Group[]
AFPTwister.twistOptimized
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) superimposing according to the optimized alignmentstatic Group[]
calculate the total rmsd of the blocks output a merged pdb file for both proteins protein 1, in chain A protein 2 is twisted according to the twists detected, in chain B -
Uses of AFPChain in org.biojava.nbio.structure.align.ce
Modifier and TypeMethodDescriptionAligns ca1 and ca2 using a heuristic to check for CPs.Align ca2 onto ca1.Finds the optimal alignment between two proteins allowing for a circular permutation (CP).OptimalCECPMain.alignOptimal
(Atom[] ca1, Atom[] ca2, Object param, AFPChain[] alignments) Finds the optimal alignment between two proteins allowing for a circular permutation (CP).OptimalCECPMain.alignPermuted
(Atom[] ca1, Atom[] ca2, Object param, int cp) Aligns ca1 with ca2 permuted by cp residues.CECalculator.extractFragments
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) CeCalculatorEnhanced.extractFragments
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) static AFPChain
CeCPMain.filterDuplicateAFPs
(AFPChain afpChain, CECalculator ceCalc, Atom[] ca1, Atom[] ca2duplicated) Takes as input an AFPChain where ca2 has been artificially duplicated.static AFPChain
CeCPMain.filterDuplicateAFPs
(AFPChain afpChain, CECalculator ceCalc, Atom[] ca1, Atom[] ca2duplicated, CECPParameters params) CeCPMain.invertAlignment
(AFPChain a) Swaps the order of structures in an AFPChainstatic AFPChain
CeCPMain.postProcessAlignment
(AFPChain afpChain, Atom[] ca1, Atom[] ca2m, CECalculator calculator) Circular permutation specific code to be run after the standard CE alignmentstatic AFPChain
CeCPMain.postProcessAlignment
(AFPChain afpChain, Atom[] ca1, Atom[] ca2m, CECalculator calculator, CECPParameters param) Circular permutation specific code to be run after the standard CE alignmentModifier and TypeMethodDescriptionOptimalCECPMain.alignOptimal
(Atom[] ca1, Atom[] ca2, Object param, AFPChain[] alignments) Finds the optimal alignment between two proteins allowing for a circular permutation (CP).void
CECalculator.convertAfpChain
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) copy data from this class into AFPChain container object.void
CeCalculatorEnhanced.convertAfpChain
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) copy data from this class into AFPChain container object.static Object
CECalculator.extractFragments
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) CeCalculatorEnhanced.extractFragments
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) static AFPChain
CeCPMain.filterDuplicateAFPs
(AFPChain afpChain, CECalculator ceCalc, Atom[] ca1, Atom[] ca2duplicated) Takes as input an AFPChain where ca2 has been artificially duplicated.static AFPChain
CeCPMain.filterDuplicateAFPs
(AFPChain afpChain, CECalculator ceCalc, Atom[] ca1, Atom[] ca2duplicated, CECPParameters params) AbstractUserArgumentProcessor.getDbSearchResult
(AFPChain afpChain) CeCPMain.invertAlignment
(AFPChain a) Swaps the order of structures in an AFPChainvoid
void
static AFPChain
CeCPMain.postProcessAlignment
(AFPChain afpChain, Atom[] ca1, Atom[] ca2m, CECalculator calculator) Circular permutation specific code to be run after the standard CE alignmentstatic AFPChain
CeCPMain.postProcessAlignment
(AFPChain afpChain, Atom[] ca1, Atom[] ca2m, CECalculator calculator, CECPParameters param) Circular permutation specific code to be run after the standard CE alignmentstatic void
GuiWrapper.showAlignmentImage
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, Object jmol) void
CECalculator.traceFragmentMatrix
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) void
CeCalculatorEnhanced.traceFragmentMatrix
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) -
Uses of AFPChain in org.biojava.nbio.structure.align.fatcat
Modifier and TypeMethodDescriptionprotected AFPChain
FatCat.align
(Atom[] ca1, Atom[] ca2, FatCatParameters params, boolean doRigid) FatCat.alignFlexible
(Atom[] ca1, Atom[] ca2, FatCatParameters params) FatCat.alignRigid
(Atom[] ca1, Atom[] ca2) FatCat.alignRigid
(Atom[] ca1, Atom[] ca2, FatCatParameters params) -
Uses of AFPChain in org.biojava.nbio.structure.align.fatcat.calc
Modifier and TypeMethodDescriptionstatic boolean
AFPChainer.afpPairConn
(int afp1, int afp2, FatCatParameters params, AFPChain afpChain) //Key function: calculate the connectivity of AFP pairs //no compatibility criteria is executed //note: afp1 is previous to afp2 in terms of the position //this module must be optimizedstatic void
get the afp list and residue list for each blockprotected static double
AFPChainer.calAfpRmsd
(int afpn, int[] afpPositions, int listStart, AFPChain afpChain, Atom[] ca1, Atom[] ca2) //return the rmsd of the residues from the segments that form the given AFP list //this value can be a measurement (1) for the connectivity of the AFPsdouble
SigEva.calNS
(FatCatParameters params, AFPChain afpChain) double
SigEva.calSigAll
(FatCatParameters params, AFPChain afpChain) static void
AFPChainer.doChainAfp
(FatCatParameters params, AFPChain afpChain, Atom[] ca1, Atom[] ca2) static void
AFPCalculator.extractAFPChains
(FatCatParameters params, AFPChain afpChain, Atom[] ca1, Atom[] ca2) static void
AFPOptimizer.optimizeAln
(FatCatParameters params, AFPChain afpChain, Atom[] ca1, Atom[] ca2) optimize the alignment by dynamic programmingstatic void
AFPPostProcessor.postProcess
(FatCatParameters params, AFPChain afpChain, Atom[] ca1, Atom[] ca2) static final void
static void
AFPOptimizer.updateScore
(FatCatParameters params, AFPChain afpChain) to update the chaining score after block delete and merge processed the blockScore value is important for significance evaluation -
Uses of AFPChain in org.biojava.nbio.structure.align.gui
Modifier and TypeMethodDescriptionstatic Structure
DisplayAFP.createArtificalStructure
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) Create a "fake" Structure objects that contains the two sets of atoms aligned on top of each other.static final StructureAlignmentJmol
DisplayAFP.display
(AFPChain afpChain, Group[] twistedGroups, Atom[] ca1, Atom[] ca2, List<Group> hetatms1, List<Group> hetatms2) Note: ca2, hetatoms2 and nucleotides2 should not be rotated.static StructureAlignmentJmol
Display an AFPChain alignmentstatic JMenuBar
MenuCreator.getAlignmentPanelMenu
(JFrame frame, ActionListener actionListener, AFPChain afpChain, MultipleAlignment msa) Create the menu for the Alignment Panel representation of Structural Alignments.static JMenuBar
MenuCreator.getAlignmentTextMenu
(JFrame frame, ActionListener actionListener, AFPChain afpChain, MultipleAlignment msa) Create the menu for the Text representations of Structural Alignments.static final Atom
DisplayAFP.getAtomForAligPos
(AFPChain afpChain, int chainNr, int aligPos, Atom[] ca, boolean getPrevious) Return the atom at alignment position aligPos. at the present only works with block 0DisplayAFP.getEQRAlignmentPos
(AFPChain afpChain) DisplayAFP.getPDBresnum
(int aligPos, AFPChain afpChain, Atom[] ca) Return a list of pdb Strings corresponding to the aligned positions of the molecule.static JMenuItem
MenuCreator.getSaveAlignmentMenuItem
(AFPChain afpChain, MultipleAlignment msa) static JMenuBar
MenuCreator.initJmolMenu
(JFrame frame, AbstractAlignmentJmol parent, AFPChain afpChain, MultipleAlignment msa) Provide a JMenuBar that can be added to a JFrame containing a JmolPanel.static void
DisplayAFP.showAlignmentImage
(AFPChain afpChain, String result) static void
DisplayAFP.showAlignmentPanel
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, AbstractAlignmentJmol jmol) ModifierConstructorDescriptionDotPlotListener
(AFPChain afpChain) DotPlotPanel
(AFPChain alignment) MySaveFileListener
(AFPChain afpChain) MySaveFileListener
(AFPChain afpChain, MultipleAlignment msa) Constructor to avoid checking which of the two is null before instantiating this class. -
Uses of AFPChain in org.biojava.nbio.structure.align.gui.aligpanel
Modifier and TypeMethodDescriptionvoid
StatusDisplay.setAfpChain
(AFPChain afpChain) void
AFPChainCoordManager.setAFPChain
(AFPChain afpChain) void
AligPanel.setAFPChain
(AFPChain afpChain) ModifierConstructorDescriptionMultipleAligPanel
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, AbstractAlignmentJmol jmol) Constructor using an afpChain and the atom arrays for pairwise alignments. -
Uses of AFPChain in org.biojava.nbio.structure.align.gui.jmol
Modifier and TypeMethodDescriptionstatic String
StructureAlignmentJmol.getJmolScript4Block
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int blockNr) static String
StructureAlignmentJmol.getJmolString
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) -
Uses of AFPChain in org.biojava.nbio.structure.align.model
Modifier and TypeMethodDescriptionstatic void
AfpChainWriter.printScoresInLines
(AFPChain afpChain, int blockNum, int optLength, double totalRmsdOpt, double alignScore, int alnLength, int gapLen, double identity, double similarity, StringBuffer txt) static String
AfpChainWriter.toAlignedPairs
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) Prints the alignment in the simplest form: a list of aligned residues.static String
static String
AfpChainWriter.toDBSearchResult
(AFPChain afpChain) static String
static String
AfpChainWriter.toFatCatCore
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean printLegend, boolean longHeader, boolean showHTML, boolean showAlignmentBlock) Output in FatCatCore formatstatic String
AfpChainWriter.toPrettyAlignment
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showHTML, boolean showAlignmentBlock) static String
static String
AfpChainWriter.toScoresList
(AFPChain afpChain) static String
AfpChainWriter.toWebSiteDisplay
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) Prints the afpChain as a nicely formatted alignment, including alignment statistics, the aligned sequences themselves, and information about the superposition.static String
AfpChainWriter.toWebSiteDisplay
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showAlignmentBlock) Prints the afpChain as a nicely formatted alignment, including alignment statistics, the aligned sequences themselves, and information about the superposition. -
Uses of AFPChain in org.biojava.nbio.structure.align.multiple
ModifierConstructorDescriptionMultipleAlignmentEnsembleImpl
(AFPChain afp, Atom[] ca1, Atom[] ca2, boolean flexible) Constructor from an AFPChain instance. -
Uses of AFPChain in org.biojava.nbio.structure.align.seq
-
Uses of AFPChain in org.biojava.nbio.structure.align.util
Modifier and TypeMethodDescriptionstatic AFPChain
AlignmentTools.createAFPChain
(Atom[] ca1, Atom[] ca2, ResidueNumber[] aligned1, ResidueNumber[] aligned2) Fundamentally, an alignment is just a list of aligned residues in each protein.static AFPChain
AlignmentTools.deleteColumn
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int block, int pos) Delete an alignment position from the original alignment object.static AFPChain
AlignmentTools.deleteHighestDistanceColumn
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) Find the alignment position with the highest atomic distance between the equivalent atomic positions of the arrays and remove it from the alignment.static AFPChain
AlignmentTools.replaceOptAln
(int[][][] newAlgn, AFPChain afpChain, Atom[] ca1, Atom[] ca2) It replaces an optimal alignment of an AFPChain and calculates all the new alignment scores and variables.static AFPChain
AlignmentTools.replaceOptAln
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int blockNum, int[] optLens, int[][][] optAln) static AFPChain
AlignmentTools.replaceOptAln
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, Map<Integer, Integer> alignment) Takes an AFPChain and replaces the optimal alignment based on an alignment mapstatic AFPChain
AlignmentTools.splitBlocksByTopology
(AFPChain a, Atom[] ca1, Atom[] ca2) Modifier and TypeMethodDescriptionAlignmentTools.alignmentAsMap
(AFPChain afpChain) Creates a Map specifying the alignment as a mapping between residue indices of protein 1 and residue indices of protein 2.static void
AlignmentTools.alignmentToSIF
(Writer out, AFPChain afpChain, Atom[] ca1, Atom[] ca2, String backboneInteraction, String alignmentInteraction) Creates a simple interaction format (SIF) file for an alignment.static Structure
AFPAlignmentDisplay.createArtificalStructure
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) static AFPChain
AlignmentTools.deleteColumn
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int block, int pos) Delete an alignment position from the original alignment object.static AFPChain
AlignmentTools.deleteHighestDistanceColumn
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) Find the alignment position with the highest atomic distance between the equivalent atomic positions of the arrays and remove it from the alignment.static void
AlignmentTools.fillAlignedAtomArrays
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, Atom[] ca1aligned, Atom[] ca2aligned) Fill the aligned Atom arrays with the equivalent residues in the afpChain.static void
Extract the alignment outputstatic void
static Atom[]
AFPAlignmentDisplay.getAlignedAtoms1
(AFPChain afpChain, Atom[] ca1) static Atom[]
AFPAlignmentDisplay.getAlignedAtoms2
(AFPChain afpChain, Atom[] ca2) static double
Calculate the rotation angle for a structurestatic int
AFPAlignmentDisplay.getBlockNrForAlignPos
(AFPChain afpChain, int aligPos) get the block number for an aligned positionAlignmentTools.getOptAlnAsList
(AFPChain afpChain) Retrieves the optimum alignment from an AFPChain and returns it as a java collection.static Matrix
static int
AlignmentTools.getSymmetryOrder
(AFPChain afpChain, int maxSymmetry, float minimumMetricChange) Guesses the order of symmetry in an alignmentstatic double
AFPChainScorer.getTMScore
(AFPChain align, Atom[] ca1, Atom[] ca2) static double
AFPChainScorer.getTMScore
(AFPChain align, Atom[] ca1, Atom[] ca2, boolean normalizeMin) static Atom
AFPAlignmentDisplay.getTranslation
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) static boolean
AlignmentTools.isSequentialAlignment
(AFPChain afpChain, boolean checkWithinBlocks) Checks that the alignment given by afpChain is sequential.static Group[]
AlignmentTools.prepareGroupsForDisplay
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) Rotate the Atoms/Groups so they are aligned for the 3D visualisationstatic AFPChain
AlignmentTools.replaceOptAln
(int[][][] newAlgn, AFPChain afpChain, Atom[] ca1, Atom[] ca2) It replaces an optimal alignment of an AFPChain and calculates all the new alignment scores and variables.static AFPChain
AlignmentTools.replaceOptAln
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int blockNum, int[] optLens, int[][][] optAln) static AFPChain
AlignmentTools.replaceOptAln
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, Map<Integer, Integer> alignment) Takes an AFPChain and replaces the optimal alignment based on an alignment mapstatic void
only shift CA positions.static AFPChain
AlignmentTools.splitBlocksByTopology
(AFPChain a, Atom[] ca1, Atom[] ca2) static void
AlignmentTools.updateSuperposition
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) After the alignment changes (optAln, optLen, blockNum, at a minimum), many other properties which depend on the superposition will be invalid.ModifierConstructorDescriptionRotationAxis
(AFPChain afpChain) Calculate the rotation axis for the first block of an AFPChain -
Uses of AFPChain in org.biojava.nbio.structure.align.xml
Modifier and TypeMethodDescriptionstatic AFPChain
Flip the position of name1 and name2 (as well as all underlying data) in an AFPChain.static AFPChain
new utility method that checks that the order of the pair in the XML alignment is correct and flips the direction if neededstatic AFPChain
static AFPChain[]
AFPChainXMLParser.parseMultiXML
(String xml) Modifier and TypeMethodDescriptionstatic AFPChain
Flip the position of name1 and name2 (as well as all underlying data) in an AFPChain.static void
AFPChainXMLConverter.printXMLEQRInferPositions
(PrettyXMLWriter xml, AFPChain afpChain, int bk, Atom[] ca1, Atom[] ca2) static void
AFPChainXMLConverter.printXMLHeader
(PrettyXMLWriter xml, AFPChain afpChain) static void
AFPChainXMLParser.rebuildAFPChain
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) replace the PDB res nums with atom positions:static String
static void
AFPChainXMLConverter.toXML
(AFPChain afpChain, StringWriter swriter, Atom[] ca1, Atom[] ca2) Write the XML representation to a StringWriterstatic String
Convert an afpChain to a simple XML representation -
Uses of AFPChain in org.biojava.nbio.structure.io
Modifier and TypeMethodDescriptionstatic AFPChain
FastaAFPChainConverter.cpFastaToAfpChain
(File fastaFile, Structure structure, int cpSite) Takes a structure and sequence corresponding to an alignment between a structure or sequence and itself (or even a structure with a sequence), where the result has a circular permutation sitecpSite
residues to the right.static AFPChain
FastaAFPChainConverter.cpFastaToAfpChain
(String first, String second, Structure structure, int cpSite) static AFPChain
FastaAFPChainConverter.cpFastaToAfpChain
(ProteinSequence first, ProteinSequence second, Structure structure, int cpSite) Takes a structure and sequence corresponding to an alignment between a structure or sequence and itself (or even a structure with a sequence), where the result has a circular permutation sitecpSite
residues to the right.static AFPChain
FastaAFPChainConverter.fastaFileToAfpChain
(File fastaFile, Structure structure1, Structure structure2) Reads the filefastaFile
, expecting exactly two sequences which give a pairwise alignment.static AFPChain
FastaAFPChainConverter.fastaStringToAfpChain
(String sequence1, String sequence2, Structure structure1, Structure structure2) Returns an AFPChain corresponding to the alignment betweenstructure1
andstructure2
, which is given by the gapped protein sequencessequence1
andsequence2
.static AFPChain
FastaAFPChainConverter.fastaToAfpChain
(String sequence1, String sequence2, Structure structure1, Structure structure2) TODO Write commentstatic AFPChain
FastaAFPChainConverter.fastaToAfpChain
(Map<String, ProteinSequence> sequences, Structure structure1, Structure structure2) Uses two sequences each with a corresponding structure to create an AFPChain corresponding to the alignment.static AFPChain
FastaAFPChainConverter.fastaToAfpChain
(SequencePair<Sequence<AminoAcidCompound>, AminoAcidCompound> alignment, Structure structure1, Structure structure2) Provided only for convenience.static AFPChain
FastaAFPChainConverter.fastaToAfpChain
(ProteinSequence sequence1, ProteinSequence sequence2, Structure structure1, Structure structure2) Returns an AFPChain corresponding to the alignment betweenstructure1
andstructure2
, which is given by the gapped protein sequencessequence1
andsequence2
. -
Uses of AFPChain in org.biojava.nbio.structure.symmetry.internal
Modifier and TypeMethodDescriptionCeSymmResult.getSelfAlignment()
static AFPChain
SequenceFunctionRefiner.refineSymmetry
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int k) Refines a CE-Symm alignment so that it is perfectly symmetric.Modifier and TypeMethodDescriptionint
AngleOrderDetectorPlus.calculateOrder
(AFPChain afpChain, Atom[] ca) int
GraphComponentOrderDetector.calculateOrder
(AFPChain selfAlignment, Atom[] ca) int
OrderDetector.calculateOrder
(AFPChain afpChain, Atom[] ca) int
SequenceFunctionOrderDetector.calculateOrder
(AFPChain afpChain, Atom[] ca) Returns a refined symmetry alignment, where the repeat residues are aligned consistently in a MultipleAlignment.static AFPChain
SequenceFunctionRefiner.refineSymmetry
(AFPChain afpChain, Atom[] ca1, Atom[] ca2, int k) Refines a CE-Symm alignment so that it is perfectly symmetric.void
CeSymmResult.setSelfAlignment
(AFPChain selfAlignment) -
Uses of AFPChain in org.biojava.nbio.structure.symmetry.utils
Modifier and TypeMethodDescriptionstatic boolean[][]
SymmetryTools.blankOutBreakFlag
(AFPChain afpChain, Atom[] ca2, int rows, int cols, CECalculator calculator, boolean[][] breakFlag, int blankWindowSize) static Matrix
SymmetryTools.blankOutPreviousAlignment
(AFPChain afpChain, Atom[] ca2, int rows, int cols, CECalculator calculator, Matrix max, int blankWindowSize) static org.jgrapht.Graph
<Integer, org.jgrapht.graph.DefaultEdge> SymmetryTools.buildSymmetryGraph
(AFPChain selfAlignment) Converts a self alignment into a directed jGraphT of aligned residues, where each vertex is a residue and each edge means the equivalence between the two residues in the self-alignment.static MultipleAlignment
Converts a refined symmetry AFPChain alignment into the standard representation of symmetry in a MultipleAlignment, that contains the entire Atom array of the strcuture and the symmetric repeats are orgaized in different rows in a single Block.static double
Returns the magnitude of the angle between the first and second blocks ofafpChain
, measured in degrees.static Matrix
SymmetryTools.grayOutPreviousAlignment
(AFPChain afpChain, Atom[] ca2, int rows, int cols, CECalculator calculator, Matrix max, int blankWindowSize, double[] gradientPolyCoeff, double gradientExpCoeff) Modifier and TypeMethodDescriptionSymmetryTools.buildSymmetryGraph
(List<AFPChain> afps, Atom[] atoms, boolean undirected) Converts a set of AFP alignments into a Graph of aligned residues, where each vertex is a residue and each edge means the connection between the two residues in one of the alignments.