|
| static final char | GAP = '-' |
| |
Holds the output of a pairwise sequences alignment.
- Author
- Ahmed Moustafa (ahmed.nosp@m.@use.nosp@m.rs.sf.nosp@m..net)
| jaligner.Alignment.Alignment |
( |
| ) |
|
Adds this alignment to another alignment, the order is important.
- Parameters
-
| a1 | The 1st alignment |
| a2 | The 2nd alignment |
- Returns
- the sum of two alignment
| float jaligner.Alignment.calculateScore |
( |
| ) |
|
Calculate the score of the alignment, not using the score field (the function only uses sequence1, sequence2, matrix and gap penalties).
- Returns
- the calculated score (By: Bram Minnaert)
| boolean jaligner.Alignment.checkScore |
( |
| ) |
|
Check if the calculated score matches the field score.
- Returns
- true if equal, else false. (By: Bram Minnaert)
Copies an alignment to another alignment.
- Parameters
-
| float jaligner.Alignment.getExtend |
( |
| ) |
|
- Returns
- Returns the extend.
| int jaligner.Alignment.getGaps |
( |
| ) |
|
| int jaligner.Alignment.getGaps1 |
( |
| ) |
|
Returns the number of gaps of the aligned sequence #1
- Returns
- the number of gaps of the aligned sequence #1
| int jaligner.Alignment.getGaps2 |
( |
| ) |
|
Returns the number of gaps of the aligned sequence #2
- Returns
- the number of gaps of the aligned sequence #2
| int jaligner.Alignment.getIdentity |
( |
| ) |
|
- Returns
- Returns the identity.
| int jaligner.Alignment.getLength |
( |
| ) |
|
Returns the length of the alignment
- Returns
- Alignment length
| int jaligner.Alignment.getLongestPerfectMatch |
( |
| ) |
|
- Returns
- The length of the longest contiguous perfect sub-alignment
| int jaligner.Alignment.getLongestUngappedAlignment |
( |
int |
maxMismatches | ) |
|
Get the length of the longest ungapped sub-alignment with at most a certain number of mismatches
- Parameters
-
| maxMismatches | Max mismatches |
- Returns
- Length of longest ungapped sub-alignment with at most this many mismatches
| char [] jaligner.Alignment.getMarkupLine |
( |
| ) |
|
- Returns
- Returns the markupLine.
| Matrix jaligner.Alignment.getMatrix |
( |
| ) |
|
- Returns
- Returns the matrix.
| String jaligner.Alignment.getName1 |
( |
| ) |
|
- Returns
- Returns the name1.
| String jaligner.Alignment.getName2 |
( |
| ) |
|
- Returns
- Returns the name2.
| int jaligner.Alignment.getNumberOfMatches |
( |
| ) |
|
| int jaligner.Alignment.getNumberOfMatches2 |
( |
| ) |
|
| float jaligner.Alignment.getOpen |
( |
| ) |
|
| Sequence jaligner.Alignment.getOriginalSequence1 |
( |
| ) |
|
| Sequence jaligner.Alignment.getOriginalSequence2 |
( |
| ) |
|
| float jaligner.Alignment.getPercentIdentity |
( |
| ) |
|
Percent identity
- Returns
- Matches / length
| float jaligner.Alignment.getScore |
( |
| ) |
|
- Returns
- Returns the score.
| float jaligner.Alignment.getScoreWithNoTerminalGaps |
( |
| ) |
|
Calculate the score of the alignment without the terminal gaps.
| char [] jaligner.Alignment.getSequence1 |
( |
| ) |
|
- Returns
- Returns the sequence1.
| char [] jaligner.Alignment.getSequence2 |
( |
| ) |
|
- Returns
- Returns the sequence2.
| int jaligner.Alignment.getSimilarity |
( |
| ) |
|
- Returns
- Returns the similarity.
| int jaligner.Alignment.getStart1 |
( |
| ) |
|
- Returns
- Returns the start1.
| int jaligner.Alignment.getStart2 |
( |
| ) |
|
- Returns
- Returns the start2.
| String jaligner.Alignment.getSummary |
( |
| ) |
|
Returns a summary for alignment
- Returns
- String alignment summary
| void jaligner.Alignment.setExtend |
( |
float |
extend | ) |
|
| void jaligner.Alignment.setGaps |
( |
int |
gaps | ) |
|
| void jaligner.Alignment.setIdentity |
( |
int |
identity | ) |
|
- Parameters
-
| identity | The identity to set. |
| void jaligner.Alignment.setMarkupLine |
( |
char[] |
markupLine | ) |
|
- Parameters
-
| markupLine | The markupLine to set. |
| void jaligner.Alignment.setMatrix |
( |
Matrix |
matrix | ) |
|
| void jaligner.Alignment.setName1 |
( |
String |
name1 | ) |
|
| void jaligner.Alignment.setName2 |
( |
String |
name2 | ) |
|
| void jaligner.Alignment.setOpen |
( |
float |
open | ) |
|
| void jaligner.Alignment.setOriginalSequence1 |
( |
Sequence |
originalSequence1 | ) |
|
| void jaligner.Alignment.setOriginalSequence2 |
( |
Sequence |
originalSequence2 | ) |
|
| void jaligner.Alignment.setScore |
( |
float |
score | ) |
|
| void jaligner.Alignment.setSequence1 |
( |
char[] |
sequence1 | ) |
|
- Parameters
-
| sequence1 | The sequence1 to set. |
| void jaligner.Alignment.setSequence2 |
( |
char[] |
sequence2 | ) |
|
- Parameters
-
| sequence2 | The sequence2 to set. |
| void jaligner.Alignment.setSimilarity |
( |
int |
similarity | ) |
|
- Parameters
-
| similarity | The similarity to set. |
| void jaligner.Alignment.setStart1 |
( |
int |
start1 | ) |
|
| void jaligner.Alignment.setStart2 |
( |
int |
start2 | ) |
|
| String jaligner.Alignment.toString |
( |
| ) |
|
| final char jaligner.Alignment.GAP = '-' |
|
static |
The documentation for this class was generated from the following file: