public class SubstitutionMatrix extends Object implements Serializable
This object is able to read a substitution matrix file and constructs a short
matrix in memory. Every single element of the matrix can be accessed by the
method getValueAt
with the parameters being two BioJava symbols.
This is why it is not necessary to access the matrix directly. If there is no
value for the two specified Symbol
s an Exception
is
thrown.
Substitution matrix files, are available at the NCBI FTP directory.
Constructor and Description |
---|
SubstitutionMatrix(File file)
This constructor can be used to guess the alphabet of this substitution
matrix.
|
SubstitutionMatrix(FiniteAlphabet alpha,
File matrixFile)
This constructs a
SubstitutionMatrix object that contains
two Map data structures having BioJava symbols as keys and
the value being the index of the matrix containing the substitution
score. |
SubstitutionMatrix(FiniteAlphabet alpha,
short match,
short replace)
Constructs a SubstitutionMatrix with every Match and every Replace having
the same expenses given by the parameters.
|
SubstitutionMatrix(FiniteAlphabet alpha,
String matrixString,
String name)
With this constructor it is possible to construct a SubstitutionMatrix
object from a substitution matrix file.
|
Modifier and Type | Method and Description |
---|---|
FiniteAlphabet |
getAlphabet()
Gives the alphabet used by this matrix.
|
static SubstitutionMatrix |
getBlosum100_50()
Return the
BLOSUM100.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum100()
Return the
BLOSUM100 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum30_50()
Return the
BLOSUM30.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum30()
Return the
BLOSUM30 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum35_50()
Return the
BLOSUM35.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum35()
Return the
BLOSUM35 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum40_50()
Return the
BLOSUM40.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum40()
Return the
BLOSUM40 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum45_50()
Return the
BLOSUM45.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum45()
Return the
BLOSUM45 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum50_50()
Return the
BLOSUM50.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum50()
Return the
BLOSUM50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum55_50()
Return the
BLOSUM55.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum55()
Return the
BLOSUM55 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum60_50()
Return the
BLOSUM60.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum60()
Return the
BLOSUM60 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum62_50()
Return the
BLOSUM62.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum62()
Return the
BLOSUM62 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum65_50()
Return the
BLOSUM65.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum65()
Return the
BLOSUM65 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum70_50()
Return the
BLOSUM70.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum70()
Return the
BLOSUM70 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum75_50()
Return the
BLOSUM75.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum75()
Return the
BLOSUM75 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum80_50()
Return the
BLOSUM80.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum80()
Return the
BLOSUM80 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum85_50()
Return the
BLOSUM85.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum85()
Return the
BLOSUM85 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum90_50()
Return the
BLOSUM90.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosum90()
Return the
BLOSUM90 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosumn_50()
Return the
BLOSUMN.50 amino acid substitution matrix. |
static SubstitutionMatrix |
getBlosumn()
Return the
BLOSUMN amino acid substitution matrix. |
static SubstitutionMatrix |
getDayhoff()
Return the
DAYHOFF amino acid substitution matrix. |
String |
getDescription()
This gives you the description of this matrix if there is one.
|
static SubstitutionMatrix |
getGonnet()
Return the
GONNET amino acid substitution matrix. |
static SubstitutionMatrix |
getIdentity()
Return the
IDENTITY amino acid substitution matrix. |
static SubstitutionMatrix |
getMatch()
Return the
MATCH amino acid substitution matrix. |
short |
getMax()
The maximum score in this matrix.
|
short |
getMin()
The minimum score of this matrix.
|
String |
getName()
Every substitution matrix has a name like "BLOSUM30" or "PAM160".
|
static SubstitutionMatrix |
getNuc4_2()
Return the
NUC.4.2 nucleotide substitution matrix. |
static SubstitutionMatrix |
getNuc4_4()
Return the
NUC.4.4 nucleotide substitution matrix. |
static SubstitutionMatrix |
getPam10()
Return the
PAM10 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam100()
Return the
PAM100 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam110()
Return the
PAM110 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam120()
Return the
PAM120 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam130()
Return the
PAM130 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam140()
Return the
PAM140 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam150()
Return the
PAM150 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam160()
Return the
PAM160 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam170()
Return the
PAM170 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam180()
Return the
PAM180 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam190()
Return the
PAM190 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam20()
Return the
PAM20 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam200()
Return the
PAM200 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam210()
Return the
PAM210 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam220()
Return the
PAM220 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam230()
Return the
PAM230 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam240()
Return the
PAM240 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam250()
Return the
PAM250 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam260()
Return the
PAM260 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam270()
Return the
PAM270 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam280()
Return the
PAM280 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam290()
Return the
PAM290 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam30()
Return the
PAM30 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam300()
Return the
PAM300 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam310()
Return the
PAM310 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam320()
Return the
PAM320 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam330()
Return the
PAM330 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam340()
Return the
PAM340 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam350()
Return the
PAM350 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam360()
Return the
PAM360 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam370()
Return the
PAM370 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam380()
Return the
PAM380 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam390()
Return the
PAM390 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam40()
Return the
PAM40 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam400()
Return the
PAM400 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam410()
Return the
PAM410 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam420()
Return the
PAM420 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam430()
Return the
PAM430 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam440()
Return the
PAM440 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam450()
Return the
PAM450 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam460()
Return the
PAM460 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam470()
Return the
PAM470 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam480()
Return the
PAM480 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam490()
Return the
PAM490 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam50()
Return the
PAM50 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam500()
Return the
PAM500 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam60()
Return the
PAM60 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam70()
Return the
PAM70 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam80()
Return the
PAM80 amino acid substitution matrix. |
static SubstitutionMatrix |
getPam90()
Return the
PAM90 amino acid substitution matrix. |
static SubstitutionMatrix |
getSubstitutionMatrix(BufferedReader reader)
This constructor can be used to guess the alphabet of this substitution
matrix.
|
static SubstitutionMatrix |
getSubstitutionMatrix(FiniteAlphabet alphabet,
BufferedReader reader)
Return a new substitution matrix with the specified alphabet.
|
static SubstitutionMatrix |
getSubstitutionMatrix(FiniteAlphabet alphabet,
BufferedReader reader,
String name)
Return a new substitution matrix with the specified alphabet and name.
|
short |
getValueAt(Symbol row,
Symbol col)
There are some substitution matrices containing more columns than lines.
|
SubstitutionMatrix |
normalizeMatrix()
With this method you can get a “normalized”
SubstitutionMatrix object; however, since this
implementation uses an short matrix, the normalized matrix will be scaled
by ten. |
void |
printMatrix()
Just to perform some test.
|
void |
setDescription(String desc)
Sets the description to the given value.
|
String |
stringnifyDescription()
Converts the description of the matrix to a String.
|
String |
stringnifyMatrix()
Creates a
String representation of this matrix. |
String |
toString()
Overrides the inherited method.
|
public SubstitutionMatrix(FiniteAlphabet alpha, File matrixFile) throws BioException, NumberFormatException, IOException
SubstitutionMatrix
object that contains
two Map
data structures having BioJava symbols as keys and
the value being the index of the matrix containing the substitution
score.alpha
- the alphabet of the matrix (e.g., DNA, RNA or PROTEIN, or
PROTEIN-TERM)matrixFile
- the file containing the substitution matrix. Lines starting
with '#
' are comments. The line starting with a
white space, is the table head. Every line has to start with
the one letter representation of the Symbol and then the
values for the exchange.IOException
BioException
NumberFormatException
public SubstitutionMatrix(FiniteAlphabet alpha, String matrixString, String name) throws BioException, NumberFormatException, IOException
System.getProperty("line.separator")
. Everything else is the
same than for the constructor above.alpha
- The FiniteAlphabet
to usematrixString
- name
- of the matrix.BioException
IOException
NumberFormatException
public SubstitutionMatrix(FiniteAlphabet alpha, short match, short replace)
alpha
- match
- replace
- public SubstitutionMatrix(File file) throws NumberFormatException, NoSuchElementException, BioException, IOException
file
- A file containing a substitution matrix.NumberFormatException
NoSuchElementException
BioException
IOException
public static SubstitutionMatrix getSubstitutionMatrix(BufferedReader reader) throws NumberFormatException, BioException, IOException
reader
- NumberFormatException
BioException
IOException
public static SubstitutionMatrix getSubstitutionMatrix(FiniteAlphabet alphabet, BufferedReader reader) throws BioException, IOException
alphabet
- alphabet, must not be nullreader
- reader, must not be nullBioException
- if an error occursIOException
- if an I/O error occurspublic static SubstitutionMatrix getSubstitutionMatrix(FiniteAlphabet alphabet, BufferedReader reader, String name) throws BioException, IOException
alphabet
- alphabet, must not be nullreader
- reader, must not be nullname
- name, must not be nullBioException
- if an error occursIOException
- if an I/O error occurspublic static SubstitutionMatrix getBlosum100()
BLOSUM100
amino acid substitution matrix.BLOSUM100
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum100_50()
BLOSUM100.50
amino acid substitution matrix.BLOSUM100.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum30()
BLOSUM30
amino acid substitution matrix.BLOSUM30
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum30_50()
BLOSUM30.50
amino acid substitution matrix.BLOSUM30.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum35()
BLOSUM35
amino acid substitution matrix.BLOSUM35
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum35_50()
BLOSUM35.50
amino acid substitution matrix.BLOSUM35.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum40()
BLOSUM40
amino acid substitution matrix.BLOSUM40
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum40_50()
BLOSUM40.50
amino acid substitution matrix.BLOSUM40.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum45()
BLOSUM45
amino acid substitution matrix.BLOSUM45
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum45_50()
BLOSUM45.50
amino acid substitution matrix.BLOSUM45.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum50()
BLOSUM50
amino acid substitution matrix.BLOSUM50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum50_50()
BLOSUM50.50
amino acid substitution matrix.BLOSUM50.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum55()
BLOSUM55
amino acid substitution matrix.BLOSUM55
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum55_50()
BLOSUM55.50
amino acid substitution matrix.BLOSUM55.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum60()
BLOSUM60
amino acid substitution matrix.BLOSUM60
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum60_50()
BLOSUM60.50
amino acid substitution matrix.BLOSUM60.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum62()
BLOSUM62
amino acid substitution matrix.BLOSUM62
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum62_50()
BLOSUM62.50
amino acid substitution matrix.BLOSUM62.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum65()
BLOSUM65
amino acid substitution matrix.BLOSUM65
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum65_50()
BLOSUM65.50
amino acid substitution matrix.BLOSUM65.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum70()
BLOSUM70
amino acid substitution matrix.BLOSUM70
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum70_50()
BLOSUM70.50
amino acid substitution matrix.BLOSUM70.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum75()
BLOSUM75
amino acid substitution matrix.BLOSUM75
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum75_50()
BLOSUM75.50
amino acid substitution matrix.BLOSUM75.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum80()
BLOSUM80
amino acid substitution matrix.BLOSUM80
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum80_50()
BLOSUM80.50
amino acid substitution matrix.BLOSUM80.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum85()
BLOSUM85
amino acid substitution matrix.BLOSUM85
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum85_50()
BLOSUM85.50
amino acid substitution matrix.BLOSUM85.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum90()
BLOSUM90
amino acid substitution matrix.BLOSUM90
amino acid substitution matrixpublic static SubstitutionMatrix getBlosum90_50()
BLOSUM90.50
amino acid substitution matrix.BLOSUM90.50
amino acid substitution matrixpublic static SubstitutionMatrix getBlosumn()
BLOSUMN
amino acid substitution matrix.BLOSUMN
amino acid substitution matrixpublic static SubstitutionMatrix getBlosumn_50()
BLOSUMN.50
amino acid substitution matrix.BLOSUMN.50
amino acid substitution matrixpublic static SubstitutionMatrix getDayhoff()
DAYHOFF
amino acid substitution matrix.DAYHOFF
amino acid substitution matrixpublic static SubstitutionMatrix getGonnet()
GONNET
amino acid substitution matrix.GONNET
amino acid substitution matrixpublic static SubstitutionMatrix getIdentity()
IDENTITY
amino acid substitution matrix.IDENTITY
amino acid substitution matrixpublic static SubstitutionMatrix getMatch()
MATCH
amino acid substitution matrix.MATCH
amino acid substitution matrixpublic static SubstitutionMatrix getNuc4_2()
NUC.4.2
nucleotide substitution matrix.NUC.4.2
nucleotide substitution matrixpublic static SubstitutionMatrix getNuc4_4()
NUC.4.4
nucleotide substitution matrix.NUC.4.4
nucleotide substitution matrixpublic static SubstitutionMatrix getPam10()
PAM10
amino acid substitution matrix.PAM10
amino acid substitution matrixpublic static SubstitutionMatrix getPam100()
PAM100
amino acid substitution matrix.PAM100
amino acid substitution matrixpublic static SubstitutionMatrix getPam110()
PAM110
amino acid substitution matrix.PAM110
amino acid substitution matrixpublic static SubstitutionMatrix getPam120()
PAM120
amino acid substitution matrix.PAM120
amino acid substitution matrixpublic static SubstitutionMatrix getPam130()
PAM130
amino acid substitution matrix.PAM130
amino acid substitution matrixpublic static SubstitutionMatrix getPam140()
PAM140
amino acid substitution matrix.PAM140
amino acid substitution matrixpublic static SubstitutionMatrix getPam150()
PAM150
amino acid substitution matrix.PAM150
amino acid substitution matrixpublic static SubstitutionMatrix getPam160()
PAM160
amino acid substitution matrix.PAM160
amino acid substitution matrixpublic static SubstitutionMatrix getPam170()
PAM170
amino acid substitution matrix.PAM170
amino acid substitution matrixpublic static SubstitutionMatrix getPam180()
PAM180
amino acid substitution matrix.PAM180
amino acid substitution matrixpublic static SubstitutionMatrix getPam190()
PAM190
amino acid substitution matrix.PAM190
amino acid substitution matrixpublic static SubstitutionMatrix getPam20()
PAM20
amino acid substitution matrix.PAM20
amino acid substitution matrixpublic static SubstitutionMatrix getPam200()
PAM200
amino acid substitution matrix.PAM200
amino acid substitution matrixpublic static SubstitutionMatrix getPam210()
PAM210
amino acid substitution matrix.PAM210
amino acid substitution matrixpublic static SubstitutionMatrix getPam220()
PAM220
amino acid substitution matrix.PAM220
amino acid substitution matrixpublic static SubstitutionMatrix getPam230()
PAM230
amino acid substitution matrix.PAM230
amino acid substitution matrixpublic static SubstitutionMatrix getPam240()
PAM240
amino acid substitution matrix.PAM240
amino acid substitution matrixpublic static SubstitutionMatrix getPam250()
PAM250
amino acid substitution matrix.PAM250
amino acid substitution matrixpublic static SubstitutionMatrix getPam260()
PAM260
amino acid substitution matrix.PAM260
amino acid substitution matrixpublic static SubstitutionMatrix getPam270()
PAM270
amino acid substitution matrix.PAM270
amino acid substitution matrixpublic static SubstitutionMatrix getPam280()
PAM280
amino acid substitution matrix.PAM280
amino acid substitution matrixpublic static SubstitutionMatrix getPam290()
PAM290
amino acid substitution matrix.PAM290
amino acid substitution matrixpublic static SubstitutionMatrix getPam30()
PAM30
amino acid substitution matrix.PAM30
amino acid substitution matrixpublic static SubstitutionMatrix getPam300()
PAM300
amino acid substitution matrix.PAM300
amino acid substitution matrixpublic static SubstitutionMatrix getPam310()
PAM310
amino acid substitution matrix.PAM310
amino acid substitution matrixpublic static SubstitutionMatrix getPam320()
PAM320
amino acid substitution matrix.PAM320
amino acid substitution matrixpublic static SubstitutionMatrix getPam330()
PAM330
amino acid substitution matrix.PAM330
amino acid substitution matrixpublic static SubstitutionMatrix getPam340()
PAM340
amino acid substitution matrix.PAM340
amino acid substitution matrixpublic static SubstitutionMatrix getPam350()
PAM350
amino acid substitution matrix.PAM350
amino acid substitution matrixpublic static SubstitutionMatrix getPam360()
PAM360
amino acid substitution matrix.PAM360
amino acid substitution matrixpublic static SubstitutionMatrix getPam370()
PAM370
amino acid substitution matrix.PAM370
amino acid substitution matrixpublic static SubstitutionMatrix getPam380()
PAM380
amino acid substitution matrix.PAM380
amino acid substitution matrixpublic static SubstitutionMatrix getPam390()
PAM390
amino acid substitution matrix.PAM390
amino acid substitution matrixpublic static SubstitutionMatrix getPam40()
PAM40
amino acid substitution matrix.PAM40
amino acid substitution matrixpublic static SubstitutionMatrix getPam400()
PAM400
amino acid substitution matrix.PAM400
amino acid substitution matrixpublic static SubstitutionMatrix getPam410()
PAM410
amino acid substitution matrix.PAM410
amino acid substitution matrixpublic static SubstitutionMatrix getPam420()
PAM420
amino acid substitution matrix.PAM420
amino acid substitution matrixpublic static SubstitutionMatrix getPam430()
PAM430
amino acid substitution matrix.PAM430
amino acid substitution matrixpublic static SubstitutionMatrix getPam440()
PAM440
amino acid substitution matrix.PAM440
amino acid substitution matrixpublic static SubstitutionMatrix getPam450()
PAM450
amino acid substitution matrix.PAM450
amino acid substitution matrixpublic static SubstitutionMatrix getPam460()
PAM460
amino acid substitution matrix.PAM460
amino acid substitution matrixpublic static SubstitutionMatrix getPam470()
PAM470
amino acid substitution matrix.PAM470
amino acid substitution matrixpublic static SubstitutionMatrix getPam480()
PAM480
amino acid substitution matrix.PAM480
amino acid substitution matrixpublic static SubstitutionMatrix getPam490()
PAM490
amino acid substitution matrix.PAM490
amino acid substitution matrixpublic static SubstitutionMatrix getPam50()
PAM50
amino acid substitution matrix.PAM50
amino acid substitution matrixpublic static SubstitutionMatrix getPam500()
PAM500
amino acid substitution matrix.PAM500
amino acid substitution matrixpublic static SubstitutionMatrix getPam60()
PAM60
amino acid substitution matrix.PAM60
amino acid substitution matrixpublic static SubstitutionMatrix getPam70()
PAM70
amino acid substitution matrix.PAM70
amino acid substitution matrixpublic static SubstitutionMatrix getPam80()
PAM80
amino acid substitution matrix.PAM80
amino acid substitution matrixpublic static SubstitutionMatrix getPam90()
PAM90
amino acid substitution matrix.PAM90
amino acid substitution matrixpublic short getValueAt(Symbol row, Symbol col) throws BioException
row
- Symbol of the linecol
- Symbol of the columnBioException
public String getDescription()
public String getName()
public short getMin()
public short getMax()
public void setDescription(String desc)
desc
- a description. This doesn't have to start with '#'.public FiniteAlphabet getAlphabet()
public String stringnifyMatrix()
String
representation of this matrix.public String stringnifyDescription()
System.getProperty("line.separator")
.
Every line starts with #
.public void printMatrix()
public SubstitutionMatrix normalizeMatrix() throws BioException, NumberFormatException, IOException
SubstitutionMatrix
object; however, since this
implementation uses an short matrix, the normalized matrix will be scaled
by ten. If you need values between zero and one, you have to divide every
value returned by getValueAt
by ten.SubstitutionMatrix
object given
by this substitution matrix. Because this uses an
short
matrix, all values are scaled by 10.BioException
IOException
NumberFormatException
Copyright © 2014 BioJava. All rights reserved.