N.H. and H.L. designed the algorithm, implemented longcallR and drafted the paper. N.H. conducted the performance evaluation of longcallR for SNP calling, haplotype phasing and allele-specific analysis. The HPRC provided the 202 MAS-seq human sample data.