We describe a new tool, KATKA, that stores a phylogenetic tree such that later, given a pattern and an integer , it can quickly return the root of the smallest subtree of containing all the genomes in which the k-mer occurs, for . This is similar to KRAKEN's functionality but with given at query time instead of at construction time.