generateG: Transfer ped file to genotype matrix

Description Usage Arguments Value

Description

This function can be used to transfer a ped file to g matrix

Usage

1
generateG(rawped)

Arguments

rawped

A data.frame. Standard ped format. Genotype should be transferred to 1,2,3,4 from A,C,G,T. 0 represents missing. '-','_','I','D' should be replaced by 0 by yourself.

Value

genotype matrix


radmixture documentation built on May 2, 2019, 6:11 a.m.