Direct observation of structure-function relationship in a nucleic acid–processing enzyme