|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.datamodel.Range
apollo.datamodel.SeqFeature
apollo.datamodel.FeatureSet
apollo.datamodel.StrandedFeatureSet
public class StrandedFeatureSet
It may well be that any FeatureSet for which the strand is not explicitly set to either 1 or -1 (in other words the strand is 0) should be treated as a mixed set of features that may be on either strand
| Field Summary | |
|---|---|
protected FeatureSetI |
forward
|
protected static org.apache.log4j.Logger |
logger
|
protected FeatureSetI |
reverse
|
| Fields inherited from class apollo.datamodel.FeatureSet |
|---|
features, flags, genericReadThroughStopResidue, hitSequence, minus1_frameshift, missing_3prime, missing_5prime, plus1_frameshift, POLYA_REMOVED, readthrough_stop, standard_start_codon, start_codon, trans_spliced |
| Fields inherited from class apollo.datamodel.SeqFeature |
|---|
biotype, edit_offset_adjust, id, phase, properties, ref_features, refFeature, refId, score, scores |
| Fields inherited from class apollo.datamodel.Range |
|---|
high, low, name, refSeq, strand, type |
| Fields inherited from interface apollo.datamodel.RangeI |
|---|
NO_NAME, NO_TYPE |
| Constructor Summary | |
|---|---|
StrandedFeatureSet()
|
|
StrandedFeatureSet(FeatureSetI forward_set,
FeatureSetI reverse_set)
|
|
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
General implementation of Visitor pattern. |
void |
addFeature(SeqFeatureI feature)
Features must be added in sort order, if this turns out to be too slow, then we will need to figure out another way to keep them all sorted (5prime to 3prime that is) |
void |
addFeature(SeqFeatureI feature,
boolean sortFlag)
no-op - overridden by FeatureSet |
void |
deleteFeature(SeqFeatureI feature)
The number of directly containd features. |
SeqFeatureI |
deleteFeatureAt(int i)
|
int |
getEnd()
|
FeatureSetI |
getFeatSetForStrand(int strand)
|
SeqFeatureI |
getFeatureAt(int i)
This actually returns not forward feature set and reverse feature set, but the children of forward and reverse. |
java.util.Vector |
getFeatures()
This actually returns not forward feature set and reverse feature set, but the children of forward and reverse. |
FeatureSetI |
getForwardSet()
|
FeatureList |
getLeafFeatsOver(int pos)
This is used in the base editor to find the sub features that overlap a base with a sequence edit on it |
FeatureSetI |
getReverseSet()
|
SeqFeatureI |
getSeqFeat(int strand,
java.lang.String type)
Returns seq feat grandchildren (tier level) of type & strand. |
int |
getStart()
|
StrandedFeatureSetI |
getStrandedFeatSetAncestor()
|
void |
setRefSequence(SequenceI seq)
This is presently used to locate features that have a drawable. |
int |
size()
FeatureSet overrides - merge with getNumberOfChildren |
| Methods inherited from class apollo.datamodel.Range |
|---|
contains, contains, convertFromBaseOrientedToInterbase, convertFromInterbaseToBaseOriented, getEndAsString, getFeatureType, getHigh, getLeftOverlap, getLow, getRangeClone, getRefSequence, getResidues, getRightOverlap, getStartAsString, getStrand, hasFeatureType, hasName, hasRefSequence, isContainedByRefSeq, isExactOverlap, isForwardStrand, isIdentical, isSequenceAvailable, length, overlaps, sameRange, setEnd, setFeatureType, setHigh, setLow, setName, setStart, setStrand |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface apollo.datamodel.RangeI |
|---|
canHaveChildren, contains, contains, convertFromBaseOrientedToInterbase, convertFromInterbaseToBaseOriented, getFeatureType, getHigh, getLeftOverlap, getLow, getName, getRangeClone, getRefSequence, getResidues, getRightOverlap, getStrand, hasFeatureType, hasName, hasRefSequence, isContainedByRefSeq, isExactOverlap, isForwardStrand, isIdentical, isSequenceAvailable, length, overlaps, rangeIsUnassigned, sameRange, setEnd, setFeatureType, setHigh, setLow, setName, setStart, setStrand |
| Methods inherited from interface apollo.datamodel.TranslationI |
|---|
calcTranslationStartForLongestPeptide, getLastBaseOfStopCodon, getTranslationEnd, getTranslationRange, getTranslationStart, hasTranslationEnd, hasTranslationStart, isMissing3prime, isMissing5prime, setMissing3prime, setMissing5prime, setPeptideValidity, setTranslationEnd, setTranslationEndFromStart, setTranslationStart, setTranslationStart |
| Field Detail |
|---|
protected FeatureSetI forward
protected FeatureSetI reverse
protected static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public StrandedFeatureSet(FeatureSetI forward_set,
FeatureSetI reverse_set)
public StrandedFeatureSet()
| Method Detail |
|---|
public FeatureSetI getForwardSet()
getForwardSet in interface StrandedFeatureSetIpublic FeatureSetI getReverseSet()
getReverseSet in interface StrandedFeatureSetIpublic int size()
SeqFeature
size in interface SeqFeatureIsize in class FeatureSetpublic void addFeature(SeqFeatureI feature)
addFeature in interface SeqFeatureIaddFeature in class FeatureSet
public void addFeature(SeqFeatureI feature,
boolean sortFlag)
SeqFeature
addFeature in interface SeqFeatureIaddFeature in class FeatureSetpublic void deleteFeature(SeqFeatureI feature)
FeatureSetI
deleteFeature in interface FeatureSetIdeleteFeature in class FeatureSetpublic SeqFeatureI deleteFeatureAt(int i)
deleteFeatureAt in interface FeatureSetIdeleteFeatureAt in class FeatureSetpublic SeqFeatureI getFeatureAt(int i)
getFeatureAt in interface SeqFeatureIgetFeatureAt in class FeatureSetpublic java.util.Vector getFeatures()
getFeatures in interface SeqFeatureIgetFeatures in class FeatureSetpublic FeatureList getLeafFeatsOver(int pos)
SeqFeatureI
getLeafFeatsOver in interface SeqFeatureIgetLeafFeatsOver in class FeatureSetpublic int getStart()
getStart in interface RangeIgetStart in class Rangepublic int getEnd()
getEnd in interface RangeIgetEnd in class Rangepublic void setRefSequence(SequenceI seq)
FeatureSet
setRefSequence in interface RangeIsetRefSequence in class FeatureSetseq - the new parent SequenceI
public SeqFeatureI getSeqFeat(int strand,
java.lang.String type)
public FeatureSetI getFeatSetForStrand(int strand)
getFeatSetForStrand in interface StrandedFeatureSetIpublic StrandedFeatureSetI getStrandedFeatSetAncestor()
getStrandedFeatSetAncestor in interface SeqFeatureIgetStrandedFeatSetAncestor in class SeqFeaturepublic void accept(Visitor visitor)
accept in interface SeqFeatureIaccept in class FeatureSet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||