Class AFPChain
java.lang.Object
org.biojava.nbio.structure.align.model.AFPChain
- All Implemented Interfaces:
Serializable
,Cloneable
A bean to contain the core of a structure alignment.
The FatCat aligner class is working on the AFPChain class.
- Author:
- Andreas Prlic, Aleix Lafita
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clone()
Creates and returns a copy of this object.boolean
A week equality metric.int[][]
int[][]
int
int[]
double[]
double[]
int
int[][]
Get the set of AFPs for this alignment.double
double
int
int
int
char[]
char[]
char[]
int[]
int[]
int
The number of blocks in the alignmentint
int
int
int[][][]
tracks the residues of the initial blocks (before optimization)int[]
double[]
Matrix[]
double[]
Atom[]
int[]
int
int
long
int
double
getConn()
int
Get the coverage of protein 1 with the alignmentint
Get the coverage of protein 2 with the alignmentGet a textual description for the protein 2 of the alignment.A matrix with ca1length rows and ca2length columns.getDVar()
int[]
int
int[]
int[]
int
int
long
getId()
double
The percent of residues that are sequence-identical in the alignment.long
int
get the maximum nr of Twists that are allowed...int
int
getName1()
getName2()
double
int
getNrEQR()
Get the number of structurally equivalent residuesint[][][]
Tracks the Atom positions in the optimal alignment.int[]
The length of each blockint
The number of aligned residues in the final alignment.double[]
String[][][]
used temporarily during XML serialization to track the PDB positions of the alignmnetdouble
The probability (FATCAT) or Z-score (CE) of the alignment.double
Returns the similarity score for the alignment.double
Returns the tmScore of the alignment.int
int
double
this is the init-RMSD, not the final RMSD after refinement.double
The RMSD of the final alignment.int[]
getTwi()
int
hashCode()
boolean
Get whether this alignment has the normal topology, ie the residues aligned in each block increase sequentially over the original protein.boolean
boolean
void
setAfpAftIndex
(int[][] afpAftIndex) void
setAfpBefIndex
(int[][] afpBefIndex) void
setAfpChainLen
(int afpChainLen) void
setAfpChainList
(int[] afpChainList) void
setAfpChainTwiBin
(double[] afpChainTwiBin) void
setAfpChainTwiList
(double[] afpChainTwiList) void
setAfpChainTwiNum
(int afpChainTwiNum) void
setAfpIndex
(int[][] afpIndex) void
Set the set of AFPs for this alignment.void
setAlgorithmName
(String algorithmName) Caution has to be made when changing the algorithmName of an AFPChain, since downstream analysis methods (scores, display, etc) behave differently if the alignment is flexible (created with FatCat).void
setAlignScore
(double alignScore) void
setAlignScoreUpdate
(double alignScoreUpdate) void
setAlnbeg1
(int alnbeg1) void
setAlnbeg2
(int alnbeg2) void
setAlnLength
(int alnLength) void
setAlnseq1
(char[] alnseq1) void
setAlnseq2
(char[] alnseq2) void
setAlnsymb
(char[] alnsymb) void
setBlock2Afp
(int[] block2Afp) void
setBlockGap
(int[] blockGap) void
setBlockNum
(int blockNum) void
setBlockNumClu
(int blockNumClu) void
setBlockNumIni
(int blockNumIni) void
setBlockNumSpt
(int blockNumSpt) void
setBlockResList
(int[][][] blockResList) void
setBlockResSize
(int[] blockResSize) void
setBlockRmsd
(double[] blockRmsd) void
setBlockRotationMatrix
(Matrix[] blockRotationMatrix) void
setBlockScore
(double[] blockScore) void
setBlockShiftVector
(Atom[] blockShiftVector) void
setBlockSize
(int[] blockSize) void
setCa1Length
(int ca1Length) void
setCa2Length
(int ca2Length) void
setCalculationTime
(long calculationTime) void
setChainLen
(int chainLen) void
setChainRmsd
(double chainRmsd) The RMSD of the chain of AFPs.void
void
setDescription2
(String desc) Set the textual description for protein 2.void
setDisTable1
(Matrix disTable1) void
setDisTable2
(Matrix disTable2) void
setDistanceMatrix
(Matrix distanceMatrix) A matrix with ca1length rows and ca2length columns.void
void
setFocusAfpList
(int[] focusAfpList) void
setFocusAfpn
(int focusAfpn) void
setFocusRes1
(int[] focusRes1) void
setFocusRes2
(int[] focusRes2) void
setFocusResn
(int focusResn) void
setGapLen
(int gapLen) void
setId
(long id) void
setIdentity
(double identity) void
setIoTime
(long ioTime) void
setMaxTra
(int maxTra) Set the maximum number of Twists that are allowed...void
setMinLen
(int minLen) void
setMisLen
(int misLen) void
void
void
setNormAlignScore
(double normAlignScore) void
setOptAln
(int[][][] optAln) void
setOptLen
(int[] optLen) void
setOptLength
(int optLength) The length of the optimal alignment.void
setOptRmsd
(double[] optRmsd) void
void
setProbability
(double probability) void
setSequentialAlignment
(boolean sequentialAlignment) Set whether this alignment has the normal topology, ie the residues aligned in each block increase sequentially over the original protein.void
setShortAlign
(boolean shortAlign) void
setSimilarity
(double similarity) void
setTMScore
(double tmScore) void
setTotalLenIni
(int totalLenIni) void
setTotalLenOpt
(int totalLenOpt) void
setTotalRmsdIni
(double totalRmsdIni) this is the init-RMSD, not the final RMSD after refinement.void
setTotalRmsdOpt
(double totalRmsdOpt) The RMSD of the final alignment.void
setTwi
(int[] twi) void
setVersion
(String version) toRotMat()
toString()
-
Field Details
-
newline
-
UNKNOWN_ALGORITHM
- See Also:
-
-
Constructor Details
-
AFPChain
Construction of an AFPChain needs the algorithm name, since downstream analysis methods (scores, display, etc) behave differently if the alignment is flexible (created with FatCat).- Parameters:
algorithmName
-
-
AFPChain
Copy constructor- Parameters:
o
- AFPChain to duplicate
-
-
Method Details
-
clone
Creates and returns a copy of this object. -
getId
-
setId
-
toCE
-
toRotMat
-
toFatcat
-
toDBSearchResult
-
calcSimilarity
-
getNrEQR
Get the number of structurally equivalent residues- Returns:
- nr of EQR
-
getCoverage1
Get the coverage of protein 1 with the alignment- Returns:
- percentage of coverage, between 0 and 100.
-
getCoverage2
Get the coverage of protein 2 with the alignment- Returns:
- percentage of coverage, between 0 and 100.
-
toString
-
isSignificantResult
-
getPdbAln
used temporarily during XML serialization to track the PDB positions of the alignmnet- Returns:
- String array
-
setPdbAln
-
getConn
-
setConn
-
getDVar
-
setDVar
-
getMaxTra
get the maximum nr of Twists that are allowed...- Returns:
- maxTra, the max nr of twists
-
setMaxTra
Set the maximum number of Twists that are allowed...- Parameters:
maxTra
-
-
getAlignScore
-
setAlignScore
-
getAlignScoreUpdate
-
setAlignScoreUpdate
-
getAfpChainTwiNum
-
setAfpChainTwiNum
-
getMinLen
-
setMinLen
-
getAfpSet
Get the set of AFPs for this alignment. An AFP is a local ungapped alignment between the two peptides. AFPs are set before the final optimization step. To get the final alignment, look at the aligned pairs fromgetOptAln()
.- Returns:
- The optimal set of AFPs
- See Also:
-
setAfpSet
Set the set of AFPs for this alignment. An AFP is a local ungapped alignment between the two peptides. AFPs are set before the final optimization step. To get the final alignment, look at the aligned pairs fromgetOptAln()
. -
getAfpIndex
-
setAfpIndex
-
getAfpAftIndex
-
setAfpAftIndex
-
getAfpBefIndex
-
setAfpBefIndex
-
getDisTable1
-
setDisTable1
-
getDisTable2
-
setDisTable2
-
getTwi
-
setTwi
-
getAfpChainLen
-
setAfpChainLen
-
getAfpChainList
-
setAfpChainList
-
getAfpChainTwiBin
-
setAfpChainTwiBin
-
getAfpChainTwiList
-
setAfpChainTwiList
-
getChainRmsd
-
setChainRmsd
The RMSD of the chain of AFPs. Set during AFPCHainer.traceBack();- Parameters:
chainRmsd
-
-
getChainLen
-
setChainLen
-
getMisLen
-
setMisLen
-
getGapLen
-
setGapLen
-
getBlockNum
The number of blocks in the alignment- Returns:
- the nr of blocks in alignment
-
setBlockNum
-
getBlockNumIni
-
setBlockNumIni
-
getBlockNumClu
-
setBlockNumClu
-
getBlockNumSpt
-
setBlockNumSpt
-
getBlockRmsd
-
setBlockRmsd
-
getBlock2Afp
-
setBlock2Afp
-
getBlockSize
-
setBlockSize
-
getBlockScore
-
setBlockScore
-
getBlockGap
-
setBlockGap
-
getBlockResSize
-
setBlockResSize
-
getBlockResList
tracks the residues of the initial blocks (before optimization)- Returns:
- list of block residues
-
setBlockResList
-
getFocusResn
-
setFocusResn
-
getFocusRes1
-
setFocusRes1
-
getFocusRes2
-
setFocusRes2
-
getFocusAfpn
-
setFocusAfpn
-
getFocusAfpList
-
setFocusAfpList
-
isShortAlign
-
setShortAlign
-
getOptAln
Tracks the Atom positions in the optimal alignment. Note: only considers the equivalent positions, gaps are ignored... first dimension is the block nr second dimension is 0 or 1 (the alignment chain index) third is the position- Returns:
- int array
-
setOptAln
-
getOptLen
The length of each block- Returns:
- lengths
-
setOptLen
-
getOptRmsd
-
setOptRmsd
-
getOptLength
The number of aligned residues in the final alignment.- Returns:
-
setOptLength
The length of the optimal alignment. Set by AFPOptimizer.optimizeAln(). This should be the sum of the elements in optLen- Parameters:
optLength
-
-
getAlnsymb
-
setAlnsymb
-
getAlnseq1
-
setAlnseq1
-
getAlnseq2
-
setAlnseq2
-
getAlnLength
- Returns:
- The total length of the alignment, including gaps
- See Also:
-
setAlnLength
-
getAlnbeg1
- Returns:
- The index of the first aligned residue in protein 1
-
setAlnbeg1
-
getAlnbeg2
- Returns:
- The index of the first aligned residue in protein 2
-
setAlnbeg2
-
getTotalLenIni
-
setTotalLenIni
-
getTotalLenOpt
-
setTotalLenOpt
-
getTotalRmsdIni
this is the init-RMSD, not the final RMSD after refinement.- Returns:
- totalRmsdIni
-
setTotalRmsdIni
this is the init-RMSD, not the final RMSD after refinement.- Parameters:
totalRmsdIni
-
-
getTotalRmsdOpt
The RMSD of the final alignment. Use this to print overal alignment RMSD.- Returns:
- total RMSD of the optimal alignment.
-
setTotalRmsdOpt
The RMSD of the final alignment. Use this to print overal alignment RMSD.- Parameters:
totalRmsdOpt
- : total RMSD of the optimal alignment
-
getName1
-
setName1
-
getName2
-
setName2
-
getCalculationTime
-
setCalculationTime
-
getCa1Length
-
setCa1Length
-
getCa2Length
-
setCa2Length
-
getIoTime
-
setIoTime
-
getProbability
The probability (FATCAT) or Z-score (CE) of the alignment.- Returns:
- either the probability (FATCAT) or the Z-score (CE) of the alignment.
-
setProbability
-
getIdentity
The percent of residues that are sequence-identical in the alignment.- Returns:
- a value between 0 and 1
-
setIdentity
-
getSimilarity
Returns the similarity score for the alignment. This gives the percent of sequence similar residues in the alignment.- Returns:
- a double between 0 and 1
-
setSimilarity
-
getNormAlignScore
-
setNormAlignScore
-
getBlockRotationMatrix
-
setBlockRotationMatrix
-
getBlockShiftVector
-
setBlockShiftVector
-
getAlgorithmName
-
setAlgorithmName
Caution has to be made when changing the algorithmName of an AFPChain, since downstream analysis methods (scores, display, etc) behave differently if the alignment is flexible (created with FatCat).- Parameters:
algorithmName
-
-
getVersion
-
setVersion
-
isSequentialAlignment
Get whether this alignment has the normal topology, ie the residues aligned in each block increase sequentially over the original protein. This will be false if a circular permutation was detected.- Returns:
- true if the alignment is sequential
-
setSequentialAlignment
Set whether this alignment has the normal topology, ie the residues aligned in each block increase sequentially over the original protein. This will be false if a circular permutation was detected. -
getDistanceMatrix
A matrix with ca1length rows and ca2length columns. For CE this is the distance matrix, but the exact interpretation is left up to the alignment algorithm.Note: The org.biojava.nbio.structure.gui.JMatrixPanel, used in the structure-gui package to display distance matrices, will display the transpose of this matrix. Be sure to take that into account when debugging visually.
- Returns:
- A matrix with dimensions ca1length x ca2length, or null
-
setDistanceMatrix
A matrix with ca1length rows and ca2length columns. For CE this is the distance matrix, but the exact interpretation is left up to the alignment algorithm.- Parameters:
distanceMatrix
- A matrix with dimensions ca1length x ca2length
-
setTMScore
-
getTMScore
Returns the tmScore of the alignment. If the score has not been calcualted yet, returns -1. To calculate it call AFPChainScorer.getTMScore(afpChain, ca1, ca2);- Returns:
- -1, if not calculated, or the TM-score, a score between 0 and 1
-
getDescription2
Get a textual description for the protein 2 of the alignment.- Returns:
-
setDescription2
Set the textual description for protein 2.- Parameters:
desc
-
-
hashCode
-
equals
A week equality metric. Checks if the optAlign is the same, and if the objects being compared seem to be the same (same names, lengths). Does not check properties of the alignment such as scores or superposition matrices.
-