pub struct FragBuilder<'a> { /* private fields */ }Expand description
Builder for a single-end (fragment) read.
Implementations§
Source§impl<'a> FragBuilder<'a>
impl<'a> FragBuilder<'a>
Sourcepub fn name(self, name: &str) -> FragBuilder<'a>
pub fn name(self, name: &str) -> FragBuilder<'a>
Sets the read name.
Sourcepub fn bases(self, bases: &str) -> FragBuilder<'a>
pub fn bases(self, bases: &str) -> FragBuilder<'a>
Sets the bases.
Sourcepub fn quals(self, quals: &[u8]) -> FragBuilder<'a>
pub fn quals(self, quals: &[u8]) -> FragBuilder<'a>
Sets the quality scores.
Sourcepub fn contig(self, contig: usize) -> FragBuilder<'a>
pub fn contig(self, contig: usize) -> FragBuilder<'a>
Sets the reference sequence index.
Sourcepub fn start(self, start: usize) -> FragBuilder<'a>
pub fn start(self, start: usize) -> FragBuilder<'a>
Sets the alignment start (1-based). If not set, read is unmapped.
Sourcepub fn cigar(self, cigar: &str) -> FragBuilder<'a>
pub fn cigar(self, cigar: &str) -> FragBuilder<'a>
Sets the CIGAR string.
Sourcepub fn mapq(self, mapq: u8) -> FragBuilder<'a>
pub fn mapq(self, mapq: u8) -> FragBuilder<'a>
Sets the mapping quality.
Sourcepub fn strand(self, strand: Strand) -> FragBuilder<'a>
pub fn strand(self, strand: Strand) -> FragBuilder<'a>
Sets the strand.
Sourcepub fn unmapped(self) -> FragBuilder<'a>
pub fn unmapped(self) -> FragBuilder<'a>
Marks the read as unmapped.
Sourcepub fn attr<V>(self, tag: &str, value: V) -> FragBuilder<'a>
pub fn attr<V>(self, tag: &str, value: V) -> FragBuilder<'a>
Adds a tag to the read.
Auto Trait Implementations§
impl<'a> Freeze for FragBuilder<'a>
impl<'a> RefUnwindSafe for FragBuilder<'a>
impl<'a> Send for FragBuilder<'a>
impl<'a> Sync for FragBuilder<'a>
impl<'a> Unpin for FragBuilder<'a>
impl<'a> UnsafeUnpin for FragBuilder<'a>
impl<'a> !UnwindSafe for FragBuilder<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more