Enum noodles::vcf::record::genotype::field::Key[][src]

pub enum Key {
Show 24 variants ReadDepths, ForwardStrandReadDepths, ReverseStrandReadDepths, ReadDepth, ExpectedAlternateAlleleCounts, Filter, GenotypeLikelihoods, GenotypePosteriorProbabilities, ConditionalGenotypeQuality, Genotype, HaplotypeQuality, MappingQuality, RoundedGenotypeLikelihoods, RoundedGenotypePosteriorProbabilities, PhasingQuality, PhaseSet, GenotypeCopyNumber, GenotypeCopyNumberQuality, GenotypeCopyNumberLikelihoods, GenotypeCopyNumberPosteriorProbabilities, NovelVariantQualityScore, HaplotypeId, AncestralHaplotypeId, Other(StringNumberTypeString),
}
Expand description

A VCF record genotype field key.

Variants

ReadDepths

Read depth for each allele (AD).

ForwardStrandReadDepths

Read depth for each allele on the forward strand (ADF).

ReverseStrandReadDepths

Read depth for each allele on the reverse strand (ADR).

ReadDepth

Read depth (DP).

ExpectedAlternateAlleleCounts

Expected alternate allele counts (EC).

Filter

Filter indicating if this genotype was “called” (FT).

GenotypeLikelihoods

Genotype likelihoods (GL).

GenotypePosteriorProbabilities

Genotype posterior probabilities (GP).

ConditionalGenotypeQuality

Conditional genotype quality (GQ).

Genotype

Genotype (GT).

HaplotypeQuality

Haplotype quality (HQ).

MappingQuality

RMS mapping quality (MQ).

RoundedGenotypeLikelihoods

Phred-scaled genotype likelihoods rounded to the closest integer (PL).

RoundedGenotypePosteriorProbabilities

Phred-scaled genotype posterior probabilities rounded to the closest integer (PP).

PhasingQuality

Phasing quality (PQ).

PhaseSet

Phase set (PS).

GenotypeCopyNumber

Copy number genotype for imprecise events (CN).

GenotypeCopyNumberQuality

Copy number genotype quality for imprecise events (CNQ).

GenotypeCopyNumberLikelihoods

Copy number genotype likelihood for imprecise events (CNL).

GenotypeCopyNumberPosteriorProbabilities

Copy number posterior probabilities (CNP).

NovelVariantQualityScore

Phred style probability score that the variant is novel (NQ).

HaplotypeId

Unique haplotype identifier (HAP).

AncestralHaplotypeId

Unique identifier of ancestral haplotype (AHAP).

Other(StringNumberTypeString)

Any other non-reserved key.

Tuple Fields of Other

0: String1: Number2: Type3: String

Implementations

Returns the cardinality of the genotype field value.

Examples

use noodles_vcf::{header::Number, record::genotype::field::Key};
assert_eq!(Key::Genotype.number(), Number::Count(1));

Returns the type of the genotype field value.

Examples

use noodles_vcf::{header::format::Type, record::genotype::field::Key};
assert_eq!(Key::Genotype.ty(), Type::String);

Returns the description of the genotype field.

Examples

use noodles_vcf::record::genotype::field::Key;
assert_eq!(Key::Genotype.description(), "Genotype");

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.