pub struct ReadFragSpecBuilder { /* private fields */ }
Expand description
Builder for ReadFragSpec
.
Implementations§
Source§impl ReadFragSpecBuilder
impl ReadFragSpecBuilder
Sourcepub fn name(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
Name of the read, will be filled in by BamBuilder::next_name
by default.
Sourcepub fn bases(&mut self, value: String) -> &mut Self
pub fn bases(&mut self, value: String) -> &mut Self
Sequence bases, will be filled in by BamBuilder::random_bases
by default.
Sourcepub fn quals(&mut self, value: String) -> &mut Self
pub fn quals(&mut self, value: String) -> &mut Self
Quality string, will be based on the BamBuilder::base_quality
by default.
Sourcepub fn contig(&mut self, value: i32) -> &mut Self
pub fn contig(&mut self, value: i32) -> &mut Self
Reference contig if mapped, defaults to unmapped.
Sourcepub fn start(&mut self, value: i64) -> &mut Self
pub fn start(&mut self, value: i64) -> &mut Self
0-based location on reference contig if mapped. defaults to unmapped.
Sourcepub fn cigar(&mut self, value: String) -> &mut Self
pub fn cigar(&mut self, value: String) -> &mut Self
Alignment, defaults to all M
if mapped or *
if unmapped.
Sourcepub fn mapq(&mut self, value: u8) -> &mut Self
pub fn mapq(&mut self, value: u8) -> &mut Self
map quality of the read, defaults to 60 if mapped, *
if unmapped.
Sourcepub fn strand(&mut self, value: Strand) -> &mut Self
pub fn strand(&mut self, value: Strand) -> &mut Self
Strand the read maps to, defaults to wrappers::Strand::Plus
.
Sourcepub fn attrs(&mut self, value: HashMap<String, AuxType>) -> &mut Self
pub fn attrs(&mut self, value: HashMap<String, AuxType>) -> &mut Self
Tags for the read, defaults to none.
Sourcepub fn build(&self) -> Result<ReadFragSpec, ReadFragSpecBuilderError>
pub fn build(&self) -> Result<ReadFragSpec, ReadFragSpecBuilderError>
Trait Implementations§
Source§impl Clone for ReadFragSpecBuilder
impl Clone for ReadFragSpecBuilder
Source§fn clone(&self) -> ReadFragSpecBuilder
fn clone(&self) -> ReadFragSpecBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ReadFragSpecBuilder
impl RefUnwindSafe for ReadFragSpecBuilder
impl Send for ReadFragSpecBuilder
impl Sync for ReadFragSpecBuilder
impl Unpin for ReadFragSpecBuilder
impl UnwindSafe for ReadFragSpecBuilder
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