bedashap: Convert Rbed object to binary haplotype format

Description Usage Arguments Value

View source: R/binary.R

Description

Convert an rbed object from plink's native file format into a haplotype-based binary matrix. This involves pseudo-phasing, where alleles are assigned at random to either of the two haplotypes.

Usage

1
bedashap(dat, ploidy = 2)

Arguments

dat

an rbed object as output by readbed

ploidy

the ploidy of the data. The only plausible value for plink format is 2.

Value

a "hapmatrix" object, which is a list containing:


danjlawson/pcapred documentation built on Oct. 7, 2021, 3:47 p.m.