Struct rust_htslib::bam::record::Record [] [src]

pub struct Record {
    pub inner: *mut bam1_t,
    // some fields omitted
}

A BAM record.

Fields

inner: *mut bam1_t

Methods

impl Record
[src]

fn new() -> Self

Create an empty BAM record.

fn from_inner(inner: *mut bam1_t) -> Self

fn inner_mut(&mut self) -> &mut bam1_t

fn inner(&self) -> &bam1_t

fn tid(&self) -> i32

Get target id.

fn set_tid(&mut self, tid: i32)

Set target id.

fn pos(&self) -> i32

Get position.

fn set_pos(&mut self, pos: i32)

Set position.

fn bin(&self) -> u16

fn set_bin(&mut self, bin: u16)

fn mapq(&self) -> u8

Get MAPQ.

fn set_mapq(&mut self, mapq: u8)

Set MAPQ.

fn flags(&self) -> u16

Get raw flags.

fn set_flags(&mut self, flags: u16)

Set raw flags.

fn unset_flags(&mut self)

Unset all flags.

fn mtid(&self) -> i32

Get target id of mate.

fn set_mtid(&mut self, mtid: i32)

Set target id of mate.

fn mpos(&self) -> i32

Get mate position.

fn set_mpos(&mut self, mpos: i32)

Set mate position.

fn insert_size(&self) -> i32

Get insert size.

fn set_insert_size(&mut self, insert_size: i32)

Set insert size.

fn qname(&self) -> &[u8]

Get qname (read name).

fn set(&mut self, qname: &[u8], cigar: &[Cigar], seq: &[u8], qual: &[u8])

Set variable length data (qname, cigar, seq, qual).

fn cigar(&self) -> Vec<Cigar>

Get cigar sequence.

fn seq(&self) -> Seq

Get read sequence.

fn qual(&self) -> &[u8]

Get base qualities.

fn aux(&self, tag: &[u8]) -> Option<Aux>

Get auxiliary data (tags).

fn push_aux(&mut self, tag: &[u8], value: &Aux)

Add auxiliary data.

fn is_paired(&self) -> bool

fn set_paired(&mut self)

fn is_proper_pair(&self) -> bool

fn set_proper_pair(&mut self)

fn is_unmapped(&self) -> bool

fn set_unmapped(&mut self)

fn is_mate_unmapped(&self) -> bool

fn set_mate_unmapped(&mut self)

fn is_reverse(&self) -> bool

fn set_reverse(&mut self)

fn is_mate_reverse(&self) -> bool

fn set_mate_reverse(&mut self)

fn is_first_in_pair(&self) -> bool

fn set_first_in_pair(&mut self)

fn is_second_in_pair(&self) -> bool

fn set_second_in_pair(&mut self)

fn is_secondary(&self) -> bool

fn set_secondary(&mut self)

fn is_quality_check_failed(&self) -> bool

fn set_quality_check_failed(&mut self)

fn is_duplicate(&self) -> bool

fn set_duplicate(&mut self)

fn is_supplementary(&self) -> bool

fn set_supplementary(&mut self)

Trait Implementations

impl Send for Record
[src]

impl Drop for Record
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more