public abstract class AbstractULAlignment extends AbstractSymbolList implements UnequalLengthAlignment
Modifier and Type | Class and Description |
---|---|
class |
AbstractULAlignment.LeftRightLocationComparator<T>
Orders by location left to right.
|
class |
AbstractULAlignment.SubULAlignment |
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslater
Alignment.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<String> |
labelsAt(int column)
Returns a list labels, of all seqs that cover that column
|
List<String> |
labelsInRange(Location loc)
Returns list of all the labels that intersect that range
|
Object |
leftMost()
leftMost and rightMost return labels.
|
SortedSet<String> |
orderedLables(Comparator<String> comp) |
Object |
rightMost() |
Alignment |
subAlignment(Set<String> labels,
int min,
int max)
Retreives a subAlignment
|
Alignment |
subAlignment(Set<String> 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<SymbolList> |
symbolListIterator()
Creates an Iterator over the SymbolLists in the alignment.
|
edit, equals, hashCode, iterator, seqString, subList, subStr, toList, toString
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
locInAlignment
getLabels, symbolAt, symbolListForLabel
edit, getAlphabet, iterator, length, seqString, subList, subStr, toList
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public AbstractULAlignment()
public Symbol symbolAt(int index)
symbolAt
in interface SymbolList
index
- the offset into this SymbolListpublic List<String> labelsAt(int column)
UnequalLengthAlignment
labelsAt
in interface UnequalLengthAlignment
public List<String> labelsInRange(Location loc)
UnequalLengthAlignment
labelsInRange
in interface UnequalLengthAlignment
public Iterator<SymbolList> symbolListIterator()
Alignment
symbolListIterator
in interface Alignment
public Object leftMost()
public Alignment subAlignment(Set<String> 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 Alignment
labels
- the Set of sequences to include by labelloc
- the Location to includeIndexOutOfBoundsException
subAlignment(Set labels, int min, int max)
public Alignment subAlignment(Set<String> 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<String> orderedLables(Comparator<String> comp)
comp
- Copyright © 2014 BioJava. All rights reserved.