Trait noodles_vcf::variant::record::Record
source · pub trait Record {
// Required methods
fn reference_sequence_name<'a, 'h: 'a>(
&'a self,
header: &'h Header,
) -> Result<&'a str>;
fn variant_start(&self) -> Option<Result<Position>>;
fn ids(&self) -> Box<dyn Ids + '_>;
fn reference_bases(&self) -> Box<dyn ReferenceBases + '_>;
fn alternate_bases(&self) -> Box<dyn AlternateBases + '_>;
fn quality_score(&self) -> Option<Result<f32>>;
fn filters(&self) -> Box<dyn Filters + '_>;
fn info(&self) -> Box<dyn Info + '_>;
fn samples(&self) -> Result<Box<dyn Samples + '_>>;
// Provided methods
fn variant_span(&self, header: &Header) -> Result<usize> { ... }
fn variant_end(&self, header: &Header) -> Result<Position> { ... }
}
Expand description
A variant record.
Required Methods§
sourcefn reference_sequence_name<'a, 'h: 'a>(
&'a self,
header: &'h Header,
) -> Result<&'a str>
fn reference_sequence_name<'a, 'h: 'a>( &'a self, header: &'h Header, ) -> Result<&'a str>
Returns the reference sequence name.
sourcefn variant_start(&self) -> Option<Result<Position>>
fn variant_start(&self) -> Option<Result<Position>>
Returns the variant start position.
sourcefn reference_bases(&self) -> Box<dyn ReferenceBases + '_>
fn reference_bases(&self) -> Box<dyn ReferenceBases + '_>
Returns the reference bases.
sourcefn alternate_bases(&self) -> Box<dyn AlternateBases + '_>
fn alternate_bases(&self) -> Box<dyn AlternateBases + '_>
Returns the alternate bases.
sourcefn quality_score(&self) -> Option<Result<f32>>
fn quality_score(&self) -> Option<Result<f32>>
Returns the quality scores.
Provided Methods§
sourcefn variant_span(&self, header: &Header) -> Result<usize>
fn variant_span(&self, header: &Header) -> Result<usize>
Returns the variant span.
sourcefn variant_end(&self, header: &Header) -> Result<Position>
fn variant_end(&self, header: &Header) -> Result<Position>
Returns or calculates the variant end position.
If available, this returns the value of the END
INFO field. Otherwise, it is calculated
using the variant start position and reference bases length.