Class DisplayAFP
java.lang.Object
org.biojava.nbio.structure.align.gui.DisplayAFP
A utility class for visualistion of structure alignments
- Author:
 - Andreas Prlic
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic StructurecreateArtificalStructure(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 StructureAlignmentJmoldisplay(AFPChain afpChain, Group[] twistedGroups, Atom[] ca1, Atom[] ca2, List<Group> hetatms1, List<Group> hetatms2) Note: ca2, hetatoms2 and nucleotides2 should not be rotated.static final StructuregetAlignedStructure(Atom[] ca1, Atom[] ca2) Get an artifical Structure containing both chains.static final Atom[]getAtomArray(Atom[] ca, List<Group> hetatms) Returns the first atom for each groupstatic final AtomgetAtomForAligPos(AFPChain afpChain, int chainNr, int aligPos, Atom[] ca, boolean getPrevious) return the atom at alignment position aligPos.static intgetBlockNrForAlignPos(AFPChain afpChain, int aligPos) Deprecated.use AFPAlignmentDisplay.getBlockNrForAlignPos instead...getEQRAlignmentPos(AFPChain afpChain) getPDBresnum(int aligPos, AFPChain afpChain, Atom[] ca) Return a list of pdb Strings corresponding to the aligned positions of the molecule.static voidshowAlignmentImage(AFPChain afpChain, String result) static voidshowAlignmentPanel(AFPChain afpChain, Atom[] ca1, Atom[] ca2, AbstractAlignmentJmol jmol)  
- 
Constructor Details
- 
DisplayAFP
public DisplayAFP() 
 - 
 - 
Method Details
- 
getEQRAlignmentPos
 - 
getPDBresnum
Return a list of pdb Strings corresponding to the aligned positions of the molecule. Only supports a pairwise alignment with the AFPChain DS.- Parameters:
 aligPos-afpChain-ca-
 - 
getBlockNrForAlignPos
Deprecated.use AFPAlignmentDisplay.getBlockNrForAlignPos instead...get the block number for an aligned position- Parameters:
 afpChain-aligPos-- Returns:
 
 - 
getAtomForAligPos
public static final Atom getAtomForAligPos(AFPChain afpChain, int chainNr, int aligPos, Atom[] ca, boolean getPrevious) throws StructureException return the atom at alignment position aligPos. at the present only works with block 0- Parameters:
 chainNr- the number of the aligned pair. 0... first chain, 1... second chain.afpChain- an afpChain objectaligPos- position on the alignmentgetPrevious- gives the previous position if false, gives the next posible atom- Returns:
 - a CA atom that is at a particular position of the alignment
 - Throws:
 StructureException
 - 
getAlignedStructure
Get an artifical Structure containing both chains. Does NOT rotate anything- Parameters:
 ca1-ca2-- Returns:
 - a structure object containing two models, one for each set of Atoms.
 - Throws:
 StructureException
 - 
getAtomArray
Returns the first atom for each group- Parameters:
 ca-hetatms-- Returns:
 - Throws:
 StructureException
 - 
display
public static final StructureAlignmentJmol display(AFPChain afpChain, Group[] twistedGroups, Atom[] ca1, Atom[] ca2, List<Group> hetatms1, List<Group> hetatms2) throws StructureException Note: ca2, hetatoms2 and nucleotides2 should not be rotated. This will be done here...- Throws:
 StructureException
 - 
showAlignmentPanel
public static void showAlignmentPanel(AFPChain afpChain, Atom[] ca1, Atom[] ca2, AbstractAlignmentJmol jmol) throws StructureException - Throws:
 StructureException
 - 
showAlignmentImage
 - 
createArtificalStructure
public static Structure createArtificalStructure(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException Create a "fake" Structure objects that contains the two sets of atoms aligned on top of each other.- Parameters:
 afpChain- the container of the alignmentca1- atoms for protein 1ca2- atoms for protein 2- Returns:
 - a protein structure with 2 models.
 - Throws:
 StructureException
 
 -