Struct google_api_proto::google::genomics::v1::Annotation
source · 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: BTreeMap<String, ListValue>,
pub value: Option<Value>,
}
Expand description
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: BTreeMap<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§
source§impl Annotation
impl Annotation
sourcepub fn type(&self) -> AnnotationType
pub fn type(&self) -> AnnotationType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: AnnotationType)
pub fn set_type(&mut self, value: AnnotationType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for Annotation
impl Clone for Annotation
source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Annotation
impl Debug for Annotation
source§impl Default for Annotation
impl Default for Annotation
source§impl Message for Annotation
impl Message for Annotation
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Annotation
impl PartialEq for Annotation
source§fn eq(&self, other: &Annotation) -> bool
fn eq(&self, other: &Annotation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request