Description Usage Arguments Value Examples
View source: R/PolyHaplotyper.R
converts matrices that contain haplotype combinations in columns (as the matrices in ahccompletelist or ahclist) to matrices with the haplotype dosages
1 | hapcomb2hapdos(hapcomb, nhap)
|
hapcomb |
matrix with <ploidy> rows and any number of columns. Each column contains a set of haplotypes (numbers in 1 ... nhap). NAs allowed but no values outside this range (not checked). E.g. a column with numbers 1-1-3-12 means two copies of haplotype 1 and one of haplotypes 3 and 12 each. |
nhap |
the total number of possible haplotypes: 2^nmrk where nmrk is the number of bi-allelic markers in the haploblock |
matrix with nhap rows (one row for each possible haplotype) and as many columns as in hapmat, giving the dosages of each haplotype in each column of hapmat.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.