de.jstacs.data.sequences.annotation
Class MotifAnnotation
java.lang.Object
de.jstacs.results.ResultSet
de.jstacs.data.sequences.annotation.SequenceAnnotation
de.jstacs.data.sequences.annotation.LocatedSequenceAnnotation
de.jstacs.data.sequences.annotation.LocatedSequenceAnnotationWithLength
de.jstacs.data.sequences.annotation.StrandedLocatedSequenceAnnotationWithLength
de.jstacs.data.sequences.annotation.MotifAnnotation
- All Implemented Interfaces:
- Storable
public class MotifAnnotation
- extends StrandedLocatedSequenceAnnotationWithLength
Class for a StrandedLocatedSequenceAnnotationWithLength
that is a
motif. The usefulness of this class amounts to having a defined type for all
motifs.
- Author:
- Jan Grau
MotifAnnotation
public MotifAnnotation(String identifier,
int position,
int length,
StrandedLocatedSequenceAnnotationWithLength.Strand strandedness,
Result... additionalAnnotation)
- Creates a new
MotifAnnotation
of type type
with
identifier identifier
and additional annotation (that does
not fit the SequenceAnnotation
definitions) given as an array of
Result
s additionalAnnotation
. The orientation of the
motif on the strand is also considered by the value
strandedness
of the enum
StrandedLocatedSequenceAnnotationWithLength.Strand
.
- Parameters:
position
- the position of the
StrandedLocatedSequenceAnnotationWithLength
on the
sequencelength
- the length of the
StrandedLocatedSequenceAnnotationWithLength
strandedness
- the orientation on the strandidentifier
- the identifier of the annotationadditionalAnnotation
- the additional annotation- See Also:
StrandedLocatedSequenceAnnotationWithLength.Strand
,
StrandedLocatedSequenceAnnotationWithLength.StrandedLocatedSequenceAnnotationWithLength(int,
int, StrandedLocatedSequenceAnnotationWithLength.Strand, String, String, Result[])
MotifAnnotation
public MotifAnnotation(StringBuffer representation)
throws NonParsableException
- The standard constructor for the interface
Storable
.
Creates a new MotifAnnotation
out of its XML representation.
- Parameters:
representation
- the XML representation as StringBuffer
- Throws:
NonParsableException
- if the MotifAnnotation
could not be reconstructed out
of the XML representation (the StringBuffer
representation
could not be parsed)- See Also:
StrandedLocatedSequenceAnnotationWithLength.StrandedLocatedSequenceAnnotationWithLength(StringBuffer)
,
Storable