Pipeline for identifying core SNPs and building a phylogenetic tree