public class AFPAlignmentDisplay extends Object
Constructor and Description |
---|
AFPAlignmentDisplay() |
Modifier and Type | Method and Description |
---|---|
static int |
aaScore(char a,
char b) |
static Map<String,Double> |
calcIdSimilarity(char[] seq1,
char[] seq2,
int alnLength) |
static Structure |
createArtificalStructure(AFPChain afpChain,
Atom[] ca1,
Atom[] ca2) |
static void |
getAlign(AFPChain afpChain,
Atom[] ca1,
Atom[] ca2)
Extract the alignment output
eg
STWNTWACTWHLKQP--WSTILILA
111111111111 22222222
SQNNTYACSWKLKSWNNNSTILILG
Those position pairs labeled by 1 and 2 are equivalent positions, belongs to
two blocks 1 and 2.
|
static void |
getAlign(AFPChain afpChain,
Atom[] ca1,
Atom[] ca2,
boolean showSeq)
|
static Atom[] |
getAlignedAtoms1(AFPChain afpChain,
Atom[] ca1) |
static Atom[] |
getAlignedAtoms2(AFPChain afpChain,
Atom[] ca2) |
static int |
getBlockNrForAlignPos(AFPChain afpChain,
int aligPos)
get the block number for an aligned position
|
static Matrix |
getRotMax(AFPChain afpChain,
Atom[] ca1,
Atom[] ca2) |
static Atom |
getTranslation(AFPChain afpChain,
Atom[] ca1,
Atom[] ca2) |
public AFPAlignmentDisplay()
public static Matrix getRotMax(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException
StructureException
public static Atom getTranslation(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException
StructureException
public static Atom[] getAlignedAtoms1(AFPChain afpChain, Atom[] ca1)
public static Atom[] getAlignedAtoms2(AFPChain afpChain, Atom[] ca2)
public static void getAlign(AFPChain afpChain, Atom[] ca1, Atom[] ca2)
eg
STWNTWACTWHLKQP--WSTILILA 111111111111 22222222 SQNNTYACSWKLKSWNNNSTILILGThose 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()
,
and AFPChain.getAlnseq2()
.
public static void getAlign(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showSeq)
Expects the following properties to be previously computed:
AFPChain.getOptAln()
and lengths
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.public static int aaScore(char a, char b)
public static Map<String,Double> calcIdSimilarity(char[] seq1, char[] seq2, int alnLength)
public static Structure createArtificalStructure(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, StructureException
afpChain
- ca1
- ca2
- 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
public static int getBlockNrForAlignPos(AFPChain afpChain, int aligPos)
afpChain
- aligPos
- Copyright © 2000–2019 BioJava. All rights reserved.