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.