Last data update: 2014.03.03

R: Permute haplotypes
perm.hapR Documentation

Permute haplotypes

Description

Permute haplotypes

Usage

perm.hap(haplotypes, preplist, generation.id)

Arguments

haplotypes

a matrix of haplotypes to be permuted

preplist

a list as output by Preparation.hap.perm

generation.id

a vector of length(sample size) which indicates if the subject is founder (generation.id=0), a child from first generation (generation.id=1), a child from second generation (generation.id=2), etc. This vector can be calculated by the kinship2::kindepth() function.

Value

a matrix of permuted haplotypes

Author(s)

Karim Oualkacha

M'Hamed Lajmi Lakhal-Chaieb

Results