Anchored alignments for phylogenetic footprinting