A mathematical framework for analyzing T cell receptor scanning of peptides.