h.to.g: Convert haplotype states to genotype states

Description Usage Arguments Value Author(s) Examples

Description

Convert haplotype states (1 - 15) to genotype states (1 - 9)

Usage

1
h.to.g(hap.states)

Arguments

hap.states

vector or matrix of haplotype states. Values should be integers from 1-9

Value

vector or matrix of same dimension as hap.states but with the corresponding genotypic states.

Author(s)

F L Grimson

Examples

1
2
3
4
5
## this example is taken from the package vignette.
##See vignette(IBDhaploRtools_tutorial)

data(trueibd_phased)
trueibd_unphased <- h.to.g( trueibd_phased )

IBDhaploRtools documentation built on May 2, 2019, 2:46 p.m.