ReadAlleles | R Documentation |
This function treats the data as diploid. If it's really haploid, you may want to compare the two rows, and then treat samples where the allele codes differ as missing values.
ReadAlleles(pgen, acbuf, variant_num, phasepresent_buf = NULL)
pgen |
Object returned by NewPgen(). |
acbuf |
Buffer returned by AlleleCodeBuf() or IntAlleleCodeBuf(). |
variant_num |
Variant index (1-based). |
phasepresent_buf |
Buffer returned by BoolBuf(). Optional; if provided, elements are set to true when the sample has known phase. Most of these values will be TRUE even when the raw data is unphased, because homozygous genotypes always have known phase. (Missing genotypes are considered to have unknown phase.) |
No return value, called for acbuf-filling side-effect.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.