Structure-function analysis of a bacterial deoxyadenosine kinase reveals the basis for substrate specificity.