Description Usage Arguments Value Examples
View source: R/PolyHaplotyper.R
Given a set of bi-allelic (SNP) marker names, generate all possible haplotypes
1 | allHaplotypes(mrknames)
|
mrknames |
the names of the (bi-allelic) markers in the haploblock (contig) |
a matrix with markers in columns and all possible (2 ^ nmrk) haplotypes in rows. 0: haplotype contains the non-dosage-counted marker allele (the reference allele); 1: haplotype contains the dosage-counted (alternative) marker allele. The colnames are the marker names.
1 2 | # show the 8 possible haplotypes with 3 bi-allelic markers:
allHaplotypes(mrknames=c("mrkA", "mrkB", "mrkC"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.