Struct noodles_cram::record::Record
source · pub struct Record { /* private fields */ }
Expand description
A CRAM record.
Implementations§
source§impl Record
impl Record
sourcepub fn cram_flags(&self) -> Flags
pub fn cram_flags(&self) -> Flags
Returns the CRAM flags.
This is also called the CRAM bit flags or compression bit flags.
sourcepub fn reference_sequence_id(&self) -> Option<usize>
pub fn reference_sequence_id(&self) -> Option<usize>
Returns the reference sequence ID.
This is also called the reference ID. It is the position of the reference sequence in the SAM header.
sourcepub fn reference_sequence<'h>(
&self,
reference_sequences: &'h ReferenceSequences
) -> Option<Result<(&'h [u8], &'h Map<ReferenceSequence>)>>
pub fn reference_sequence<'h>( &self, reference_sequences: &'h ReferenceSequences ) -> Option<Result<(&'h [u8], &'h Map<ReferenceSequence>)>>
Returns the associated reference sequence.
sourcepub fn read_length(&self) -> usize
pub fn read_length(&self) -> usize
Returns the read length.
sourcepub fn alignment_start(&self) -> Option<Position>
pub fn alignment_start(&self) -> Option<Position>
Returns the alignment start.
sourcepub fn alignment_end(&self) -> Option<Position>
pub fn alignment_end(&self) -> Option<Position>
Returns the alignment end.
sourcepub fn read_group_id(&self) -> Option<usize>
pub fn read_group_id(&self) -> Option<usize>
Returns the read group ID.
This is also simply called the read group. It is the position of the read group in the SAM header.
sourcepub fn next_mate_flags(&self) -> NextMateFlags
pub fn next_mate_flags(&self) -> NextMateFlags
Returns the next mate flags.
This is also call the next mate bit flags.
sourcepub fn next_fragment_reference_sequence_id(&self) -> Option<usize>
pub fn next_fragment_reference_sequence_id(&self) -> Option<usize>
Returns the reference sequence ID of the next fragment.
It is the position of the reference sequence in the SAM header.
sourcepub fn mate_reference_sequence<'h>(
&self,
reference_sequences: &'h ReferenceSequences
) -> Option<Result<(&'h [u8], &'h Map<ReferenceSequence>)>>
pub fn mate_reference_sequence<'h>( &self, reference_sequences: &'h ReferenceSequences ) -> Option<Result<(&'h [u8], &'h Map<ReferenceSequence>)>>
Returns the associated mate reference sequence.
sourcepub fn next_mate_alignment_start(&self) -> Option<Position>
pub fn next_mate_alignment_start(&self) -> Option<Position>
Returns the alignment start position of the next mate.
This value is 1-based.
sourcepub fn mate_alignment_start(&self) -> Option<Position>
pub fn mate_alignment_start(&self) -> Option<Position>
Returns the alignment start.
sourcepub fn template_size(&self) -> i32
pub fn template_size(&self) -> i32
Returns the template size.
sourcepub fn template_length(&self) -> i32
pub fn template_length(&self) -> i32
Returns the template size.
sourcepub fn distance_to_next_fragment(&self) -> Option<usize>
pub fn distance_to_next_fragment(&self) -> Option<usize>
Returns the distance to the next fragment.
This is the number of records to the next fragment within a slice.
Returns the tag dictionary.
sourcepub fn mapping_quality(&self) -> Option<MappingQuality>
pub fn mapping_quality(&self) -> Option<MappingQuality>
Returns the mapping quality.
sourcepub fn quality_scores(&self) -> &QualityScores
pub fn quality_scores(&self) -> &QualityScores
Returns the quality scores.