Target-Decoy FDR in Peptide Mass Spectrometry (2D)
2D time-of-flight mass spectrometer: peptide ions separate by m/z in flight, hit a detector spectrum, and get scored against a target-decoy database so you can tune the FDR threshold and watch false discoveries slip through in real time.
Every peptide identification made by a modern mass spectrometer is a statistical bet, not a certainty. This 2D simulator draws a real time-of-flight flight tube in cross-section: peptide ions launched together separate in space as they drift because lighter m/z ions travel faster (v = sqrt(2zeV/m)), exactly as in a real TOF instrument, then land on a detector spectrum binned by mass. Each ion is secretly a target (real peptide) or a decoy (reversed-sequence null hit) with a database search score drawn from overlapping distributions, and a live target-decoy FDR estimator computes the score cutoff for your chosen false-discovery-rate threshold, coloring each detector bar green (true identification), red (false identification that slipped through) or gray (correctly rejected). A third panel plots the live target vs. decoy score histograms so you can see the overlap the FDR estimate is built from. Switching between DDA and DIA acquisition modes changes both the ion throughput and how much the target and decoy score distributions overlap, showing directly why DIA's extra coverage comes with a harder identification problem.
A 2D time-of-flight mass spectrometer where peptide ions separate by m/z in flight and land on a detector spectrum scored against a target-decoy database, with a live score-distribution panel showing the target/decoy overlap behind the false-discovery-rate estimate.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install