allHaplotypes {PolyHaplotyper}R Documentation

get all haplotypes for the given markers

Description

Given a set of bi-allelic (SNP) marker names, generate all possible haplotypes

Usage

allHaplotypes(mrknames)

Arguments

mrknames

the names of the (bi-allelic) markers in the haploblock (contig)

Value

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.

Examples

# show the 8 possible haplotypes with 3 bi-allelic markers:
allHaplotypes(mrknames=c("mrkA", "mrkB", "mrkC"))

[Package PolyHaplotyper version 1.0.1 Index]