de.jstacs.data.sequences.annotation
Class SinglePositionSequenceAnnotation
java.lang.Object
de.jstacs.results.ResultSet
de.jstacs.data.sequences.annotation.SequenceAnnotation
de.jstacs.data.sequences.annotation.LocatedSequenceAnnotation
de.jstacs.data.sequences.annotation.SinglePositionSequenceAnnotation
- All Implemented Interfaces:
- Storable
public class SinglePositionSequenceAnnotation
- extends LocatedSequenceAnnotation
Class for some annotations that consist mainly of one position on a sequence.
This includes transcription start sites, translation start sites, splice
donor sites and splice acceptor sites.
- Author:
- Jan Grau
SinglePositionSequenceAnnotation
public SinglePositionSequenceAnnotation(SinglePositionSequenceAnnotation.Type type,
String identifier,
int position)
- Creates a new
SinglePositionSequenceAnnotation
of type
type
with identifier identifier
and position
position
.
- Parameters:
position
- the position of the SinglePositionSequenceAnnotation
on the sequencetype
- the type of the annotationidentifier
- the identifier of the annotation- See Also:
LocatedSequenceAnnotation.LocatedSequenceAnnotation(int, String,
String, Result...)
SinglePositionSequenceAnnotation
public SinglePositionSequenceAnnotation(SinglePositionSequenceAnnotation.Type type,
String identifier,
int position,
Result... additionalAnnotation)
- Creates a new
SinglePositionSequenceAnnotation
of type
type
with identifier identifier
, position
position
and additional annotations
additionalAnnotation
.
- Parameters:
position
- the position of the SinglePositionSequenceAnnotation
on the sequencetype
- the type of the annotationidentifier
- the identifier of the annotationadditionalAnnotation
- the additional annotation- See Also:
LocatedSequenceAnnotation.LocatedSequenceAnnotation(int, String,
String, Result...)
SinglePositionSequenceAnnotation
public SinglePositionSequenceAnnotation(StringBuffer representation)
throws NonParsableException
- The standard constructor for the interface
Storable
.
Creates a new SinglePositionSequenceAnnotation
out of its XML
representation.
- Parameters:
representation
- the XML representation as StringBuffer
- Throws:
NonParsableException
- if the SinglePositionSequenceAnnotation
could not be
reconstructed out of the XML representation (the
StringBuffer
representation
could not be
parsed)- See Also:
LocatedSequenceAnnotation.LocatedSequenceAnnotation(StringBuffer)
,
Storable