Learn R Programming

IBDhaploRtools (version 1.8)

ibdhap.make.true: ibdhap make true states

Description

This function reads ibd_haplo output of true (simulated) ibd states into an R matrix data structure. The true states are compared to the state calls.

Usage

ibdhap.make.true( true.filename )

Arguments

true.filename
The filename of the true pairwise ibd states from, for example, outfifteenibd.txt or outnineibd.txt

Value

An R matrix data structure with a column for each pairwise comparison in the input file. The pair names are thrown away.

Examples

Run this code

## For an existing file called "outfifteenibd.txt" use
## ibdhap.make.true( "outfifteenibd.txt" )

## An example of a data set already read into R is
## data( trueibd_phased )

Run the code above in your browser using DataLab