|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.results.ResultSet
de.jstacs.data.sequences.annotation.SequenceAnnotation
de.jstacs.data.sequences.annotation.LocatedSequenceAnnotation
de.jstacs.data.sequences.annotation.LocatedSequenceAnnotationWithLength
public class LocatedSequenceAnnotationWithLength
Class for a SequenceAnnotation that has a position on the sequence
and a length, e.g. for donor splice sites, exons, or genes.
| Field Summary |
|---|
| Fields inherited from class de.jstacs.results.ResultSet |
|---|
results |
| Constructor Summary | |
|---|---|
LocatedSequenceAnnotationWithLength(int position,
int length,
String type,
String identifier,
Collection<Result> results)
Creates a new LocatedSequenceAnnotationWithLength of type
type, with identifier identifier, and
additional annotation (that does not fit the SequenceAnnotation
definitions). |
|
LocatedSequenceAnnotationWithLength(int position,
int length,
String type,
String identifier,
Result... results)
Creates a new LocatedSequenceAnnotationWithLength of type
type, with identifier identifier, and
additional annotation (that does not fit the SequenceAnnotation
definitions) result. |
|
LocatedSequenceAnnotationWithLength(int position,
int length,
String type,
String identifier,
SequenceAnnotation[] annotations,
Result... additionalAnnotations)
Creates a new LocatedSequenceAnnotationWithLength of type
type, with identifier identifier, additional
annotation (that does not fit the SequenceAnnotation definitions)
result, and sub-annotations. |
|
LocatedSequenceAnnotationWithLength(StringBuffer representation)
Re-creates a LocatedSequenceAnnotationWithLength from its XML
representation as returned by
toXML(). |
|
LocatedSequenceAnnotationWithLength(String type,
String identifier,
LocatedSequenceAnnotation[] annotations,
Result... additionalAnnotations)
Creates a new LocatedSequenceAnnotationWithLength of type
type, with identifier identifier, additional
annotation (that does not fit the SequenceAnnotation definitions)
result, and sub-annotations. |
|
| Method Summary | |
|---|---|
protected void |
fromXML(StringBuffer representation)
Parses the contents of a ResultSet from its XML-representation as returned by ResultSet.toXML(). |
int |
getEnd()
Returns the end of this LocatedSequenceAnnotationWithLength, i.e. |
int |
getLength()
Returns the length of this LocatedSequenceAnnotationWithLength as
given in the constructor. |
String |
toString()
|
StringBuffer |
toXML()
This method returns an XML-representation of an instance of the implementing class. |
| Methods inherited from class de.jstacs.data.sequences.annotation.LocatedSequenceAnnotation |
|---|
getPosition |
| Methods inherited from class de.jstacs.data.sequences.annotation.SequenceAnnotation |
|---|
getAnnotations, getIdentifier, getSubAnnotations, getType |
| Methods inherited from class de.jstacs.results.ResultSet |
|---|
findColumn, getNumberOfResults, getResultAt, getResults |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocatedSequenceAnnotationWithLength(int position,
int length,
String type,
String identifier,
Result... results)
LocatedSequenceAnnotationWithLength of type
type, with identifier identifier, and
additional annotation (that does not fit the SequenceAnnotation
definitions) result.
position - the position of the
LocatedSequenceAnnotationWithLength on the sequencelength - the length of the LocatedSequenceAnnotationWithLengthtype - the type of the annotationidentifier - the identifier of the annotationresults - the additional annotation
public LocatedSequenceAnnotationWithLength(int position,
int length,
String type,
String identifier,
Collection<Result> results)
LocatedSequenceAnnotationWithLength of type
type, with identifier identifier, and
additional annotation (that does not fit the SequenceAnnotation
definitions). result.
position - the position of the
LocatedSequenceAnnotationWithLength on the sequencelength - the length of the LocatedSequenceAnnotationWithLengthtype - the type of the annotationidentifier - the identifier of the annotationresults - the additional annotation
public LocatedSequenceAnnotationWithLength(int position,
int length,
String type,
String identifier,
SequenceAnnotation[] annotations,
Result... additionalAnnotations)
LocatedSequenceAnnotationWithLength of type
type, with identifier identifier, additional
annotation (that does not fit the SequenceAnnotation definitions)
result, and sub-annotations.
position - the position of the
LocatedSequenceAnnotationWithLength on the sequencelength - the length of the LocatedSequenceAnnotationWithLengthtype - the type of the annotationidentifier - the identifier of the annotationannotations - the sub-annotationsadditionalAnnotations - the additional annotation
public LocatedSequenceAnnotationWithLength(String type,
String identifier,
LocatedSequenceAnnotation[] annotations,
Result... additionalAnnotations)
LocatedSequenceAnnotationWithLength of type
type, with identifier identifier, additional
annotation (that does not fit the SequenceAnnotation definitions)
result, and sub-annotations. The position of the new
LocatedSequenceAnnotationWithLength is the minimal position of
all positions of annotations and the length is determined
such that it is the maximum of these positions and (if applicable) the
corresponding values of
getEnd().
type - the type of the annotationidentifier - the identifier of the annotationannotations - the sub-annotationsadditionalAnnotations - the additional annotation
public LocatedSequenceAnnotationWithLength(StringBuffer representation)
throws NonParsableException
LocatedSequenceAnnotationWithLength from its XML
representation as returned by
toXML().
representation - the XML representation
NonParsableException - is thrown if the XML-code could not be parsed| Method Detail |
|---|
protected void fromXML(StringBuffer representation)
throws NonParsableException
ResultSetResultSet from its XML-representation as returned by ResultSet.toXML().
fromXML in class LocatedSequenceAnnotationrepresentation - the XML-representation
NonParsableException - is thrown if the XML-code could not be parsedpublic StringBuffer toXML()
Storable
toXML in interface StorabletoXML in class LocatedSequenceAnnotationpublic int getLength()
LocatedSequenceAnnotationWithLength as
given in the constructor.
public int getEnd()
LocatedSequenceAnnotationWithLength, i.e.
LocatedSequenceAnnotation.getPosition() +
getLength().
public String toString()
toString in class LocatedSequenceAnnotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||