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

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

A BAM record.

Fields

Methods

impl Record
[src]

Create an empty BAM record.

Get target id.

Set target id.

Get position (0-based).

Set position (0-based).

Get MAPQ.

Set MAPQ.

Get raw flags.

Set raw flags.

Unset all flags.

Get target id of mate.

Set target id of mate.

Get mate position.

Set mate position.

Get insert size.

Set insert size.

Important traits for &'a [u8]

Get qname (read name). Complexity: O(1).

Set the variable length data buffer

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().

Replace current qname with a new one. Unlike set(), this preserves all the variable length data including the aux.

Important traits for &'a [u8]

Get reference to raw cigar string representation (as stored in BAM file). Usually, the method Record::cigar should be used instead.

Get cigar string. Complexity: O(k) with k being the length of the cigar string.

Get read sequence. Complexity: O(1).

Important traits for &'a [u8]

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).

Get auxiliary data (tags).

Add auxiliary data. push_aux() should never be called before set().

Trait Implementations

impl Send for Record
[src]

impl Sync for Record
[src]

impl Clone for Record
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Record
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Record
[src]

impl Debug for Record
[src]

Formats the value using the given formatter. Read more

impl Drop for Record
[src]

Executes the destructor for this type. Read more