Struct bam_builder::ReadFragSpecBuilder
source · 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 copy 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 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