public class AbstractULAlignment.SubULAlignment extends AbstractSymbolList implements UnequalLengthAlignment
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslaterAlignment.SymbolListIteratorEDIT, EMPTY_LIST| Modifier | Constructor and Description |
|---|---|
protected |
AbstractULAlignment.SubULAlignment(java.util.Set labels,
Location loc) |
| Modifier and Type | Method and Description |
|---|---|
Alphabet |
getAlphabet()
The alphabet that this SymbolList is over.
|
java.util.List |
getLabels()
The list of SymbolLists in the alignment.
|
java.util.List |
labelsAt(int column)
Returns a list labels, of all seqs that cover that column
|
java.util.List |
labelsInRange(Location loc)
Returns list of all the labels that intersect that range
|
int |
length()
The number of symbols in this SymbolList.
|
protected java.util.List |
listIntersection(java.util.List s1,
java.util.List s2) |
Location |
locInAlignment(java.lang.Object label)
The location of an individual SymbolList relative to overall Alignment
|
Alignment |
subAlignment(java.util.Set labels,
Location loc)
Make a view onto this alignment.
|
Symbol |
symbolAt(int column)
Return the symbol at index, counting from 1.
|
Symbol |
symbolAt(java.lang.Object label,
int column)
Retrieve a symbol by label and column.
|
SymbolList |
symbolListForLabel(java.lang.Object label)
Retrieve a single row of the alignment by label.
|
java.util.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, waitedit, iterator, seqString, subList, subStr, toListaddChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerprotected AbstractULAlignment.SubULAlignment(java.util.Set labels,
Location loc)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsExceptionpublic int length()
SymbolListlength in interface SymbolListpublic Location locInAlignment(java.lang.Object label)
locInAlignment in interface UnequalLengthAlignmentpublic Alignment subAlignment(java.util.Set labels, Location loc) throws java.util.NoSuchElementException
AlignmentMake a view onto this alignment.
If labels is null, then each label will be kept. Otherwise, only those in labels will be kept. If loc is null, then the entire length of the alignment will be kept. If loc is not null, then only the columns within the location will be kept.
subAlignment in interface Alignmentlabels - the Set of sequences to include by labelloc - the Location to includejava.util.NoSuchElementException - if labels contains any item that is not a labelprotected java.util.List listIntersection(java.util.List s1,
java.util.List s2)
public java.util.List labelsAt(int column)
throws java.lang.IndexOutOfBoundsException
UnequalLengthAlignmentlabelsAt in interface UnequalLengthAlignmentjava.lang.IndexOutOfBoundsExceptionpublic java.util.List labelsInRange(Location loc) throws java.lang.IndexOutOfBoundsException
UnequalLengthAlignmentlabelsInRange in interface UnequalLengthAlignmentjava.lang.IndexOutOfBoundsExceptionpublic java.util.List getLabels()
AlignmentThe list of SymbolLists in the alignment.
The index in the list is the same as the index in the alignment. Each SymbolList object will only be in the alignment once. However, a single underlying SymbolList may have more than one view within an alignment, each represented by a different GappedSymbolList.
public Symbol symbolAt(java.lang.Object label, int column) throws java.util.NoSuchElementException
Alignmentpublic Symbol symbolAt(int column) throws java.util.NoSuchElementException
SymbolListsymbolAt in interface SymbolListcolumn - the offset into this SymbolListjava.util.NoSuchElementExceptionpublic SymbolList symbolListForLabel(java.lang.Object label) throws java.util.NoSuchElementException
AlignmentsymbolListForLabel in interface Alignmentlabel - the object from which to retrieve the symbol listjava.util.NoSuchElementException - if there is no row for 'label'public Alphabet getAlphabet()
SymbolList
Every symbol within this SymbolList is a member of this alphabet.
alphabet.contains(symbol) == true
for each symbol that is within this sequence.
getAlphabet in interface SymbolListpublic java.util.Iterator symbolListIterator()
AlignmentsymbolListIterator in interface Alignment