Learn R Programming

Hapi (version 0.0.3)

hapiPhase: Phase draft haplotypes by majority voting

Description

Phase draft haplotypes by majority voting

Usage

hapiPhase(gmt)

Arguments

gmt

a dataframe of imputed genotype data of gamete cells

Value

a dataframe of inferred draft haplotypes

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab