Maximum transition run (MTR) codes are defined that enable quasicatastrophic error propagation to be avoided in Viterbi detectors matched to partial response channels with spectral nulls both at DC and at the Nyquist frequency. It is shown that the new class of MTR codes includes (0, G/I) codes as a subclass.