Learn R Programming

ibdreg (version 0.3.8)

ibd.df.merlin: Create and return a data.frame with ibd data from merlin

Description

Create and return a dataframe of ped.id, person1.id, person2.id, and ibd information from merlin

Usage

ibd.df.merlin(ibd.dat)

Value

The returned data.frame, call it df, with the following elements:

ped.id

pedigree id

person1.id

person 1 of a relative pair

person2.id

person 2 identifier of a relative pair within a pedigree

post0

matrix objects that can be referenced from df. Each

post1

is a matrix with posterior ibd sharing probabilities for

post2

relative pairs (rows) at each chromosome position (columns)

Arguments

ibd.dat

data.frame with posterior IBD data from Merlin, with column names: FAMILY, ID1, ID2, MARKER