DOI: 10.18129/B9.bioc.TargetDecoy  

This package is for version 3.16 of Bioconductor; for the stable, up-to-date release version, see TargetDecoy.

Diagnostic Plots to Evaluate the Target Decoy Approach

Bioconductor version: 3.16

A first step in the data analysis of Mass Spectrometry (MS) based proteomics data is to identify peptides and proteins. With this respect the huge number of experimental mass spectra typically have to be assigned to theoretical peptides derived from a sequence database. Search engines are used for this purpose. These tools compare each of the observed spectra to all candidate theoretical spectra derived from the sequence data base and calculate a score for each comparison. The observed spectrum is then assigned to the theoretical peptide with the best score, which is also referred to as the peptide to spectrum match (PSM). It is of course crucial for the downstream analysis to evaluate the quality of these matches. Therefore False Discovery Rate (FDR) control is used to return a reliable list PSMs. The FDR, however, requires a good characterisation of the score distribution of PSMs that are matched to the wrong peptide (bad target hits). In proteomics, the target decoy approach (TDA) is typically used for this purpose. The TDA method matches the spectra to a database of real (targets) and nonsense peptides (decoys). A popular approach to generate these decoys is to reverse the target database. Hence, all the PSMs that match to a decoy are known to be bad hits and the distribution of their scores are used to estimate the distribution of the bad scoring target PSMs. A crucial assumption of the TDA is that the decoy PSM hits have similar properties as bad target hits so that the decoy PSM scores are a good simulation of the target PSM scores. Users, however, typically do not evaluate these assumptions. To this end we developed TargetDecoy to generate diagnostic plots to evaluate the quality of the target decoy method.

Author: Elke Debrie [aut, cre], Lieven Clement [aut] , Milan Malfait [aut]

Maintainer: Elke Debrie <elkedebrie at>

Citation (from within R, enter citation("TargetDecoy")):


To install this package, start R (version "4.2") and enter:

if (!require("BiocManager", quietly = TRUE))


For older versions of R, please refer to the appropriate Bioconductor release.


To view documentation for the version of this package installed in your system, start R and enter:



HTML R Script Introduction to TargetDecoy
PDF   Reference Manual
Text   NEWS


biocViews MassSpectrometry, Proteomics, QualityControl, Software, Visualization
Version 1.4.0
In Bioconductor since BioC 3.14 (R-4.1) (1.5 years)
License Artistic-2.0
Depends R (>= 4.1)
Imports ggplot2, ggpubr, methods, miniUI, mzID, mzR, shiny, stats
Suggests BiocStyle, knitr, msdata, sessioninfo, rmarkdown, gridExtra, testthat (>= 3.0.0), covr
Depends On Me
Imports Me
Suggests Me
Links To Me
Build Report  

Package Archives

Follow Installation instructions to use this package in your R session.

Source Package TargetDecoy_1.4.0.tar.gz
Windows Binary
macOS Binary (x86_64) TargetDecoy_1.4.0.tgz
macOS Binary (arm64) TargetDecoy_1.4.0.tgz
Source Repository git clone
Source Repository (Developer Access) git clone
Bioc Package Browser
Package Short Url
Package Downloads Report Download Stats

Documentation »


R / CRAN packages and documentation

Support »

Please read the posting guide. Post questions about Bioconductor to one of the following locations: