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
[src]
Create an empty BAM record.
fn from_inner(inner: *mut bam1_t) -> Self
[src]
fn inner_mut(&mut self) -> &mut bam1_t
[src]
fn inner(&self) -> &bam1_t
[src]
fn tid(&self) -> i32
[src]
Get target id.
fn set_tid(&mut self, tid: i32)
[src]
Set target id.
fn pos(&self) -> i32
[src]
Get position (0-based).
fn set_pos(&mut self, pos: i32)
[src]
Set position (0-based).
fn bin(&self) -> u16
[src]
fn set_bin(&mut self, bin: u16)
[src]
fn mapq(&self) -> u8
[src]
Get MAPQ.
fn set_mapq(&mut self, mapq: u8)
[src]
Set MAPQ.
fn flags(&self) -> u16
[src]
Get raw flags.
fn set_flags(&mut self, flags: u16)
[src]
Set raw flags.
fn unset_flags(&mut self)
[src]
Unset all flags.
fn mtid(&self) -> i32
[src]
Get target id of mate.
fn set_mtid(&mut self, mtid: i32)
[src]
Set target id of mate.
fn mpos(&self) -> i32
[src]
Get mate position.
fn set_mpos(&mut self, mpos: i32)
[src]
Set mate position.
fn insert_size(&self) -> i32
[src]
Get insert size.
fn set_insert_size(&mut self, insert_size: i32)
[src]
Set insert size.
fn qname(&self) -> &[u8]
[src]
Get qname (read name). Complexity: O(1).
fn set(&mut self, qname: &[u8], cigar: &CigarString, seq: &[u8], qual: &[u8])
[src]
Set variable length data (qname, cigar, seq, qual). Note: Pre-existing aux data will be invalidated if called on an existing record. For this reason, never call push_aux() before set().
fn set_qname(&mut self, new_qname: &[u8])
[src]
Replace current qname with a new one. Unlike set(), this preserves all the variable length data including the aux.
fn cigar(&self) -> CigarStringView
[src]
Get cigar string. Complexity: O(k) with k being the length of the cigar string.
fn seq(&self) -> Seq
[src]
Get read sequence. Complexity: O(1).
fn qual(&self) -> &[u8]
[src]
Get base qualities (PHRED-scaled probability that base is wrong). This does not entail any offsets, hence the qualities can be used directly without e.g. subtracting 33. Complexity: O(1).
fn aux(&self, tag: &[u8]) -> Option<Aux>
[src]
Get auxiliary data (tags).
fn push_aux(&mut self, tag: &[u8], value: &Aux)
[src]
Add auxiliary data. push_aux() should never be called before set().
fn remove_aux(&self, tag: &[u8]) -> bool
[src]
fn is_paired(&self) -> bool
[src]
fn set_paired(&mut self)
[src]
fn is_proper_pair(&self) -> bool
[src]
fn set_proper_pair(&mut self)
[src]
fn is_unmapped(&self) -> bool
[src]
fn set_unmapped(&mut self)
[src]
fn is_mate_unmapped(&self) -> bool
[src]
fn set_mate_unmapped(&mut self)
[src]
fn is_reverse(&self) -> bool
[src]
fn set_reverse(&mut self)
[src]
fn is_mate_reverse(&self) -> bool
[src]
fn set_mate_reverse(&mut self)
[src]
fn is_first_in_template(&self) -> bool
[src]
fn set_first_in_template(&mut self)
[src]
fn is_last_in_template(&self) -> bool
[src]
fn set_last_in_template(&mut self)
[src]
fn is_secondary(&self) -> bool
[src]
fn set_secondary(&mut self)
[src]
fn is_quality_check_failed(&self) -> bool
[src]
fn set_quality_check_failed(&mut self)
[src]
fn is_duplicate(&self) -> bool
[src]
fn set_duplicate(&mut self)
[src]
fn is_supplementary(&self) -> bool
[src]
fn set_supplementary(&mut self)
[src]
Trait Implementations
impl Send for Record
[src]
impl Sync for Record
[src]
impl Clone for Record
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more