Dosages are stored with 1/16384 precision. Hardcalls are saved as well: each is the nearest integer when the dosage is within 0.1 of it, and missing otherwise.
AppendDosages(pgen_writer, dosages)No return value, called for side-effect.
Object returned by NewPgenWriter(), with dosage_present = TRUE.
Numeric vector of length sample_ct, with ALT allele dosages in [0, 2], or NA for missing. (A buffer filled by Read() is in this format.)