Mass spectrometry (MS) is an analytical technique that is used to measure the mass-to-charge ratio of ions.