Struct noodles_cram::record::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A CRAM record builder.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_bam_flags(self, bam_flags: Flags) -> Self
pub fn set_bam_flags(self, bam_flags: Flags) -> Self
Sets the BAM flags.
sourcepub fn set_reference_sequence_id(self, reference_sequence_id: usize) -> Self
pub fn set_reference_sequence_id(self, reference_sequence_id: usize) -> Self
Sets the reference sequence ID.
sourcepub fn set_read_length(self, read_length: usize) -> Self
pub fn set_read_length(self, read_length: usize) -> Self
Sets the read length.
sourcepub fn set_alignment_start(self, alignment_start: Position) -> Self
pub fn set_alignment_start(self, alignment_start: Position) -> Self
Sets the alignment start position.
sourcepub fn set_read_group_id(self, read_group_id: usize) -> Self
pub fn set_read_group_id(self, read_group_id: usize) -> Self
Sets the read group ID.
sourcepub fn set_next_mate_flags(self, next_mate_flags: NextMateFlags) -> Self
pub fn set_next_mate_flags(self, next_mate_flags: NextMateFlags) -> Self
Sets the next mate flags.
sourcepub fn set_next_fragment_reference_sequence_id(
self,
next_fragment_reference_sequence_id: usize
) -> Self
pub fn set_next_fragment_reference_sequence_id( self, next_fragment_reference_sequence_id: usize ) -> Self
Sets the reference sequence ID of the next fragment.
sourcepub fn set_next_mate_alignment_start(
self,
next_mate_alignment_start: Position
) -> Self
pub fn set_next_mate_alignment_start( self, next_mate_alignment_start: Position ) -> Self
Sets the alignment start position of the next mate.
sourcepub fn set_template_size(self, template_size: i32) -> Self
pub fn set_template_size(self, template_size: i32) -> Self
Sets the template size.
sourcepub fn set_distance_to_next_fragment(
self,
distance_to_next_fragment: usize
) -> Self
pub fn set_distance_to_next_fragment( self, distance_to_next_fragment: usize ) -> Self
Sets the distance to the next fragment.
Sets the tag dictionary.
sourcepub fn set_features(self, features: Features) -> Self
pub fn set_features(self, features: Features) -> Self
Sets the read features.
sourcepub fn set_mapping_quality(self, mapping_quality: MappingQuality) -> Self
pub fn set_mapping_quality(self, mapping_quality: MappingQuality) -> Self
Sets the mapping quality.
sourcepub fn set_quality_scores(self, quality_scores: QualityScores) -> Self
pub fn set_quality_scores(self, quality_scores: QualityScores) -> Self
Sets the per-base quality scores.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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
Mutably borrows from an owned value. Read more