Generate haplotypes from Phased genotype file by given region.

get_haplotype(geno, pos)

Arguments

geno

phase genotype and map file from 'prep_phased' function

pos

start and end position from 'closer_snp' function

Value

A list contain Sample with recoded Haplotype and Index of Haplotype and Recode ID