Machine learning for pangenomics