allHaplotypes: get all haplotypes for the given markers

Description Usage Arguments Value Examples

View source: R/PolyHaplotyper.R

Description

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

Usage

1
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

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

PolyHaplotyper documentation built on June 17, 2021, 5:12 p.m.