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]

[src]

Create an empty BAM record.

[src]

[src]

[src]

[src]

Get target id.

[src]

Set target id.

[src]

Get position (0-based).

[src]

Set position (0-based).

[src]

[src]

[src]

Get MAPQ.

[src]

Set MAPQ.

[src]

Get raw flags.

[src]

Set raw flags.

[src]

Unset all flags.

[src]

Get target id of mate.

[src]

Set target id of mate.

[src]

Get mate position.

[src]

Set mate position.

[src]

Get insert size.

[src]

Set insert size.

[src]

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

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

[src]

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

[src]

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

[src]

Get read sequence. Complexity: O(1).

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

[src]

Get auxiliary data (tags).

[src]

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

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Send for Record
[src]

impl Sync for Record
[src]

impl Clone for Record
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for Record
[src]

[src]

Executes the destructor for this type. Read more