Discovery of phylogenetic markers from whole-genome data