Pangenome-based genome inference allows efficient and accurate genotyping across a wide spectrum of variant classes.