FormatField

Struct to aid in conversion of VCF format data into D types

Constructors

this
this(string key, bcf_fmt_t* fmt, Bcf1 line)

ctor from VCFRecord

this
this(string key, bcf_fmt_t* fmt)

string and format ctor

Members

Functions

to
auto to()

convert to a D type array if int, float, bool, or string type array very similar to InfoField.to This returns chunks as we separated FORMAT values by sample

Variables

data
ubyte[] data;

reference of info field data

key
string key;

String identifier of info field

line
Bcf1 line;

VCFRecord refct

n
int n;

number of data elements per sample

nSamples
int nSamples;

number of samples

size
int size;

number of bytes per sample

type
BcfRecordType type;

BCF TYPE indicator

Meta