Proteomics

How to Analyze Mass Spectrometry Data — A Complete Beginner's Guide

Step-by-step guide to analyzing mass spectrometry data for proteomics. Learn about raw data processing, database searching, quantification, and statistical analysis.

·10 min read
#mass spectrometry#data analysis#proteomics#MaxQuant#tutorial

Mass spectrometry instrument in a proteomics laboratory

Introduction

You've just finished running your proteomics experiment. The mass spectrometer has generated gigabytes of raw data files. Now what? Analyzing mass spectrometry (MS) data can feel overwhelming for beginners, but it follows a logical workflow that, once understood, becomes second nature.

This guide walks you through the complete MS data analysis pipeline, from raw files to biological insights, with practical advice on software, parameters, and common pitfalls.

Updated October 2026. This page is now the entry point to the hands-on posts on this site. Wherever a step has been run on real data here, the section links to it, and the worked example near the end uses numbers from those runs instead of generic advice.

Understanding Your Raw Data

What's in a Raw File?

Mass spectrometry raw files contain thousands to hundreds of thousands of mass spectra. Each spectrum is essentially a plot of signal intensity versus mass-to-charge ratio (m/z). There are two main types:

  • MS1 (Survey Scans): Show all peptide ions detected at a given time point. Think of this as an aerial photo of a crowded city — you can see everything but can't identify individuals.
  • MS2 (Fragmentation Scans): Show the fragment ions of a selected peptide. This is like zooming in on one person and checking their ID.

Raw File Formats

Different instrument vendors use different file formats:

  • Thermo: .raw
  • Bruker: .d (folder)
  • Sciex: .wiff
  • Waters: .raw (folder)
  • Agilent: .d

Most analysis software can read these directly, or you can convert them to open formats like mzML using tools like msconvert from ProteoWizard.

Step 1: Quality Control

Before diving into analysis, always check your data quality:

Run QC Metrics

  • Total ion chromatogram (TIC): Should show a smooth, consistent profile across your LC gradient
  • Number of MS2 scans: Low numbers may indicate instrument issues
  • Peptide identification rate: MaxQuant's summary.txt reports it as "MS/MS identified [%]". It depends heavily on instrument, method and sample, so compare runs within a project. In my six-run Orbitrap HF-X benchmark it was 29–30% per run
  • Mass accuracy: Should be within the expected range for your instrument (typically < 5 ppm for Orbitrap)

Tools for QC

  • rawrr (R/Bioconductor): read and plot Thermo raw files directly
  • QCloud: Automated quality control for proteomics core facilities
  • PTXQC: R package that generates QC reports from MaxQuant output

Step 2: Database Searching

The core of MS data analysis is database searching — matching your experimental spectra against theoretical spectra predicted from a protein sequence database.

How Database Searching Works

  1. You provide a protein database (usually from UniProt)
  2. The software performs an in silico digestion of all proteins using the same enzyme you used experimentally (typically trypsin)
  3. For each experimental MS2 spectrum, the software finds the best-matching theoretical spectrum
  4. A score reflects how well the experimental and theoretical spectra match
  5. False Discovery Rate (FDR) is calculated using a decoy database (reversed or shuffled sequences)

Choosing Your Search Engine

SoftwareSpeedBest ForCost
MaxQuant/AndromedaModerateDDA, label-free, SILACFree
MSFraggerVery fastLarge datasets, open searchesFree
CometFastGeneral-purpose DDAFree
SEQUESTModerateThermo instrumentsCommercial
MascotModerateEstablished labsCommercial

Critical Search Parameters

Setting the right parameters is crucial:

  • Enzyme: Trypsin/P (most common), with up to 2 missed cleavages
  • Fixed modifications: Carbamidomethylation of cysteine (if you used iodoacetamide)
  • Variable modifications: Oxidation of methionine, N-terminal acetylation
  • Mass tolerance: 10-20 ppm for MS1, 0.02-0.05 Da for high-resolution MS2
  • FDR threshold: 1% at both peptide and protein levels (standard in the field)

The FASTA Database

Your search database should include:

  • The proteome of your organism (e.g., human: ~20,400 reviewed entries from UniProt)
  • Common contaminants (keratins, trypsin, BSA) — MaxQuant includes a contaminant database automatically
  • Decoy sequences for FDR calculation (usually generated automatically)

Pro tip: Using too large a database reduces sensitivity. Stick to the relevant organism's reviewed (Swiss-Prot) proteome unless you have a specific reason to include TrEMBL entries.

Step 3: Quantification

After identifying proteins, you need to quantify them. The method depends on your experimental design:

Label-Free Quantification (LFQ)

The simplest approach — no special reagents needed:

  • Intensity-based: Uses the sum of peptide intensities
  • Spectral counting: Counts the number of MS2 spectra per protein
  • MaxLFQ: MaxQuant's algorithm that provides accurate, normalized protein intensities

Labeling-Based Quantification

  • TMT/iTRAQ: Chemical labels allow multiplexing samples in one run (iTRAQ 4/8-plex, TMTpro commonly up to 18-plex, with larger sets available)
  • SILAC: Metabolic labeling with heavy amino acids (best for cell culture)
  • dimethyl labeling: Cost-effective chemical labeling (2-3 plex)

DIA Quantification

For DIA data, tools like DIA-NN or Spectronaut extract ion chromatograms from the comprehensive MS2 data:

  • Typically provides more complete quantification with fewer missing values
  • Requires either a spectral library or library-free prediction approach
  • Generally offers better reproducibility than DDA

Step 4: Statistical Analysis

Raw protein intensities need statistical processing before you can draw biological conclusions.

Normalization

  • Median normalization: Adjusts for systematic differences in total protein loading
  • Quantile normalization: Makes intensity distributions identical across samples
  • Variance Stabilization Normalization (VSN): Particularly good for mass spectrometry data

Missing Value Handling

Missing values are a major challenge in proteomics. Common approaches:

  • Filtering: Remove proteins with too many missing values (e.g., require values in at least 70% of samples per group)

  • Imputation: Replace missing values using methods like:

    • MinProb / MinDet (left-censored, for values missing because they are low)
    • Perseus' "replace from normal distribution" (down-shifted normal, similar idea)
    • KNN (k-nearest neighbors; only for values missing at random)
    • QRILC (quantile regression)

    On a known-answer benchmark, kNN wiped out a real 4-fold change and a strict valid-value filter made imputation almost unnecessary: six imputation methods, measured.

Differential Expression Analysis

To find proteins that change between conditions:

  • t-test (two groups) or ANOVA (multiple groups) with multiple testing correction (Benjamini-Hochberg)
  • limma (R package): Empirical Bayes moderated t-test. At n = 3 per group it found 98% of the truly changed proteins in my benchmark, against 56% for a plain t-test (limma vs DEqMS, measured)
  • Perseus: User-friendly platform for statistical analysis of proteomics data

Visualization

Key plots for proteomics data:

  • Volcano plot: Shows fold change vs. statistical significance
  • Heatmap: Displays protein expression patterns across samples
  • PCA plot: Reveals overall sample clustering and outliers
  • Correlation matrix: Assesses reproducibility between replicates

Step 5: Biological Interpretation

Pathway and Gene Ontology Analysis

  • Gene Ontology (GO) enrichment: Identifies overrepresented biological processes, molecular functions, or cellular components
  • KEGG pathway analysis: Maps proteins to metabolic and signaling pathways
  • Reactome: Curated pathway database with excellent visualization

Network Analysis

  • STRING: Predicts protein-protein interactions
  • Cytoscape: Visualizes interaction networks
  • ClueGO: Cytoscape plugin for GO/pathway visualization

Integration with Other Omics

For the fullest picture, integrate proteomics with:

A Worked Example on Real Data

Every step below was run on the same public benchmark (PXD028735: six Orbitrap DDA runs, three each of two mixtures of human, yeast and E. coli proteins with known ratios), so each result could be checked against the right answer.

1. Search and quantify
   - MaxQuant 2.8.1: 61.6 min for 6 runs on 16 threads (52.0 min without match-between-runs)
   - FragPipe 24 on the same runs: 8.9 min (+4.0 min raw -> mzML)
   - UniProt Swiss-Prot human + yeast + E. coli, MaxQuant's contaminants
   - Trypsin/P, 2 missed cleavages; Carbamidomethyl (C) fixed; Oxidation (M), Acetyl (Protein N-term) variable
   - LFQ on, match-between-runs on
2. Filter proteinGroups.txt
   - Decoy (called Reverse before 2.8) / Potential contaminant / Only identified by site
   - 5,785 -> 5,628 protein groups
3. Valid values, log2, test
   - Strict filter: >= 2 of 3 in each group, no imputation; limma
4. Check against the truth
   - at adj. p < 0.05 and |log2FC| >= 0.5, limma called 958 of the 1,039 truly changed proteins (92%)
     and 13 unchanged human ones (1.3% false discoveries)

Each step has its own post with the details and code:

If you use Perseus instead of R: its imputation is "replace missing values from normal distribution" (width 0.3, down-shift 1.8 by default), and its volcano plot uses a permutation-based FDR with an S0 parameter, which is a different procedure from Benjamini-Hochberg correction. Report which one you used.

Common Mistakes to Avoid

  1. Not using contaminant databases: Keratins from skin contamination can dominate your results
  2. Ignoring missing values: Simply removing all proteins with any missing values is too aggressive
  3. No multiple testing correction: Without it, you'll have many false positives
  4. Using the wrong database: Make sure your FASTA matches your organism and is up to date
  5. Skipping QC: A failed LC run can ruin your entire dataset
  6. Over-interpreting single experiments: Always validate key findings with biological replicates (minimum n=3)
  • MaxQuant Summer School: run periodically by the Cox lab (maxquant.org)
  • Bioconductor proteomics workflows: Excellent R-based tutorials
  • Nature Protocols: Published step-by-step proteomics analysis guides

Conclusion

Analyzing mass spectrometry data follows a clear pipeline: quality control → database searching → quantification → statistical analysis → biological interpretation. While the details can be complex, the fundamental logic is straightforward.

Start with well-established tools like MaxQuant and Perseus for DDA data, or DIA-NN for DIA data. Focus on understanding the principles behind each step rather than just clicking buttons. And always, always include proper quality control and statistical rigor.

The proteomics community is welcoming and collaborative. Don't hesitate to reach out on forums like the MaxQuant Google Group or the Proteomics subreddit when you get stuck.


Related