Sequence-specific recognition of cytosine C5 and adenine N6 DNA methyltransferases requires different deformations of DNA.