No retraction, correction or concern found when last checked on Oct 25, 2026.
iq : an R package to estimate relative protein abundances from ion quantification in DIA-MS-based proteomics
Thang V Pham, Alex A Henneman, Connie R Jimenez
Bioinformatics · 2020 · CC BY
doi:10.1093/bioinformatics/btz961
Abstract
Summary. We present an R package called iq to enable accurate protein quantification for label-free data-independent acquisition (DIA) mass spectrometry-based proteomics, a recently developed global approach with superior quantitative consistency. We implement the popular maximal peptide ratio extraction module of the MaxLFQ algorithm, so far only applicable to data-dependent acquisition mode using the software suite MaxQuant. Moreover, our implementation shows, for each protein separately, the validity of quantification over all samples. Hence, iq exports a state-of-the-art protein quantification algorithm to the emerging DIA mode in an open-source implementation.
Availability and implementation. The open-source R package is available on CRAN, https://github.com/tvpham/iq/releases and oncoproteomics.nl/iq.
Supplementary information. Supplementary data are available at Bioinformatics online.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 25, 2026. Paragraph numbers are ours, so an answer can point at one.
1 Introduction
The data-independent acquisition (DIA) approach in mass spectrometry (MS)-based proteomics has emerged as a promising alternative to data-dependent acquisition (DDA) because of its ability to provide a more complete data matrix by combining unbiased, broad range precursor ion fragmentation and targeted data extraction. Since in both approaches, protein abundances are derived from multiple partial intensities, peptide precursor and peptide fragment intensities in DDA and DIA, respectively, it is desirable to extend advanced DDA quantification methods and insights to DIA data, which possesses the largest degree of multiplicity.
Existing methods to estimate protein abundances for DIA data include the so-called topN approach where the top N most intense ions are aggregated, either by summation or averaging, as they tend to be more robust than less intense ions. The MeanInt approach averages all extracted ion intensities. Another method is the median polish algorithm, available as part of the standard R distribution and employed by the package MSstats. For DDA data, the MaxLFQ algorithm elegantly combines multiple peptide ratios to derive optimal protein ratios between pairs of samples, which is widely used as part of the closed source MaxQuant software package. In this note, we present an open-source implementation of the MaxLFQ maximal peptide ratio extraction algorithm for protein quantification in a DIA data processing pipeline called iq, short for ion-based protein quantification.
2 Implementation
The analysis starts with a long-format data table as exported by Spectronaut version 13.0. The default columns include a primary protein identification column PG.ProteinGroups, secondary columns EG.ModifiedSequence, FG.Charge, F.FrgIon, F.Charge and quantitative values in F.PeakArea. By preparing the input data appropriately, we can use iq to accommodate other proteomic data extraction pipelines [see Supplementary Material for examples of processing MaxQuant and OpenSWATH outputs].
Figure 1 outlines three main steps in iq. First, unique values in the primary column form the list of proteins and a concatenation of the secondary columns determines the fragments used to quantify individual proteins. We provide an option for median normalization of all observed intensities and visualization for quality control.
Second, we enumerate a list of matrices of log2-transformed intensities for all proteins. Let X be an observed data matrix for a particular protein with n columns for samples and m rows for quantified fragment ions. The matrix X may have missing values. The aim is to estimate an n-vector x for relative protein abundance across all samples.
The MaxLFQ algorithm obtains x by minimizing the sum of squared differences between the estimated pairwise sample ratio and the median of the observed ratios where is the median of all pairwise fragment intensity ratios observed between sample i and j (here differences in log-space). For each fragment, all intensity ratios without missing values are valid pairs.
Third, we solve the above minimization problem as follows. We populate a matrix A of size p × n and a p-element vector b where p is the number of valid pairs, and each row of A contains all zeroes except for two entries with value of −1 and +1 corresponding to the sample ratio in b. The minimization of (1) becomes an equality constrained least squares where 1 is an n-vector of ones and c is a scaling constant to preserve the average sum intensity. It can be shown that x is part of a solution of the system of linear equations where z is an auxiliary variable. We employ the R function lsfit to estimate x.
Note that (2) has a unique solution when the square matrix on the left hand side is invertible. A close examination shows that is the Laplacian matrix of the sample graph whose nodes are the n samples, and two nodes are directly connected if there is at least a valid sample pair between them. If is connected, that is there is a path connecting any two nodes, it can be shown that (2) has a unique solution. This is not the case when is not connected. Therefore, we implement a recursive spreading algorithm to detect connected components of. Subsequently, the MaxLFQ algorithm is applied to each connected component. In principle, only samples within a connected component can be compared in downstream analysis due to factors such as different ionization efficiency of different protein fragments. An example is illustrated in Supplementary Figure S7. In short, we have specified the condition under which the algorithm will lead to a valid relative quantification.
Finally, we also implement the topN method, the MeanInt method, and provide a wrapper for the median polish method in iq. The package is without any dependency on external R packages.
3 Example
We analyze a publicly available dataset used in a benchmark experiment for label-free DDA and DIA proteomics. The dataset for each mode of data acquisition contains 24 runs of 8 biological replicates and 3 technical replicates, in which 12 proteins were spiked in at different concentrations. MaxQuant version 1.6.4.0 is used to process the DDA data, and Spectronaut version 13.0 is used for DIA data. The result of the MaxQuant DDA search is used as a spectral library in the DIA analysis. We use the default Spectronaut long format export with an addition of the columns: F.ExcludedFromQuantification, F.FrgLossType, F.FrgIon, F.Charge and F.PeakArea. An R script to process the Spectronaut output is as follows:
Briefly, the first two statements load the data into R and remove entries not used for quantification. The next four statements load the iq package and perform quantification in three steps as described in Section 2. The last statement exports the result to a text file. Protein quantitative visualization used in Figure 1 is created by a function call iq::plot_protein(protein_list$P00366). In the Supplementary Material, we show that the MaxLFQ algorithm compares favorably with other methods in terms of both correlation to the ground-truth values for the 12 spike-in proteins and the stability of background proteins.
4 Conclusion
The R package iq contains an open-source implementation of the maximal peptide ratio extraction module of MaxLFQ algorithm in a complete pipeline for processing proteomics DIA data. It offers an additional option for protein quantification next to the topN and the median polish approach, while being a direct implementation of a popular algorithm for DDA analysis. We show that optimal relative protein quantification is achieved for comparisons involving the same peptide components.
References 7
- 1.
Ahrné E. et al (2013 ) Critical assessment of proteome-wide label-free absolute abundance estimation strategies. Proteomics, 13, 2567–2578.
Not in our library10.1002/pmic.201300135
- 2.
- 3.
Choi M. et al (2014 ) MSstats: an R package for statistical analysis of quantitative mass spectrometry-based proteomic experiments. Bioinformatics, 30, 2524–2526.
Not in our library10.1093/bioinformatics/btu305
- 4.
- 5.
Gillet L.C. et al (2012 ) Targeted data extraction of the MS/MS spectra generated by data-independent acquisition: a new concept for consistent and accurate proteome analysis. Mol. Cell Proteomics, 11, O111.016717.
Not in our library10.1074/mcp.o111.016717
- 6.
Röst H.L. et al (2014 ) OpenSWATH enables automated, targeted analysis of data-independent acquisition MS data. Nat. Biotechnol., 32, 219–223.
Not in our library10.1038/nbt.2841
- 7.
Tukey J.W. (1977 ) Exploratory Data Analysis. Addison-Wesley, Reading, MA.
Not in our library
Cited by papers we hold 5
- Ultra-fast label-free quantification and comprehensive proteome coverage with narrow-window data-independent acquisition · 2024No notice
- Analysis of DIA proteomics data using MSFragger-DIA and FragPipe computational platform · 2023No notice
- Spatial single-cell mass spectrometry defines zonation of the hepatocyte proteome · 2023No notice
- The GAPDH redox switch safeguards reductive capacity and enables survival of stressed tumour cells · 2023No notice
- Benchmarking commonly used software suites and analysis workflows for DIA proteomics and phosphoproteomics · 2023No notice
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.