Analysis of mutational spectra