A computational method for predicting the most likely evolutionary trajectories in the stepwise accumulation of resistance mutations.