Methods Mol Biol. 2023;2590:127-138. doi: 10.1007/978-1-0716-2819-5_8.
WhatsHap is a command-line tool for phasing and phasing-related tasks. It allows to infer haplotypes in diploid and polyploid samples based on (preferably long) reads covering at least two heterozygous variants. It offers additional tools for working with phased variant calls such as computing statistics, comparing different phasings and assigning reads in alignment files to their haplotype.