Trait noodles_sam::alignment::record::Record
source · pub trait Record {
Show 16 methods
// Required methods
fn name(&self) -> Option<Box<dyn Name + '_>>;
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) -> Result<Option<usize>> { ... }
fn alignment_end(&self) -> Option<Result<Position>> { ... }
}
Expand description
An alignment record.
Required Methods§
sourcefn reference_sequence_id<'r, 'h: 'r>(
&'r self,
header: &'h Header
) -> Option<Result<usize>>
fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>
Returns the reference sequence ID.
sourcefn alignment_start(&self) -> Option<Result<Position>>
fn alignment_start(&self) -> Option<Result<Position>>
Returns the alignment start.
sourcefn mapping_quality(&self) -> Option<Result<MappingQuality>>
fn mapping_quality(&self) -> Option<Result<MappingQuality>>
Returns the mapping quality.
sourcefn mate_reference_sequence_id<'r, 'h: 'r>(
&'r self,
header: &'h Header
) -> Option<Result<usize>>
fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>
Returns the mate reference sequence ID.
sourcefn mate_alignment_start(&self) -> Option<Result<Position>>
fn mate_alignment_start(&self) -> Option<Result<Position>>
Returns the mate alignment start.
sourcefn template_length(&self) -> Result<i32>
fn template_length(&self) -> Result<i32>
Returns the template length.
sourcefn quality_scores(&self) -> Box<dyn QualityScores + '_>
fn quality_scores(&self) -> Box<dyn QualityScores + '_>
Returns the quality scores.
Provided Methods§
sourcefn reference_sequence<'h>(
&self,
header: &'h Header
) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>
fn reference_sequence<'h>( &self, header: &'h Header ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>
Returns the associated reference sequence.
sourcefn mate_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>)>>
Returns the associated mate reference sequence.
sourcefn alignment_span(&self) -> Result<Option<usize>>
fn alignment_span(&self) -> Result<Option<usize>>
Returns the alignment span.
sourcefn alignment_end(&self) -> Option<Result<Position>>
fn alignment_end(&self) -> Option<Result<Position>>
Calculates the end position.
Trait Implementations§
source§impl Record for Box<dyn Record>
impl Record for Box<dyn Record>
source§fn reference_sequence_id<'r, 'h: 'r>(
&'r self,
header: &'h Header
) -> Option<Result<usize>>
fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>
Returns the reference sequence ID.
source§fn mapping_quality(&self) -> Option<Result<MappingQuality>>
fn mapping_quality(&self) -> Option<Result<MappingQuality>>
Returns the mapping quality.
source§fn mate_reference_sequence_id<'r, 'h: 'r>(
&'r self,
header: &'h Header
) -> Option<Result<usize>>
fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>
Returns the mate reference sequence ID.
source§fn template_length(&self) -> Result<i32>
fn template_length(&self) -> Result<i32>
Returns the template length.
source§fn quality_scores(&self) -> Box<dyn QualityScores + '_>
fn quality_scores(&self) -> Box<dyn QualityScores + '_>
Returns the quality scores.
source§fn reference_sequence<'h>(
&self,
header: &'h Header
) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>
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>)>>
fn mate_reference_sequence<'h>( &self, header: &'h Header ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>
Returns the associated mate reference sequence.