hapiPhase: Phase draft haplotypes by majority voting

Description Usage Arguments Value Author(s) Examples

View source: R/draft.R

Description

Phase draft haplotypes by majority voting

Usage

1

Arguments

gmt

a dataframe of imputed genotype data of gamete cells

Value

a dataframe of inferred draft haplotypes

Author(s)

Ruidong Li

Examples

1
2
3
4
5
6
ref <- rep(0,500)
alt <- rep(1,500)
imputedFrame <- data.frame(gmt1=ref, gmt2=alt, gmt3=ref, 
gmt4=ref, gmt5=c(alt[1:250], ref[251:500]),
stringsAsFactors = FALSE)
draftHap <- hapiPhase(gmt=imputedFrame)

Hapi documentation built on May 2, 2019, 6:52 a.m.