Last data update: 2014.03.03

R: Create genotypes from haplotypes
Get.GR Documentation

Create genotypes from haplotypes

Description

Create genotypes from haplotypes

Usage

Get.G(haplotypes)

Arguments

haplotypes

Matrix of haplotypes (rows: individuals, columns: alleles)

Details

Given a matrix of haplotypes (with one allele per column), this function creates a matrix of genotypes by combining the alleles from odd and even columns into genotypes.

Value

Matrix of genotypes (rows: individuals, columns genotypes)

Author(s)

Karim Oualkacha

Results