Learn R Programming

RVPedigree (version 0.0.3)

Preparation.hap.perm: Prepare for the haplotype permutation

Description

This functions prepares for running the perm.hap function. The output of this function can be passed to that one.

Usage

Preparation.hap.perm(pedigree, generation.id, indices.haplotypes1, indices.haplotypes2)

Arguments

pedigree
data frame with pedigree information in linkage format (four columns: family ID, individual ID, father ID, mother ID). For example the first for columns of a Plink .ped file or a Plink .bim file.
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 list of vectors with indices of various parts of the pedigree.

See Also

read.pedigree