Class AFPAlignmentDisplay
java.lang.Object
org.biojava.nbio.structure.align.util.AFPAlignmentDisplay
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic intaaScore(char a, char b) calcIdSimilarity(char[] seq1, char[] seq2, int alnLength) static StructurecreateArtificalStructure(AFPChain afpChain, Atom[] ca1, Atom[] ca2) static voidExtract the alignment outputstatic voidstatic Atom[]getAlignedAtoms1(AFPChain afpChain, Atom[] ca1) static Atom[]getAlignedAtoms2(AFPChain afpChain, Atom[] ca2) static intgetBlockNrForAlignPos(AFPChain afpChain, int aligPos) get the block number for an aligned positionstatic Matrixstatic AtomgetTranslation(AFPChain afpChain, Atom[] ca1, Atom[] ca2)  
- 
Constructor Details
- 
AFPAlignmentDisplay
public AFPAlignmentDisplay() 
 - 
 - 
Method Details
- 
getRotMax
- Throws:
 StructureException
 - 
getTranslation
public static Atom getTranslation(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException - Throws:
 StructureException
 - 
getAlignedAtoms1
 - 
getAlignedAtoms2
 - 
getAlign
Extract the alignment outputeg
STWNTWACTWHLKQP--WSTILILA 111111111111 22222222 SQNNTYACSWKLKSWNNNSTILILG
Those position pairs labeled by 1 and 2 are equivalent positions, belongs to two blocks 1 and 2. The residues between labeled residues are non-equivalent, with '-' filling in their resulting gaps.The three lines can be accessed using
AFPChain.getAlnseq1(),AFPChain.getAlnsymb(), andAFPChain.getAlnseq2(). - 
getAlign
Sets the following properties:Expects the following properties to be previously computed:
AFPChain.getOptAln()and lengths
Known Bugs:
Expects the alignment to have linear topology. May give odd results for circular permutations and other complicated topologies.
- Parameters:
 afpChain- Alignment between ca1 and ca2ca1- CA atoms of the first proteinca2- CA atoms of the second proteinshowSeq- Use symbols reflecting sequence similarity: '|' for identical, ':' for similar, '.' for dissimilar. Otherwise, use the block number to show aligned residues.
 - 
aaScore
 - 
calcIdSimilarity
 - 
createArtificalStructure
public static Structure createArtificalStructure(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, StructureException - Parameters:
 afpChain-ca1-ca2-- Returns:
 - Throws:
 ClassNotFoundException- If an error occurs when invoking jmolNoSuchMethodException- If an error occurs when invoking jmolInvocationTargetException- If an error occurs when invoking jmolIllegalAccessException- If an error occurs when invoking jmolStructureException
 - 
getBlockNrForAlignPos
get the block number for an aligned position- Parameters:
 afpChain-aligPos-- Returns:
 
 
 -