|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.compbio.seq.ProteinLocalAlignment
public abstract class ProteinLocalAlignment
Class ProteinLocalAlignment is the abstract base class for an object that does local alignments of ProteinSequences. Class ProteinLocalAlignment uses the Smith-Waterman algorithm with a substitution matrix (such as BLOSUM-62) and affine gap penalties. To do a local alignment:
To do another local alignment with the same query sequence and a different subject sequence, repeat steps 6-7. To do another local alignment with a different query sequence, repeat steps 5-7.
Subclasses of class ProteinLocalAlignment implement the Smith-Waterman algorithm differently.
| Constructor Summary | |
|---|---|
ProteinLocalAlignment()
Construct a new protein sequence local alignment object. |
|
| Method Summary | |
|---|---|
abstract Alignment |
align()
Align the query sequence and the subject sequence. |
void |
setGapExistencePenalty(int g)
Set the gap existence penalty. |
void |
setGapExtensionPenalty(int h)
Set the gap extension penalty. |
void |
setQuerySequence(ProteinSequence theSequence,
long theId)
Set the query sequence. |
void |
setSubjectSequence(ProteinSequence theSequence,
long theId)
Set the subject sequence. |
void |
setSubstitutionMatrix(int[][] matrix)
Set the protein substitution matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProteinLocalAlignment()
| Method Detail |
|---|
public void setSubstitutionMatrix(int[][] matrix)
The matrix must be a 27×27-element matrix of integers. The expression matrix[x][y] is the score when amino acid x is aligned with amino acid y, where x and y are amino acids in the range 0..27 from a ProteinSequence.
matrix - Protein substition matrix.public void setGapExistencePenalty(int g)
The gap existence penalty is added to the alignment score for the first position of a gap.
g - Gap existence penalty. Assumed to be a negative integer.public void setGapExtensionPenalty(int h)
The gap extension penalty is added to the alignment score for the second and subsequent positions of a gap.
h - Gap extension penalty. Assumed to be a negative integer.
public void setQuerySequence(ProteinSequence theSequence,
long theId)
theSequence - Query sequence.theId - Query sequence ID.
public void setSubjectSequence(ProteinSequence theSequence,
long theId)
theSequence - Subject sequence.theId - Subject sequence ID.
public abstract Alignment align()
throws Exception
Calling the returned Alignment object's getQueryId() method will return the query sequence ID supplied to the setQuerySequence() method. Calling the returned Alignment object's getSubjectId() method will return the subject sequence ID supplied to the setSubjectSequence() method.
Exception - Thrown if an error occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||