|
|||||||||
| Home >> All >> jalview >> [ annotation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jalview.annotation
Class SeqFeature

java.lang.Objectjalview.annotation.SeqFeature
- All Implemented Interfaces:
- SeqFeatureI
- Direct Known Subclasses:
- FeatureSet, SupportedSeqFeature
- public class SeqFeature
- extends java.lang.Object
- implements SeqFeatureI
- extends java.lang.Object
| Field Summary | |
protected long |
end
|
protected java.lang.String |
name
|
protected java.lang.String |
primary_tag
|
protected SeqFeatureI |
refFeature
|
protected double |
score
|
protected SequenceI |
seq
|
protected java.lang.String |
source_tag
|
protected long |
start
|
protected int |
strand
|
protected java.lang.String |
type
|
| Constructor Summary | |
SeqFeature()
|
|
SeqFeature(long start,
long end,
java.lang.String name)
|
|
| Method Summary | |
OverlapI |
findOverlap(SeqFeatureI feature)
Returns detailed information if the supplied feature overlaps with this feature. |
long |
getEnd()
Returns the end coordinate of the feature |
java.lang.String |
getName()
Returns the name of the feature |
FeatureSetI |
getProducedFeatures()
Returns a set of features that this feature produces from its sub features. |
SeqFeatureI |
getRefFeature()
Returns the parent reference feature (for nested features) |
double |
getScore()
Returns the score of the feature |
SequenceI |
getSequenceI()
Returns the underlying sequence that the feature refers to |
long |
getStart()
Returns the start coordinate of the feature |
int |
getStrand()
Returns the strand of the feature |
java.lang.String |
getType()
Returns the type string of the feature. |
boolean |
overlaps(SeqFeatureI se)
Returns whether a supplied feature overlaps with the current feature |
void |
setEnd(long end)
Sets the end coordinate of the feature |
void |
setName(java.lang.String name)
Sets the name of the feature |
void |
setProducedFeatures(FeatureSetI producedFeatures)
Sets the features that are produced by this feature |
void |
setRefFeature(SeqFeatureI refFeature)
Sets the reference parent feature |
void |
setScore(double score)
Sets the score of the feature. |
void |
setSequenceI(SequenceI sequence)
Sets the underlying sequence that the feature refers to |
void |
setStart(long start)
Sets the start coordinate of the feature |
void |
setStrand(int strand)
Sets the strand of the feature |
void |
setType(java.lang.String type)
Sets the type string of the feature. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
start
protected long start
end
protected long end
name
protected java.lang.String name
source_tag
protected java.lang.String source_tag
primary_tag
protected java.lang.String primary_tag
strand
protected int strand
score
protected double score
refFeature
protected SeqFeatureI refFeature
seq
protected SequenceI seq
type
protected java.lang.String type
| Constructor Detail |
SeqFeature
public SeqFeature()
SeqFeature
public SeqFeature(long start,
long end,
java.lang.String name)
| Method Detail |
setStart
public void setStart(long start)
- Description copied from interface:
SeqFeatureI - Sets the start coordinate of the feature
- Specified by:
setStartin interfaceSeqFeatureI
getStart
public long getStart()
- Description copied from interface:
SeqFeatureI - Returns the start coordinate of the feature
- Specified by:
getStartin interfaceSeqFeatureI
setEnd
public void setEnd(long end)
- Description copied from interface:
SeqFeatureI - Sets the end coordinate of the feature
- Specified by:
setEndin interfaceSeqFeatureI
getEnd
public long getEnd()
- Description copied from interface:
SeqFeatureI - Returns the end coordinate of the feature
- Specified by:
getEndin interfaceSeqFeatureI
getSequenceI
public SequenceI getSequenceI()
- Description copied from interface:
SeqFeatureI - Returns the underlying sequence that the feature refers to
- Specified by:
getSequenceIin interfaceSeqFeatureI
setSequenceI
public void setSequenceI(SequenceI sequence)
- Description copied from interface:
SeqFeatureI - Sets the underlying sequence that the feature refers to
- Specified by:
setSequenceIin interfaceSeqFeatureI
getRefFeature
public SeqFeatureI getRefFeature()
- Description copied from interface:
SeqFeatureI - Returns the parent reference feature (for nested features)
- Specified by:
getRefFeaturein interfaceSeqFeatureI
setRefFeature
public void setRefFeature(SeqFeatureI refFeature)
- Description copied from interface:
SeqFeatureI - Sets the reference parent feature
- Specified by:
setRefFeaturein interfaceSeqFeatureI
getProducedFeatures
public FeatureSetI getProducedFeatures()
- Description copied from interface:
SeqFeatureI - Returns a set of features that this feature produces
from its sub features. For instances this could be
a set of coding exons from an mRNA
- Specified by:
getProducedFeaturesin interfaceSeqFeatureI
setProducedFeatures
public void setProducedFeatures(FeatureSetI producedFeatures)
- Description copied from interface:
SeqFeatureI - Sets the features that are produced by this feature
- Specified by:
setProducedFeaturesin interfaceSeqFeatureI
getType
public java.lang.String getType()
- Description copied from interface:
SeqFeatureI - Returns the type string of the feature.
This is used as a more understandable replacement
for the gff column source_tag
- Specified by:
getTypein interfaceSeqFeatureI
setType
public void setType(java.lang.String type)
- Description copied from interface:
SeqFeatureI - Sets the type string of the feature.
This is where the gff source_tag value should go.
- Specified by:
setTypein interfaceSeqFeatureI
setStrand
public void setStrand(int strand)
- Description copied from interface:
SeqFeatureI - Sets the strand of the feature
- Specified by:
setStrandin interfaceSeqFeatureI
getStrand
public int getStrand()
- Description copied from interface:
SeqFeatureI - Returns the strand of the feature
- Specified by:
getStrandin interfaceSeqFeatureI
setName
public void setName(java.lang.String name)
- Description copied from interface:
SeqFeatureI - Sets the name of the feature
- Specified by:
setNamein interfaceSeqFeatureI
getName
public java.lang.String getName()
- Description copied from interface:
SeqFeatureI - Returns the name of the feature
- Specified by:
getNamein interfaceSeqFeatureI
getScore
public double getScore()
- Description copied from interface:
SeqFeatureI - Returns the score of the feature
- Specified by:
getScorein interfaceSeqFeatureI
setScore
public void setScore(double score)
- Description copied from interface:
SeqFeatureI - Sets the score of the feature.
- Specified by:
setScorein interfaceSeqFeatureI
overlaps
public boolean overlaps(SeqFeatureI se)
- Description copied from interface:
SeqFeatureI - Returns whether a supplied feature overlaps
with the current feature
- Specified by:
overlapsin interfaceSeqFeatureI
findOverlap
public OverlapI findOverlap(SeqFeatureI feature)
- Description copied from interface:
SeqFeatureI - Returns detailed information if the supplied
feature overlaps with this feature.
- Specified by:
findOverlapin interfaceSeqFeatureI
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> jalview >> [ annotation overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
jalview.annotation.SeqFeature