Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jalview.annotation
Class SeqFeature  view SeqFeature download SeqFeature.java

java.lang.Object
  extended byjalview.annotation.SeqFeature
All Implemented Interfaces:
SeqFeatureI
Direct Known Subclasses:
FeatureSet, SupportedSeqFeature

public class SeqFeature
extends java.lang.Object
implements SeqFeatureI


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:
setStart in interface SeqFeatureI

getStart

public long getStart()
Description copied from interface: SeqFeatureI
Returns the start coordinate of the feature

Specified by:
getStart in interface SeqFeatureI

setEnd

public void setEnd(long end)
Description copied from interface: SeqFeatureI
Sets the end coordinate of the feature

Specified by:
setEnd in interface SeqFeatureI

getEnd

public long getEnd()
Description copied from interface: SeqFeatureI
Returns the end coordinate of the feature

Specified by:
getEnd in interface SeqFeatureI

getSequenceI

public SequenceI getSequenceI()
Description copied from interface: SeqFeatureI
Returns the underlying sequence that the feature refers to

Specified by:
getSequenceI in interface SeqFeatureI

setSequenceI

public void setSequenceI(SequenceI sequence)
Description copied from interface: SeqFeatureI
Sets the underlying sequence that the feature refers to

Specified by:
setSequenceI in interface SeqFeatureI

getRefFeature

public SeqFeatureI getRefFeature()
Description copied from interface: SeqFeatureI
Returns the parent reference feature (for nested features)

Specified by:
getRefFeature in interface SeqFeatureI

setRefFeature

public void setRefFeature(SeqFeatureI refFeature)
Description copied from interface: SeqFeatureI
Sets the reference parent feature

Specified by:
setRefFeature in interface SeqFeatureI

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:
getProducedFeatures in interface SeqFeatureI

setProducedFeatures

public void setProducedFeatures(FeatureSetI producedFeatures)
Description copied from interface: SeqFeatureI
Sets the features that are produced by this feature

Specified by:
setProducedFeatures in interface SeqFeatureI

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:
getType in interface SeqFeatureI

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:
setType in interface SeqFeatureI

setStrand

public void setStrand(int strand)
Description copied from interface: SeqFeatureI
Sets the strand of the feature

Specified by:
setStrand in interface SeqFeatureI

getStrand

public int getStrand()
Description copied from interface: SeqFeatureI
Returns the strand of the feature

Specified by:
getStrand in interface SeqFeatureI

setName

public void setName(java.lang.String name)
Description copied from interface: SeqFeatureI
Sets the name of the feature

Specified by:
setName in interface SeqFeatureI

getName

public java.lang.String getName()
Description copied from interface: SeqFeatureI
Returns the name of the feature

Specified by:
getName in interface SeqFeatureI

getScore

public double getScore()
Description copied from interface: SeqFeatureI
Returns the score of the feature

Specified by:
getScore in interface SeqFeatureI

setScore

public void setScore(double score)
Description copied from interface: SeqFeatureI
Sets the score of the feature.

Specified by:
setScore in interface SeqFeatureI

overlaps

public boolean overlaps(SeqFeatureI se)
Description copied from interface: SeqFeatureI
Returns whether a supplied feature overlaps with the current feature

Specified by:
overlaps in interface SeqFeatureI

findOverlap

public OverlapI findOverlap(SeqFeatureI feature)
Description copied from interface: SeqFeatureI
Returns detailed information if the supplied feature overlaps with this feature.

Specified by:
findOverlap in interface SeqFeatureI

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()).