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

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

A BCF record. New records can be created by the empty_record methods of bcf::Reader and bcf::Writer.

Fields

Methods

impl Record
[src]

[src]

Return associated header.

[src]

[src]

[src]

Get the reference id of the record. To look up the contig name, use bcf::header::HeaderView::rid2name.

[src]

[src]

Set 0-based position.

[src]

Get alleles. The first allele is the reference allele.

[src]

Get variant quality.

[src]

Set variant quality.

[src]

Get the value of the given info tag.

[src]

Get the number of samples.

[src]

Get the number of alleles, including reference allele.

[src]

Get genotypes as vector of one Genotype per sample.

[src]

Get the value of the given format tag for each sample.

[src]

Add an integer format tag. Data is a flattened two-dimensional array. The first dimension contains one array for each sample. Returns error if tag is not present in header.

[src]

Add a float format tag. Data is a flattened two-dimensional array. The first dimension contains one array for each sample. Returns error if tag is not present in header.

[src]

Add an integer info tag.

[src]

Add a float info tag.

[src]

Add an info tag.

[src]

Remove unused alleles.

Trait Implementations

impl Debug for Record
[src]

[src]

Formats the value using the given formatter.

impl Drop for Record
[src]

[src]

Executes the destructor for this type. Read more

impl Send for Record
[src]

impl Sync for Record
[src]