|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
apollo.util.FeatureList
public class FeatureList
Just a little helper class. Holds an array list of SeqFeatureIs, add more list methods as needed. This should be replaced by FeatureSet once FeatureSet is refactored, right now FeatureSet is just too heavyweight for such a lightweight activity. Once FS is refactored this should be deleted/incorporated.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
FeatureList()
|
|
FeatureList(boolean doUniqueCheck)
if unique check is true, check that feat doesnt already exist on adding |
|
FeatureList(int size)
|
|
FeatureList(SeqFeatureI seqFeat,
boolean addLeaves)
Create FeatureList from seqFeat. |
|
FeatureList(java.util.Vector features)
|
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
addFeature should be used in lieu of add. |
void |
addAlignable(SeqFeatureI alignable)
|
void |
addAll(FeatureList feats)
Adds all feats that are new, that it doesnt already have. |
void |
addAllFeatures(FeatureList feats)
|
void |
addFeature(SeqFeatureI feat)
Adds SeqFeatureI if not already in list |
void |
addFeaturePair(FeaturePairI featPair)
|
void |
addVector(java.util.Vector v)
|
FeatureList |
cloneList()
Returns a FeatureList that contains seq feature clones of all features in current list. |
FeatureIterator |
featureIterator()
|
FeatureList |
filterForFeaturePairs()
|
SeqFeatureI |
first()
|
SeqFeatureI |
getAlignable(int index)
|
FeatureList |
getAllFeaturePairLeaves()
|
FeatureList |
getAllLeaves()
Returns a list of all the descendants of the current list that are leaves. |
FeatureList |
getConsolidatedFeatures()
Consolidates features. |
FeatureList |
getFeatsWithAlignments()
Filters FeatureList for features with hasAlignable==true and the Alignable hasAlignmentSequence |
FeatureList |
getFeatsWithinRefSeqRegion()
|
SeqFeatureI |
getFeature(int index)
|
FeaturePairI |
getFeaturePair(int i)
|
SeqFeatureI |
getFeatWithName(java.lang.String name)
not recursive - just gets first feature with name - null if none |
FeatureList |
getParents()
Returns unique list of parents |
RangeI |
getRangeOfWholeList()
Assumes feats on same strand |
java.lang.String[] |
getUniqueHitNames()
|
SeqFeatureI |
last()
|
void |
removeFeature(SeqFeatureI feat)
|
void |
setAlignablesOnly(boolean alignablesOnly)
|
void |
setDoUniqueCheck(boolean doUniqueCheck)
|
void |
setFeaturePairsOnly(boolean featPairOnly)
We could just have a FeaturePairList? |
void |
sortByStart()
this is misnamed. |
java.util.Vector |
toVector()
|
| Methods inherited from class java.util.ArrayList |
|---|
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public FeatureList()
public FeatureList(int size)
public FeatureList(java.util.Vector features)
public FeatureList(boolean doUniqueCheck)
public FeatureList(SeqFeatureI seqFeat,
boolean addLeaves)
| Method Detail |
|---|
public void addFeature(SeqFeatureI feat)
public void setDoUniqueCheck(boolean doUniqueCheck)
public void addAll(FeatureList feats)
public void removeFeature(SeqFeatureI feat)
public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.ArrayListpublic FeatureIterator featureIterator()
public SeqFeatureI getFeature(int index)
public SeqFeatureI last()
public SeqFeatureI first()
public void addAllFeatures(FeatureList feats)
public FeatureList getParents()
public FeatureList cloneList()
public java.util.Vector toVector()
public void addVector(java.util.Vector v)
public RangeI getRangeOfWholeList()
public FeatureList getAllLeaves()
public FeatureList getAllFeaturePairLeaves()
public FeatureList getFeatsWithAlignments()
public FeatureList getFeatsWithinRefSeqRegion()
public FeatureList getConsolidatedFeatures()
#FeatureSetI.isHolderpublic void sortByStart()
public void setFeaturePairsOnly(boolean featPairOnly)
public void addFeaturePair(FeaturePairI featPair)
public FeatureList filterForFeaturePairs()
public FeaturePairI getFeaturePair(int i)
public java.lang.String[] getUniqueHitNames()
public void setAlignablesOnly(boolean alignablesOnly)
public void addAlignable(SeqFeatureI alignable)
public SeqFeatureI getAlignable(int index)
public SeqFeatureI getFeatWithName(java.lang.String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||