Struct gapi_grpc::google::genomics::v1::Annotation[][src]

pub struct Annotation {
    pub id: String,
    pub annotation_set_id: String,
    pub name: String,
    pub reference_id: String,
    pub reference_name: String,
    pub start: i64,
    pub end: i64,
    pub reverse_strand: bool,
    pub type: i32,
    pub info: HashMap<String, ListValue>,
    pub value: Option<Value>,
}

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.

Fields

id: String

The server-generated annotation ID, unique across all annotations.

annotation_set_id: String

The annotation set to which this annotation belongs.

name: String

The display name of this annotation.

reference_id: String

The ID of the Google Genomics reference associated with this range.

reference_name: String

The display name corresponding to the reference specified by referenceId, for example chr1, 1, or chrX.

start: i64

The start position of the range on the reference, 0-based inclusive.

end: i64

The end position of the range on the reference, 0-based exclusive.

reverse_strand: 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.

type: i32

The data type for this annotation. Must match the containing annotation set’s type.

info: HashMap<String, ListValue>

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).

value: Option<Value>

Implementations

impl Annotation[src]

pub fn type(&self) -> AnnotationType[src]

Returns the enum value of type, or the default if the field is set to an invalid enum value.

pub fn set_type(&mut self, value: AnnotationType)[src]

Sets type to the provided enum value.

Trait Implementations

impl Clone for Annotation[src]

impl Debug for Annotation[src]

impl Default for Annotation[src]

impl Message for Annotation[src]

impl PartialEq<Annotation> for Annotation[src]

impl StructuralPartialEq for Annotation[src]

Auto Trait Implementations

impl RefUnwindSafe for Annotation

impl Send for Annotation

impl Sync for Annotation

impl Unpin for Annotation

impl UnwindSafe for Annotation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]