|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojava.bio.symbol.AbstractSymbolList
org.biojava.bio.alignment.AbstractULAlignment.SubULAlignment
public class AbstractULAlignment.SubULAlignment
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.biojava.bio.symbol.AbstractSymbolList |
|---|
AbstractSymbolList.EditScreener, AbstractSymbolList.EditTranslater |
| Nested classes/interfaces inherited from interface org.biojava.bio.symbol.Alignment |
|---|
Alignment.SymbolListIterator |
| Field Summary |
|---|
| Fields inherited from interface org.biojava.bio.symbol.Alignment |
|---|
CONTENT |
| Fields inherited from interface org.biojava.bio.symbol.SymbolList |
|---|
EDIT, EMPTY_LIST |
| Constructor Summary | |
|---|---|
protected |
AbstractULAlignment.SubULAlignment(Set labels,
Location loc)
|
| Method Summary | |
|---|---|
Alphabet |
getAlphabet()
The alphabet that this SymbolList is over. |
List |
getLabels()
The list of SymbolLists in the alignment. |
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 |
int |
length()
The number of symbols in this SymbolList. |
protected List |
listIntersection(List s1,
List s2)
|
Location |
locInAlignment(Object label)
The location of an individual SymbolList relative to overall Alignment |
Alignment |
subAlignment(Set labels,
Location loc)
Make a view onto this alignment. |
Symbol |
symbolAt(int column)
Return the symbol at index, counting from 1. |
Symbol |
symbolAt(Object label,
int column)
Retrieve a symbol by label and column. |
SymbolList |
symbolListForLabel(Object label)
Retrieve a single row of the alignment by label. |
Iterator |
symbolListIterator()
Creates an Iterator over the SymbolLists in the alignment. |
| Methods inherited from class org.biojava.bio.symbol.AbstractSymbolList |
|---|
edit, equals, hashCode, iterator, seqString, subList, subStr, toList, toString |
| Methods inherited from class org.biojava.utils.AbstractChangeable |
|---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biojava.bio.symbol.SymbolList |
|---|
edit, iterator, seqString, subList, subStr, toList |
| Methods inherited from interface org.biojava.utils.Changeable |
|---|
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener |
| Constructor Detail |
|---|
protected AbstractULAlignment.SubULAlignment(Set labels,
Location loc)
throws IndexOutOfBoundsException
IndexOutOfBoundsException| Method Detail |
|---|
public int length()
SymbolList
length in interface SymbolListpublic Location locInAlignment(Object label)
locInAlignment in interface UnequalLengthAlignment
public Alignment subAlignment(Set labels,
Location loc)
throws 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 include
NoSuchElementException - if labels contains any item that is not a label
protected List listIntersection(List s1,
List s2)
public List labelsAt(int column)
throws IndexOutOfBoundsException
UnequalLengthAlignment
labelsAt in interface UnequalLengthAlignmentIndexOutOfBoundsException
public List labelsInRange(Location loc)
throws IndexOutOfBoundsException
UnequalLengthAlignment
labelsInRange in interface UnequalLengthAlignmentIndexOutOfBoundsExceptionpublic 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.
getLabels in interface Alignment
public Symbol symbolAt(Object label,
int column)
throws NoSuchElementException
Alignment
symbolAt in interface Alignmentlabel - the SymbolList to retrieve fromcolumn - the index of the column to retrieve
NoSuchElementException - if there is no row for 'label'
public Symbol symbolAt(int column)
throws NoSuchElementException
SymbolList
symbolAt in interface SymbolListcolumn - the offset into this SymbolList
NoSuchElementException
public SymbolList symbolListForLabel(Object label)
throws NoSuchElementException
Alignment
symbolListForLabel in interface Alignmentlabel - the object from which to retrieve the symbol list
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 Iterator symbolListIterator()
Alignment
symbolListIterator in interface Alignment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||