I am looking for R package that can reconstruct phase and output in single nucleotide polymorphism markers. I can see discussion on non R package - in previous posts but I could not find appropriate package to do in R.... .......
individual genotypes
A1A1 B1B1, A1A2 B1B2, A1A1 B2B2, A1A2 B1B2
potential haplotype alleles - hap1 (A1B1), hap2 (A1B2) ,
hap3 (A2B1), hap4 (A2B2)
individual haplotype genotype = hap1 / hap1, hap1 / hap4,
hap2 / hap 2, hap1 / hap4
---- depends upon phase ----
======
Here is small datafile
set.seed (14)
pool = sample (c("AA","AB", "BB"), 1000, replace = T)
mydf <- data.frame (M1= pool[1:100], M2= pool[101:200], M3= pool[201:300])
I tried hapassoc it do haplotype association but doesnot output the two haplotypes (haplotype reconstruction).