org.biojava.bio.alignment
public abstract class AbstractULAlignment extends AbstractSymbolList implements UnequalLengthAlignment
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractULAlignment.LeftRightLocationComparator
Orders by location left to right.
|
class |
AbstractULAlignment.SubULAlignment |
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslaterAlignment.SymbolListIterator| Modifier and Type | Field and Description |
|---|---|
protected Alphabet |
alphabet |
EDIT, EMPTY_LIST| Constructor and Description |
|---|
AbstractULAlignment() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
debug(String s) |
List |
labelsAt(int column)
Returns a list labels, of all seqs that cover that column
|
List |
labelsInRange(Location loc)
Returns list of all the labels that intersect that range
|
Object |
leftMost()
leftMost and rightMost return labels.
|
SortedSet |
orderedLables(Comparator comp) |
Object |
rightMost() |
Alignment |
subAlignment(Set labels,
int min,
int max)
Retreives a subAlignment
|
Alignment |
subAlignment(Set labels,
Location loc)
Retrieves a subalignment specified by the location.
|
Symbol |
symbolAt(int index)
this will return the ambiguity symbol associated with all symbols in that column
|
Iterator |
symbolListIterator()
Creates an Iterator over the SymbolLists in the alignment.
|
edit, equals, hashCode, iterator, seqString, subList, subStr, toList, toStringaddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitlocInAlignmentgetLabels, symbolAt, symbolListForLabeledit, getAlphabet, iterator, length, seqString, subList, subStr, toListaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerprotected Alphabet alphabet
public Symbol symbolAt(int index)
symbolAt in interface SymbolListindex - the offset into this SymbolListpublic List labelsAt(int column)
UnequalLengthAlignmentlabelsAt in interface UnequalLengthAlignmentpublic List labelsInRange(Location loc)
UnequalLengthAlignmentlabelsInRange in interface UnequalLengthAlignmentpublic Iterator symbolListIterator()
AlignmentsymbolListIterator in interface Alignmentprotected void debug(String s)
public Object leftMost()
public Object rightMost()
public Alignment subAlignment(Set labels, Location loc) throws IndexOutOfBoundsException
WARNING: It is assumed that the location is contiguous. If the location is non-contiguous it may be preferable to use a block iterator to retrieve each sub location independently.
subAlignment in interface Alignmentlabels - the Set of sequences to include by labelloc - the Location to includeIndexOutOfBoundsExceptionsubAlignment(Set labels, int min, int max)public Alignment subAlignment(Set labels, int min, int max) throws NoSuchElementException
labels - the labels of the SymbolLists to be in the Alignmentmin - the left most coordinatemax - the right most coordinateNoSuchElementException - if one of the values in labels is not in the parent alignmentpublic SortedSet orderedLables(Comparator comp)