Description Usage Arguments Details Value
Adds pairs of rows of a matrix to convert a haplotype matrix to a genotype matrix. For example, rows 1 and 2 are added to create row 1 of the output matrix. Rows 3 and 4 are added to create row 2 of the output matrix, and so on.
1 | haps_to_gen(H)
|
H |
An array with an even length in the first dimension. |
This function can also handle general arrays. It assumes that the first dimension indexes the haplotypes.
An array of the same dimension as H, with the first dimension half as long.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.