public class AlignmentPair extends SimpleAlignment
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslater
Alignment.SymbolListIterator
EDIT, 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
String s, 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, symbolListIterator
edit, equals, hashCode, iterator, seqString, subList, subStr, toList, toString
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
edit, iterator, seqString, subList, subStr, toList
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public 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 alignmentIllegalArgumentException
BioException
public AlignmentPair(Sequence query, Sequence subject, SubstitutionMatrix subMatrix) throws IllegalArgumentException, BioException
query
- subject
- subMatrix
- IllegalArgumentException
BioException
public static AlignmentPair align(Sequence query, Sequence subject, AlignmentAlgorithm algorithm) throws Exception
query
- subject
- algorithm
- Exception
public 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
BioException
public String formatOutput(int width) throws BioException
String
s, 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.BioException
public float getPercentGapsTarget()
public float getPercentGapsQuery()
public GappedSequence getQuery()
public GappedSequence getSubject()
Copyright © 2014 BioJava. All rights reserved.