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
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 -
SinglePositionSequenceAnnotation
public SinglePositionSequenceAnnotation(StringBuffer representation)
throws NonParsableException
- Re-creates a
SinglePositionSequenceAnnotation from its XML-representation as returned by LocatedSequenceAnnotation.toXML().
- Parameters:
representation - the XML-representation
- Throws:
NonParsableException - is thrown if the XML-code could not be parsed