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.
This position is 1-based, inclusive.
Sourcepub fn alignment_end(&self) -> Option<Position>
pub fn alignment_end(&self) -> Option<Position>
Returns the alignment end.
This position is 1-based, inclusive.
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) -> MateFlags
pub fn next_mate_flags(&self) -> MateFlags
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 bases(&self) -> &Sequence
👎Deprecated since 0.70.0: Use Record::sequence
instead.
pub fn bases(&self) -> &Sequence
Record::sequence
instead.Returns the read bases.
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.