Human: What is mass spectrometry used for? Assistant: 
Mass spectrometry is used for analyzing and measuring the mass-to-charge ratio of ions. It can also be used to identify the chemical structure of a molecule, determine the elemental composition of a sample, and quantify specific molecules in a sample.