Struct google_api_proto::google::genomics::v1::VariantCall
source · pub struct VariantCall {
pub call_set_id: String,
pub call_set_name: String,
pub genotype: Vec<i32>,
pub phaseset: String,
pub genotype_likelihood: Vec<f64>,
pub info: BTreeMap<String, ListValue>,
}
Expand description
A call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.
Fields§
§call_set_id: String
The ID of the call set this variant call belongs to.
call_set_name: String
The name of the call set this variant call belongs to.
genotype: Vec<i32>
The genotype of this variant call. Each value represents either the value
of the referenceBases
field or a 1-based index into
alternateBases
. If a variant had a referenceBases
value of T
and an alternateBases
value of \["A", "C"\]
, and the genotype
was
\[2, 1\]
, that would mean the call
represented the heterozygous value CA
for this variant.
If the genotype
was instead \[0, 1\]
, the
represented value would be TA
. Ordering of the
genotype values is important if the phaseset
is present.
If a genotype is not called (that is, a .
is present in the
GT string) -1 is returned.
phaseset: String
If this field is present, this variant call’s genotype ordering implies
the phase of the bases and is consistent with any other variant calls in
the same reference sequence which have the same phaseset value.
When importing data from VCF, if the genotype data was phased but no
phase set was specified this field will be set to *
.
genotype_likelihood: Vec<f64>
The genotype likelihoods for this variant call. Each array entry
represents how likely a specific genotype is for this call. The value
ordering is defined by the GL tag in the VCF spec.
If Phred-scaled genotype likelihood scores (PL) are available and
log10(P) genotype likelihood scores (GL) are not, PL scores are converted
to GL scores. If both are available, PL scores are stored in info
.
info: BTreeMap<String, ListValue>
A map of additional variant call information. This must be of the form map<string, string[]> (string key mapping to a list of string values).
Trait Implementations§
source§impl Clone for VariantCall
impl Clone for VariantCall
source§fn clone(&self) -> VariantCall
fn clone(&self) -> VariantCall
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VariantCall
impl Debug for VariantCall
source§impl Default for VariantCall
impl Default for VariantCall
source§impl Message for VariantCall
impl Message for VariantCall
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 VariantCall
impl PartialEq for VariantCall
source§fn eq(&self, other: &VariantCall) -> bool
fn eq(&self, other: &VariantCall) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VariantCall
Auto Trait Implementations§
impl Freeze for VariantCall
impl RefUnwindSafe for VariantCall
impl Send for VariantCall
impl Sync for VariantCall
impl Unpin for VariantCall
impl UnwindSafe for VariantCall
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