Annotation class

An annotation describes a region of reference genome. The value of an annotation may be one of several canonical types, supplemented by arbitrary info tags. An annotation is not inherently associated with a specific sample or individual (though a client could choose to use annotations in this way). Example canonical annotation types are GENE and VARIANT.


Annotation.fromJson(Map _json)


annotationSetId ↔ String
The annotation set to which this annotation belongs.
read / write
end ↔ String
The end position of the range on the reference, 0-based exclusive.
read / write
id ↔ String
The server-generated annotation ID, unique across all annotations.
read / write
info ↔ Map<String, List<Object>>
A map of additional read alignment information. This must be of the form map<string, string[]> (string key mapping to a list of string values). [...]
read / write
name ↔ String
The display name of this annotation.
read / write
referenceId ↔ String
The ID of the Google Genomics reference associated with this range.
read / write
referenceName ↔ String
The display name corresponding to the reference specified by referenceId, for example chr1, 1, or chrX.
read / write
reverseStrand ↔ bool
Whether this range refers to the reverse strand, as opposed to the forward strand. Note that regardless of this field, the start/end position of the range always refer to the forward strand.
read / write
start ↔ String
The start position of the range on the reference, 0-based inclusive.
read / write
transcript Transcript
A transcript value represents the assertion that a particular region of the reference genome may be transcribed as RNA. An alternative splicing pattern would be represented as a separate transcript object. This field is only set for annotations of type TRANSCRIPT.
read / write
type ↔ String
The data type for this annotation. Must match the containing annotation set's type. Possible string values are: [...]
read / write
variant VariantAnnotation
A variant annotation, which describes the effect of a variant on the genome, the coding sequence, and/or higher level consequences at the organism level e.g. pathogenicity. This field is only set for annotations of type VARIANT.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.