public class AlignmentPair extends SimpleAlignment
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslaterAlignment.SymbolListIteratorEDIT, EMPTY_LIST| Constructor and Description |
|---|
AlignmentPair(Sequence query,
Sequence subject,
int queryStart,
int queryEnd,
int subjectStart,
int subjectEnd,
SubstitutionMatrix subMatrix) |
AlignmentPair(Sequence query,
Sequence subject,
SubstitutionMatrix subMatrix) |
| Modifier and Type | Method and Description |
|---|---|
static AlignmentPair |
align(Sequence query,
Sequence subject,
AlignmentAlgorithm algorithm) |
String |
formatOutput() |
String |
formatOutput(int width)
This method provides a BLAST-like formated alignment from the given
Strings, in which the sequence coordinates and the
information "Query" or "Sbjct", respectively is added to each line. |
long |
getComputationTime() |
int |
getNumGapsInQuery() |
int |
getNumGapsInSubject() |
int |
getNumIdenticals() |
int |
getNumSimilars() |
float |
getPercentGapsQuery() |
float |
getPercentGapsTarget() |
float |
getPercentIdentityQuery() |
float |
getPercentIdentitySubject() |
float |
getPercentSimilarityQuery() |
float |
getPercentSimilaritySubject() |
GappedSequence |
getQuery()
Return the query sequence as a gapped sequence.
|
int |
getQueryEnd() |
int |
getQueryLength() |
int |
getQueryStart() |
GappedSequence |
getSubject()
Return the subject sequence as a gapped sequence.
|
int |
getSubjectEnd() |
int |
getSubjectLength() |
int |
getSubjectStart() |
SubstitutionMatrix |
getSubstitutionMatrix() |
finalize, getAlphabet, getLabels, getScore, length, setScore, subAlignment, symbolAt, symbolAt, symbolListForLabel, symbolListIteratoredit, equals, hashCode, iterator, seqString, subList, subStr, toList, toStringaddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListeneredit, iterator, seqString, subList, subStr, toListaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerpublic AlignmentPair(Sequence query, Sequence subject, int queryStart, int queryEnd, int subjectStart, int subjectEnd, SubstitutionMatrix subMatrix) throws IllegalArgumentException, BioException
queryStart - the start position in the query, where the alignment starts.
For example zero for normal Needleman-Wunsch-Alignments.queryEnd - the end position, that means the sequence coordinate, which is
the last symbol of the query sequence. Counting starts at
zero!queryLength - The length of the query sequence without gaps.subjectStart - These are all the same for the target. Have a look at these
above.subjectEnd - subMatrix - the subsitution Matrix used for calculating the alignmentIllegalArgumentExceptionBioExceptionpublic AlignmentPair(Sequence query, Sequence subject, SubstitutionMatrix subMatrix) throws IllegalArgumentException, BioException
query - subject - subMatrix - IllegalArgumentExceptionBioExceptionpublic static AlignmentPair align(Sequence query, Sequence subject, AlignmentAlgorithm algorithm) throws Exception
query - subject - algorithm - Exceptionpublic int getQueryStart()
public int getQueryEnd()
public int getSubjectStart()
public int getSubjectEnd()
public long getComputationTime()
public int getNumGapsInQuery()
public int getNumGapsInSubject()
public int getNumIdenticals()
public int getNumSimilars()
public float getPercentIdentityQuery()
public float getPercentIdentitySubject()
public float getPercentSimilarityQuery()
public float getPercentSimilaritySubject()
public int getQueryLength()
public int getSubjectLength()
public SubstitutionMatrix getSubstitutionMatrix()
public String formatOutput() throws BioException
BioExceptionpublic String formatOutput(int width) throws BioException
Strings, in which the sequence coordinates and the
information "Query" or "Sbjct", respectively is added to each line. Each
line contains width sequence characters including the gap
symbols plus the meta information. There is one white line between two
pairs of sequences.width - the number of symbols to be displayed per line.BioExceptionpublic float getPercentGapsTarget()
public float getPercentGapsQuery()
public GappedSequence getQuery()
public GappedSequence getSubject()
Copyright © 2020 BioJava. All rights reserved.