The purpose of motrpac-cpet-ramp-protocol is to present code used in the development and evaluation of a model predicting the most appropriate ramp protocol for an individual’s cardiopulmonary exercise test (CPET) in The Molecular Transducers of Physical Activity Consortium (MoTrPAC) study.