noodles_sam::alignment::record

Trait Record

Source
pub trait Record {
Show 16 methods // Required methods fn name(&self) -> Option<&BStr>; fn flags(&self) -> Result<Flags>; fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>; fn alignment_start(&self) -> Option<Result<Position>>; fn mapping_quality(&self) -> Option<Result<MappingQuality>>; fn cigar(&self) -> Box<dyn Cigar + '_>; fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>; fn mate_alignment_start(&self) -> Option<Result<Position>>; fn template_length(&self) -> Result<i32>; fn sequence(&self) -> Box<dyn Sequence + '_>; fn quality_scores(&self) -> Box<dyn QualityScores + '_>; fn data(&self) -> Box<dyn Data + '_>; // Provided methods fn reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>> { ... } fn mate_reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>> { ... } fn alignment_span(&self) -> Option<Result<usize>> { ... } fn alignment_end(&self) -> Option<Result<Position>> { ... }
}
Expand description

An alignment record.

Required Methods§

Source

fn name(&self) -> Option<&BStr>

Returns the name.

Source

fn flags(&self) -> Result<Flags>

Returns the flags.

Source

fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>

Returns the reference sequence ID.

Source

fn alignment_start(&self) -> Option<Result<Position>>

Returns the alignment start.

This position is 1-based, inclusive.

Source

fn mapping_quality(&self) -> Option<Result<MappingQuality>>

Returns the mapping quality.

Source

fn cigar(&self) -> Box<dyn Cigar + '_>

Returns the CIGAR operations.

Source

fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>

Returns the mate reference sequence ID.

Source

fn mate_alignment_start(&self) -> Option<Result<Position>>

Returns the mate alignment start.

This position is 1-based, inclusive.

Source

fn template_length(&self) -> Result<i32>

Returns the template length.

Source

fn sequence(&self) -> Box<dyn Sequence + '_>

Returns the sequence.

Source

fn quality_scores(&self) -> Box<dyn QualityScores + '_>

Returns the quality scores.

Source

fn data(&self) -> Box<dyn Data + '_>

Returns the data.

Provided Methods§

Source

fn reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>

Returns the associated reference sequence.

Source

fn mate_reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>

Returns the associated mate reference sequence.

Source

fn alignment_span(&self) -> Option<Result<usize>>

Returns the alignment span.

Source

fn alignment_end(&self) -> Option<Result<Position>>

Calculates the end position.

This position is 1-based, inclusive.

Trait Implementations§

Source§

impl Record for Box<dyn Record>

Source§

fn name(&self) -> Option<&BStr>

Returns the name.
Source§

fn flags(&self) -> Result<Flags>

Returns the flags.
Source§

fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>

Returns the reference sequence ID.
Source§

fn alignment_start(&self) -> Option<Result<Position>>

Returns the alignment start. Read more
Source§

fn mapping_quality(&self) -> Option<Result<MappingQuality>>

Returns the mapping quality.
Source§

fn cigar(&self) -> Box<dyn Cigar + '_>

Returns the CIGAR operations.
Source§

fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>

Returns the mate reference sequence ID.
Source§

fn mate_alignment_start(&self) -> Option<Result<Position>>

Returns the mate alignment start. Read more
Source§

fn template_length(&self) -> Result<i32>

Returns the template length.
Source§

fn sequence(&self) -> Box<dyn Sequence + '_>

Returns the sequence.
Source§

fn quality_scores(&self) -> Box<dyn QualityScores + '_>

Returns the quality scores.
Source§

fn data(&self) -> Box<dyn Data + '_>

Returns the data.
Source§

fn reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>

Returns the associated reference sequence.
Source§

fn mate_reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>

Returns the associated mate reference sequence.
Source§

fn alignment_span(&self) -> Option<Result<usize>>

Returns the alignment span.
Source§

fn alignment_end(&self) -> Option<Result<Position>>

Calculates the end position. Read more

Implementations on Foreign Types§

Source§

impl Record for Box<dyn Record>

Source§

fn name(&self) -> Option<&BStr>

Source§

fn flags(&self) -> Result<Flags>

Source§

fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>

Source§

fn alignment_start(&self) -> Option<Result<Position>>

Source§

fn mapping_quality(&self) -> Option<Result<MappingQuality>>

Source§

fn cigar(&self) -> Box<dyn Cigar + '_>

Source§

fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>

Source§

fn mate_alignment_start(&self) -> Option<Result<Position>>

Source§

fn template_length(&self) -> Result<i32>

Source§

fn sequence(&self) -> Box<dyn Sequence + '_>

Source§

fn quality_scores(&self) -> Box<dyn QualityScores + '_>

Source§

fn data(&self) -> Box<dyn Data + '_>

Implementors§