A machine-learning model computationally breaks down how segments of amino acid chains determine a protein's function, which could help researchers design and test new proteins for drug development or biological research.