[][src]Struct bam_builder::ReadPairSpecBuilder

pub struct ReadPairSpecBuilder { /* fields omitted */ }

Builder for ReadPairSpec.

Implementations

impl ReadPairSpecBuilder[src]

pub fn name(&mut self, value: String) -> &mut Self[src]

Name of the reads, will be filled in by BamBuilder::next_name by default.

pub fn bases1(&mut self, value: String) -> &mut Self[src]

Sequence bases, will be filled in by BamBuilder::random_bases by default.

pub fn bases2(&mut self, value: String) -> &mut Self[src]

Sequence bases, will be filled in by BamBuilder::random_bases by default.

pub fn quals1(&mut self, value: String) -> &mut Self[src]

Quality string, will be based on the BamBuilder::base_quality by default.

pub fn quals2(&mut self, value: String) -> &mut Self[src]

Quality string, will be based on the BamBuilder::base_quality by default.

pub fn contig(&mut self, value: i32) -> &mut Self[src]

Reference contig if mapped, defaults to unmapped.

pub fn start1(&mut self, value: i64) -> &mut Self[src]

0-based location on reference contig if mapped. defaults to unmapped.

pub fn start2(&mut self, value: i64) -> &mut Self[src]

0-based location on reference contig if mapped. defaults to unmapped.

pub fn unmapped1(&mut self, value: bool) -> &mut Self[src]

true if unmapped, defaults to true.

pub fn unmapped2(&mut self, value: bool) -> &mut Self[src]

true if unmapped, defaults to true.

pub fn cigar1(&mut self, value: String) -> &mut Self[src]

Alignment, defaults to all M if mapped or * if unmapped.

pub fn cigar2(&mut self, value: String) -> &mut Self[src]

Alignment, defaults to all M if mapped or * if unmapped.

pub fn mapq1(&mut self, value: u8) -> &mut Self[src]

map quality of the read, defaults to 60 if mapped, * if unmapped.

pub fn mapq2(&mut self, value: u8) -> &mut Self[src]

map quality of the read, defaults to 60 if mapped, * if unmapped.

pub fn strand1(&mut self, value: Strand) -> &mut Self[src]

Strand the read maps to, defaults to wrappers::Strand::Plus.

pub fn strand2(&mut self, value: Strand) -> &mut Self[src]

Strand the read maps to, defaults to wrappers::Strand::Minus.

pub fn attrs(&mut self, value: HashMap<String, AuxType>) -> &mut Self[src]

Tags for the reads, mate tags will be filled in by default.

pub fn build(&self) -> Result<ReadPairSpec, String>[src]

Builds a new ReadPairSpec.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ReadPairSpecBuilder[src]

impl Default for ReadPairSpecBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,