Description Usage Arguments Value
Convert an rbed object from plink's native file format into a haplotype-based binary matrix. This involves pseudo-phasing, where alleles are assigned at random to either of the two haplotypes.
1 | bedashap(dat, ploidy = 2)
|
dat |
an rbed object as output by |
ploidy |
the ploidy of the data. The only plausible value for plink format is 2. |
a "hapmatrix" object, which is a list containing:
data: The SNP matrix in haplotype format with pN rows and L columns (p=ploidy)
snpinfo: as provided from the rbed object
indinfo: as provided from the rbed object
hapinfo: an N by p matrix giving individual identifiers for the haplotypes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.