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.
Trait Implementations§
Source§impl Record for Record
impl Record for Record
Source§fn reference_sequence_id<'r, 'h: 'r>(
&'r self,
_: &'h Header,
) -> Option<Result<usize>>
fn reference_sequence_id<'r, 'h: 'r>( &'r self, _: &'h Header, ) -> Option<Result<usize>>
Source§fn mapping_quality(&self) -> Option<Result<MappingQuality>>
fn mapping_quality(&self) -> Option<Result<MappingQuality>>
Source§fn mate_reference_sequence_id<'r, 'h: 'r>(
&'r self,
_: &'h Header,
) -> Option<Result<usize>>
fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, _: &'h Header, ) -> Option<Result<usize>>
Source§fn mate_alignment_start(&self) -> Option<Result<Position>>
fn mate_alignment_start(&self) -> Option<Result<Position>>
Source§fn template_length(&self) -> Result<i32>
fn template_length(&self) -> Result<i32>
Source§fn quality_scores(&self) -> Box<dyn QualityScores + '_>
fn quality_scores(&self) -> Box<dyn QualityScores + '_>
Source§fn reference_sequence<'h>(
&self,
header: &'h Header,
) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>), Error>>
fn reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>), Error>>
Source§fn mate_reference_sequence<'h>(
&self,
header: &'h Header,
) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>), Error>>
fn mate_reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>), Error>>
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)