public final class SequenceAnnotationGroup extends Object
SequenceAnnotation types.| Modifier and Type | Field and Description |
|---|---|
static SequenceAnnotationGroup |
EDITING_HISTORY
A group of annotations created when a sequence is manually editing, including
SequenceAnnotation.TYPE_EDITING_HISTORY_REPLACEMENT, SequenceAnnotation.TYPE_EDITING_HISTORY_INSERTION, SequenceAnnotation.TYPE_EDITING_HISTORY_DELETION. |
static SequenceAnnotationGroup |
PRIMER
A group of annotations created when designing primers, including
SequenceAnnotation.TYPE_PRIMER_BIND, SequenceAnnotation.TYPE_PRIMER_BIND_REVERSE. |
static SequenceAnnotationGroup |
STRUCTURE
A group of 3d structure annotations, including
SequenceAnnotation.TYPE_HELIX, SequenceAnnotation.TYPE_STRAND, SequenceAnnotation.TYPE_COIL, SequenceAnnotation.TYPE_TURN. |
| Constructor and Description |
|---|
SequenceAnnotationGroup(String groupName,
String... annotationTypes)
construct a new SequenceAnnotationGroup with the specified name and types
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static SequenceAnnotationGroup |
getAnnotationGroup(String annotationType)
Get the annotation group that contains this annotation type
|
static List<SequenceAnnotationGroup> |
getAnnotationGroups()
Get all available annotation groups
|
List<String> |
getAnnotationTypes()
Get all of the annotations types contained within this group
|
String |
getGroupName()
Get a name suitable for displaying to an end user describing the annotation types within this group.
|
int |
hashCode() |
String |
toString() |
public static final SequenceAnnotationGroup STRUCTURE
SequenceAnnotation.TYPE_HELIX, SequenceAnnotation.TYPE_STRAND, SequenceAnnotation.TYPE_COIL, SequenceAnnotation.TYPE_TURN.public static final SequenceAnnotationGroup EDITING_HISTORY
SequenceAnnotation.TYPE_EDITING_HISTORY_REPLACEMENT, SequenceAnnotation.TYPE_EDITING_HISTORY_INSERTION, SequenceAnnotation.TYPE_EDITING_HISTORY_DELETION.public static final SequenceAnnotationGroup PRIMER
SequenceAnnotation.TYPE_PRIMER_BIND, SequenceAnnotation.TYPE_PRIMER_BIND_REVERSE.public SequenceAnnotationGroup(String groupName, String... annotationTypes)
groupName - a human readable name for this groupannotationTypes - the annotation types this group contains. Usually, one of SequenceAnnotation.TYPE_*. If no types are specified, the group is assumed to contain a single type matching the group namepublic static List<SequenceAnnotationGroup> getAnnotationGroups()
public static SequenceAnnotationGroup getAnnotationGroup(String annotationType)
annotationType - the annotation type to get the group for (case insensitive)public List<String> getAnnotationTypes()
public String getGroupName()