|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SeqFeatureI
| Field Summary |
|---|
| Fields inherited from interface apollo.datamodel.RangeI |
|---|
NO_NAME, NO_TYPE |
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
A general utility method to accept Visitors. |
void |
addDbXref(DbXref xref)
|
void |
addFeature(SeqFeatureI child)
Add child feature |
void |
addFeature(SeqFeatureI feature,
boolean sort)
Add feature at sorted position |
void |
addProperty(java.lang.String name,
java.lang.String property)
|
void |
addScore(double score)
|
void |
addScore(Score s)
|
void |
addScore(java.lang.String name,
double score)
|
void |
addScore(java.lang.String name,
java.lang.String score)
|
boolean |
alignmentIsPeptide()
Sequence of the alignment of hit to query, previously stored in hit features subject_alignment property. |
void |
clearKids()
clear out allkids - if have any |
void |
clearProperties()
|
java.lang.Object |
clone()
to get a field-by-field replica of this feature |
SeqFeatureI |
cloneFeature()
clones feature |
int |
compareTo(java.lang.Object sfObj)
|
boolean |
descendsFrom(SeqFeatureI sf)
This is the opposite of isAncestor. |
void |
flipFlop()
This is used simply to move the feature directly to the opposite strand, without complementation of the Reference Sequence |
java.lang.String |
get_cDNA()
|
java.lang.String |
getAlignment()
Alignment will be padded if peptide |
SeqFeatureI |
getAnalogousOppositeStrandFeature()
Returns null if hasAnalogousOppositeStrandFeatureSet is false. |
AnnotatedFeatureI |
getAnnotatedFeature()
if hasAnnotatedFeature is true, this returns the AnnotatedFeature |
java.lang.String |
getCigar()
an explicit variable for cigar strings that are compact representations of alignments |
SeqFeatureI |
getCloneSource()
If this feature was cloned from another feature, return the original feature. |
java.lang.String |
getCodingDNA()
Returns a String of sequence from start to end of translation, in the case where a feature does not have a start and stop the cDNA is returned |
int |
getCodingProperties()
|
java.lang.String |
getDatabase()
|
DbXref |
getDbXref(int i)
|
java.util.Vector |
getDbXrefs()
|
int |
getEndPhase()
|
java.lang.String |
getExplicitAlignment()
Explicitly set alignment. |
SeqFeatureI |
getFeatureAt(int i)
returns a seqfeature at the specified position - rename getChild(i) for clarity? |
SeqFeatureI |
getFeatureContaining(int position)
Returns the FIRST child feature containing the position. |
int |
getFeatureIndex(SeqFeatureI child)
Returns index of child if feat has child. |
int |
getFeaturePosition(int genomic_pos)
|
java.util.Vector |
getFeatures()
returns a vector of all the child features belonging to this feature. |
SequenceI |
getFeatureSequence()
Retrieve the SequenceI defined by this feature itself. |
int |
getFrame()
|
java.util.HashMap |
getGenomicErrors()
|
int |
getGenomicPosForPeptidePos(int peptidePos)
For a position in peptide coordinates get the corresponding genomic position |
int |
getGenomicPosition(int feature_pos)
|
int |
getHend()
|
int |
getHhigh()
|
SeqFeatureI |
getHitFeature()
if hasHitFeature true return hit, else return itself |
SequenceI |
getHitSequence()
If feat has hit feat, or children with hit feat, then this is the seq associated with the hit or kid hits |
int |
getHlow()
|
java.lang.String |
getHname()
convenience function for getHitFeature().getName() |
int |
getHstart()
|
int |
getHstrand()
|
java.lang.String |
getId()
|
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 |
int |
getNumberOfChildren()
Returns the number of features (not all descnedants) this feature has. |
int |
getNumberOfDescendents()
The number of descendants (direct and indirect) in this FeatureSetI. |
FeatureSetI |
getParent()
Returns refFeature as FeatureSetI which I believe it is always the case that the refFeature is a FeatureSetI |
SequenceI |
getPeptideSequence()
If SeqFeatureI.hasPeptideSequence()==true returns pep seq, otherwise returns null |
int |
getPhase()
Phase is the internal offset from feature start for translation. |
java.lang.String |
getProgramName()
|
java.util.Hashtable |
getProperties()
|
java.util.Hashtable |
getPropertiesMulti()
|
java.lang.String |
getProperty(java.lang.String name)
|
java.util.Vector |
getPropertyMulti(java.lang.String name)
|
Protein |
getProteinFeat()
getProteinFeature().getReferenceSequence() should replace getPeptideSeq() |
SeqFeatureI |
getRefFeature()
Retrieve the parent SeqFeatureI for this SeqFeatureI, or null if it is a tree root. |
java.lang.String |
getRefId()
|
double |
getScore()
|
double |
getScore(java.lang.String score)
|
java.util.Hashtable |
getScores()
|
StrandedFeatureSetI |
getStrandedFeatSetAncestor()
|
java.lang.String |
getSyntenyLinkInfo()
|
java.lang.String |
getTopLevelType()
|
TranslationI |
getTranslation()
|
java.lang.String |
getUnpaddedAlignment()
Alignment without padding. |
java.lang.Object |
getUserObject()
ADDED BY TAIR Return the user object or null if none exists |
boolean |
hasAlignable()
Returns true if feat has an alignable (may be an ISA but thats inconsequetial here) |
boolean |
hasAnalogousOppositeStrandFeature()
Returns false if analog opp strand fs not set |
boolean |
hasAnnotatedFeature()
Whether the SeqFeature is an annotation - annotation here meaning gene, transcript or exon - not just top level annot - i fear the term "annotation" has 2 meanings - strictly the top level annotation, and loosely any level of the annotation. |
boolean |
hasHitFeature()
Whether SeqFeatureI has a hit feature. |
boolean |
hasId()
returns false if getId() == null |
boolean |
hasKids()
Returns false if getFeatures().size() == 0 |
boolean |
hasPeptideSequence()
Whether feature has a peptide sequence |
boolean |
hasSyntenyLinkInfo()
|
boolean |
hasTranslation()
im thinking maybe there should be a separate interface for translation methods (yes i know there is - its called a feature set) and seqfeatureI would have this - not be implemented in a subclass (or if it is not have that be noticaeable at the api/interface level) in other words a HASA not a ISA! i think that would be cleaner |
boolean |
haveExplicitAlignment()
|
boolean |
haveRealAlignment()
|
boolean |
isAncestorOf(SeqFeatureI sf)
Whether this is the ancestor of sf. |
boolean |
isAnnot()
|
boolean |
isAnnotTop()
true for top level annots (e.g. |
boolean |
isClone()
Check to see if this feature is a cloned feature |
boolean |
isCodon()
Returns true if feature is start or stop codon |
boolean |
isExon()
|
boolean |
isProtein()
|
boolean |
isProteinCodingGene()
|
boolean |
isSameFeat(SeqFeatureI seqFeat)
Helper method designed to compare two feats which has just been initialized. |
boolean |
isSequencingError()
|
boolean |
isTranscript()
Return true is feature has translation start and stop. |
SeqFeatureI |
merge(SeqFeatureI sf)
|
int |
numberOfGenerations()
Returns the number of generations (including itself) that are at and below this feature. |
void |
parseCigar()
|
void |
removeProperty(java.lang.String name)
|
void |
replaceProperty(java.lang.String key,
java.lang.String value)
|
void |
setAlignment(java.lang.String alignment)
|
void |
setAnalogousOppositeStrandFeature(SeqFeatureI oppositeFeature)
As a convenience one can record what the analogous feature is on the opposite strand. |
void |
setCigar(java.lang.String cigar)
|
void |
setDatabase(java.lang.String db)
|
void |
setExplicitAlignment(java.lang.String explicitAlignment)
|
void |
setId(java.lang.String id)
|
void |
setPhase(int phase)
|
void |
setProgramName(java.lang.String type)
|
void |
setQueryFeature(SeqFeatureI queryFeat)
|
void |
setRefFeature(SeqFeatureI refFeature)
Set the parent SeqFeatureI. |
void |
setScore(double score)
|
void |
setSyntenyLinkInfo(java.lang.String linkInfo)
Trying this out?? can set information needed to make synteny links between features for the synteny viewer. |
void |
setTopLevelType(java.lang.String type)
|
void |
setUserObject(java.lang.Object userObject)
ADDED by TAIR Set the user object |
int |
size()
merge this with getNumberOfChildren |
java.lang.String |
translate()
|
| Methods inherited from interface apollo.datamodel.RangeI |
|---|
canHaveChildren, contains, contains, convertFromBaseOrientedToInterbase, convertFromInterbaseToBaseOriented, getEnd, getFeatureType, getHigh, getLeftOverlap, getLow, getName, getRangeClone, getRefSequence, getResidues, getRightOverlap, getStart, getStrand, hasFeatureType, hasName, hasRefSequence, isContainedByRefSeq, isExactOverlap, isForwardStrand, isIdentical, isSequenceAvailable, length, overlaps, rangeIsUnassigned, sameRange, setEnd, setFeatureType, setHigh, setLow, setName, setRefSequence, setStart, setStrand |
| Method Detail |
|---|
java.lang.String getId()
void setId(java.lang.String id)
boolean hasId()
void flipFlop()
SequenceI getFeatureSequence()
java.lang.String getRefId()
SeqFeatureI getRefFeature()
FeatureSetI getParent()
void setRefFeature(SeqFeatureI refFeature)
When building a part-whole hieracy of features, you must both add a feature to its parent, and then call child.setRefFeature(parent). It is possible for a feature to be added to multiple feature sets, but there is only one legitimate parent.
refFeature - the new parent SeqFeatureIjava.lang.String getTopLevelType()
void setTopLevelType(java.lang.String type)
java.lang.String getProgramName()
void setProgramName(java.lang.String type)
java.lang.String getDatabase()
void setDatabase(java.lang.String db)
double getScore()
double getScore(java.lang.String score)
java.util.Hashtable getScores()
void setScore(double score)
void addScore(Score s)
void addScore(double score)
void addScore(java.lang.String name,
double score)
void addScore(java.lang.String name,
java.lang.String score)
void addProperty(java.lang.String name,
java.lang.String property)
void removeProperty(java.lang.String name)
java.lang.String getProperty(java.lang.String name)
java.util.Hashtable getProperties()
void replaceProperty(java.lang.String key,
java.lang.String value)
void clearProperties()
java.util.Hashtable getPropertiesMulti()
java.util.Vector getPropertyMulti(java.lang.String name)
int getFrame()
void setPhase(int phase)
int getPhase()
int getEndPhase()
int compareTo(java.lang.Object sfObj)
SeqFeatureI merge(SeqFeatureI sf)
java.lang.String translate()
java.lang.String get_cDNA()
java.lang.String getCodingDNA()
int getGenomicPosition(int feature_pos)
int getGenomicPosForPeptidePos(int peptidePos)
int getFeaturePosition(int genomic_pos)
int getNumberOfChildren()
int size()
void clearKids()
java.util.Vector getFeatures()
boolean hasKids()
SeqFeatureI getFeatureAt(int i)
int getFeatureIndex(SeqFeatureI child)
void addFeature(SeqFeatureI child)
void addFeature(SeqFeatureI feature,
boolean sort)
int getNumberOfDescendents()
int numberOfGenerations()
void accept(Visitor visitor)
boolean isSameFeat(SeqFeatureI seqFeat)
seqFeat -
RangeI.isIdentical(RangeI range)boolean isAncestorOf(SeqFeatureI sf)
boolean descendsFrom(SeqFeatureI sf)
FeatureList getLeafFeatsOver(int pos)
boolean hasAnnotatedFeature()
boolean isAnnot()
AnnotatedFeatureI getAnnotatedFeature()
boolean hasAlignable()
boolean hasHitFeature()
SeqFeatureI getHitFeature()
SequenceI getHitSequence()
void setQueryFeature(SeqFeatureI queryFeat)
java.lang.String getAlignment()
void setAlignment(java.lang.String alignment)
java.lang.String getUnpaddedAlignment()
java.lang.String getExplicitAlignment()
void setExplicitAlignment(java.lang.String explicitAlignment)
boolean haveExplicitAlignment()
boolean haveRealAlignment()
java.lang.String getCigar()
void setCigar(java.lang.String cigar)
void parseCigar()
java.lang.String getHname()
int getHstart()
int getHend()
int getHlow()
int getHhigh()
int getHstrand()
boolean alignmentIsPeptide()
boolean hasPeptideSequence()
SequenceI getPeptideSequence()
Protein getProteinFeat()
SeqFeatureI getFeatureContaining(int position)
java.lang.Object clone()
SeqFeatureI cloneFeature()
boolean isClone()
SeqFeatureI getCloneSource()
void setAnalogousOppositeStrandFeature(SeqFeatureI oppositeFeature)
boolean hasAnalogousOppositeStrandFeature()
SeqFeatureI getAnalogousOppositeStrandFeature()
boolean isTranscript()
boolean isExon()
boolean isProtein()
boolean isSequencingError()
boolean isAnnotTop()
boolean hasTranslation()
boolean isProteinCodingGene()
TranslationI getTranslation()
void addDbXref(DbXref xref)
java.util.Vector getDbXrefs()
DbXref getDbXref(int i)
java.util.HashMap getGenomicErrors()
void setUserObject(java.lang.Object userObject)
java.lang.Object getUserObject()
int getCodingProperties()
StrandedFeatureSetI getStrandedFeatSetAncestor()
boolean isCodon()
void setSyntenyLinkInfo(java.lang.String linkInfo)
java.lang.String getSyntenyLinkInfo()
boolean hasSyntenyLinkInfo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||