Package org.biojava.bio.alignment
Class AbstractULAlignment
java.lang.Object
org.biojava.utils.AbstractChangeable
org.biojava.bio.symbol.AbstractSymbolList
org.biojava.bio.alignment.AbstractULAlignment
- All Implemented Interfaces:
Alignment,UnequalLengthAlignment,SymbolList,Changeable
- Direct Known Subclasses:
FlexibleAlignment
public abstract class AbstractULAlignment
extends AbstractSymbolList
implements UnequalLengthAlignment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassOrders by location left to right.classNested classes/interfaces inherited from class org.biojava.bio.symbol.AbstractSymbolList
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslaterNested classes/interfaces inherited from interface org.biojava.bio.alignment.Alignment
Alignment.SymbolListIterator -
Field Summary
FieldsFields inherited from interface org.biojava.bio.symbol.SymbolList
EDIT, EMPTY_LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidlabelsAt(int column) Returns a list labels, of all seqs that cover that columnlabelsInRange(Location loc) Returns list of all the labels that intersect that rangeleftMost()leftMost and rightMost return labels.orderedLables(Comparator<String> comp) subAlignment(Set<String> labels, int min, int max) Retreives a subAlignmentsubAlignment(Set<String> labels, Location loc) Retrieves a subalignment specified by the location.symbolAt(int index) this will return the ambiguity symbol associated with all symbols in that columnMethods inherited from class org.biojava.bio.symbol.AbstractSymbolList
edit, equals, hashCode, iterator, seqString, subList, subStr, toList, toStringMethods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.biojava.bio.alignment.Alignment
getLabels, symbolAt, symbolListForLabelMethods inherited from interface org.biojava.utils.Changeable
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListenerMethods inherited from interface org.biojava.bio.symbol.SymbolList
edit, getAlphabet, iterator, length, seqString, subList, subStr, toListMethods inherited from interface org.biojava.bio.alignment.UnequalLengthAlignment
locInAlignment
-
Field Details
-
alphabet
-
-
Constructor Details
-
AbstractULAlignment
public AbstractULAlignment()
-
-
Method Details
-
symbolAt
this will return the ambiguity symbol associated with all symbols in that column- Specified by:
symbolAtin interfaceSymbolList
-
labelsAt
Description copied from interface:UnequalLengthAlignmentReturns a list labels, of all seqs that cover that column- Specified by:
labelsAtin interfaceUnequalLengthAlignment
-
labelsInRange
Description copied from interface:UnequalLengthAlignmentReturns list of all the labels that intersect that range- Specified by:
labelsInRangein interfaceUnequalLengthAlignment
-
symbolListIterator
- Specified by:
symbolListIteratorin interfaceAlignment
-
debug
-
leftMost
leftMost and rightMost return labels. If there are more than one that start at the same location it returns the longest, if they are the same length it returns the first one it found; -
rightMost
-
subAlignment
Retrieves a subalignment specified by the location.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.
- Specified by:
subAlignmentin interfaceAlignment- Throws:
IndexOutOfBoundsException- See Also:
-
subAlignment
Retreives a subAlignment- Parameters:
labels- the labels of theSymbolListsto be in the Alignmentmin- the left most coordinatemax- the right most coordinate- Returns:
- an Alignment
- Throws:
NoSuchElementException- if one of the values inlabelsis not in the parent alignment
-
orderedLables
- Parameters:
comp-- Returns:
-