AGENT SKILL

bio-proteomics-quantification

Quantifies protein abundance from mass spectrometry using label-free (LFQ/MaxLFQ, DIA fragment-level), isobaric (TMT/iTRAQ reporter ions, MS2 vs SPS-MS3), and metabolic (SILAC) approaches, including peptide-to-protein summarization (Tukey median polish, MaxLFQ, msqrob), sample-loading and IRS cross-plex normalization, and isotopic impurity correction. Use when turning peptide/PSM/reporter signal into a protein-by-sample abundance matrix for downstream analysis. Statistical testing of that matrix is differential-abundance; DIA quant mechanics and DIA-NN runs are dia-analysis; reading search-engine outputs is data-import; razor/shared-peptide group assignment is protein-inference.

License 许可
Apache-2.0
最近更新
2026-10-12
Stars
★ 2
Forks
0

01 前言 Front Matter

name
bio-proteomics-quantification
tool_type
mixed
description
Quantifies protein abundance from mass spectrometry using label-free (LFQ/MaxLFQ, DIA fragment-level), isobaric (TMT/iTRAQ reporter ions, MS2 vs SPS-MS3), and metabolic (SILAC) approaches, including peptide-to-protein summarization (Tukey median polish, MaxLFQ, msqrob), sample-loading and IRS cross-plex normalization, and isotopic impurity correction. Use when turning peptide/PSM/reporter signal into a protein-by-sample abundance matrix for downstream analysis. Statistical testing of that matrix is differential-abundance; DIA quant mechanics and DIA-NN runs are dia-analysis; reading search-engine outputs is data-import; razor/shared-peptide group assignment is protein-inference.
primary_tool
MSstats

02 资源文件 2

03 SKILL.md 正文

Version Compatibility

Reference examples tested with: MSstats 4.14.2, MSnbase 2.32.0, iq 2.0.1, numpy 2.5.3, pandas 3.0.5 (checked 2026-09-15)

Before using code patterns, verify installed versions match. If versions differ:

  • Python: pip show <package> then help(module.function) to check signatures
  • R: packageVersion('<pkg>') then ?function_name to verify parameters

If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.

Protein Quantification -- Reconstructing Protein Abundance from Ions Whose Physical Origin Dictates the Irreducible Error

"Quantify proteins from my mass spec data" -> Reconstruct a protein-by-sample abundance matrix from peptide/reporter ion signals, choosing a summarizer and normalizer that match where the signal physically came from -- because the measurement's physical origin sets an error that no normalization can remove.

  • R: MSstats::dataProcess() (Tukey median polish summarization) for label-free feature-to-protein
  • R: iq::maxLFQ() for MaxLFQ maximal peptide-ratio least-squares (normalize runs first; it does no delayed normalization)
  • R: MSnbase::quantify(reporters=TMT10) + purityCorrect() for isobaric reporter extraction
  • R/Python: sample-loading + IRS scaling to bridge TMT plexes; per-sample median centering for LFQ

Scope: this skill OWNS converting peptide/PSM/reporter signal into a normalized protein abundance matrix (LFQ, TMT/iTRAQ, SILAC; summarization; normalization; IRS). Statistical testing of the matrix -> differential-abundance. DIA quant mechanics and DIA-NN execution -> dia-analysis. Parsing MaxQuant/DIA-NN outputs -> data-import. Razor/shared-peptide group assignment -> protein-inference. OUT OF SCOPE: missing-value imputation and the downshift false-positive trap (modeled in differential-abundance), and absolute copy-number calibration beyond a one-line pointer. Research quantification must not be used to classify individual patients or choose treatment; route those questions to validated clinical assays.

The Single Most Important Modern Insight

  1. Every quant method answers "where does the signal physically come from?" differently, and that physical origin dictates the error structure no normalization can remove. LFQ measures MS1 precursor area (or DIA fragment area) in SEPARATE runs -> the irreducible error is run-to-run variation plus stochastic, left-censored (MNAR) missingness. Isobaric TMT/iTRAQ measures low-m/z reporter ions from CO-ISOLATED, co-eluting peptides in ONE spectrum -> the irreducible error is RATIO COMPRESSION toward 1:1, a PHYSICAL co-isolation effect (interloper reporters add roughly equally to every channel), attacked at the instrument by SPS-MS3 and never fully undone in software. SILAC measures a heavy/light MS1 pair in the SAME scan -> lowest per-ratio variance, but its irreducible vulnerabilities are incomplete labeling and Arg->Pro label scrambling, which bias every ratio and cannot be corrected post hoc because channels are combined before any MS (a correctly mixed sample carries no inherent mixing error). Teach the signal origin and every threshold and failure mode below follows from it.

  2. The peptide-to-protein SUMMARIZATION choice is the highest-leverage decision in the pipeline, and it is invisible in the output. In log space a peptide intensity is protein abundance + a peptide effect (ionization efficiency, flyability, missed cleavages, modifications) that spans orders of magnitude and is partly context-dependent, plus a run effect. Sum is dominated by the highest-flying peptide (dropout collapses it -> a fold change driven by detectability, not biology); mean is unbiased only if the detected peptide SET is identical across runs (it is not under MNAR); median discards relative-intensity information. Benchmarks confirm the quantification method is a dominant driver of which proteins are called differential (Lin 2022). Report the summarizer as prominently as the test, and run a sensitivity analysis across >=2 summarizers -- that is where the answer is most likely to move.

Tool Taxonomy

Tool / method Citation Mechanism / role When
MaxLFQ Cox 2014 delayed normalization + maximal shared-peptide log-ratio least-squares; peptide scale cancels in pairwise ratios label-free DDA/DIA relative quant across many samples
iq::maxLFQ() Cox 2014; Pham 2020 R implementation of MaxLFQ ratio extraction (no delayed normalization; give it run-normalized log2 input); call it, do NOT reimplement running MaxLFQ outside MaxQuant/DIA-NN
MSstats Tukey median polish Choi 2014 iteratively subtract peptide-medians + run-medians in log space; column effects = per-sample abundance; 50% breakdown robust label-free default summarizer
msqrob (peptide-level) Sticker 2020; Goeminne 2016 treats the peptide effect as a covariate not noise; ridge + empirical Bayes + Huber accuracy-critical small-n, unbalanced coverage (route OUT to differential-abundance)
iBAQ -- sum(peptide intensities) / number of theoretically observable tryptic peptides rank / order-of-magnitude within-sample abundance
Top3 / Hi3 Silva 2006 sum/avg of top-3 peptide intensities, calibrate with one spiked standard absolute amount, ~2 orders linear
Proteomic ruler Wisniewski 2014 histone signal as internal molar reference, no spike-in absolute copies/cell without standards
Spectral counting / NSAF Zybailov 2006 count PSMs per protein, divide by protein LENGTH then total largely OBSOLETE; niche AP-MS only
TMT/iTRAQ reporter Ting 2011; McAlister 2014 isobaric tag; reporter ratios at MS2 or SPS-MS3 high multiplexing, zero run-to-run variation within a plex
SILAC Ong 2002 heavy/light precursor pair co-elute in the SAME MS1 scan lowest-variance ratios, cell culture that can be labeled
DIA fragment-level Demichev 2020 MaxLFQ at the FRAGMENT level then roll up (route OUT to dia-analysis) low-missingness label-free cohorts

Decision Tree by Scenario

Scenario Recommended Why
Label-free DDA, MaxQuant evidence.txt MSstats::dataProcess (TMP) robust summarization, the workhorse; censored (AFT) imputation only with MBimpute = TRUE
Label-free, need MaxLFQ outside MaxQuant iq::maxLFQ() the real algorithm; median centering is NOT MaxLFQ
Label-free DIA matrix -> dia-analysis DIA-NN MaxLFQ at fragment level is owned there
TMT, accuracy critical SPS-MS3 acquisition + reporter extraction co-isolation rejected at the instrument; software cannot fully undo compression
TMT, single plex only MS2 reporters + sample-loading normalization within-plex ratios are stable
TMT, multiple plexes sample-loading THEN IRS bridge (Plubell 2017) absolute reporter intensities are NOT comparable across runs without a reference channel
SILAC ratios verify labeling efficiency + Arg->Pro first unchecked, both bias every ratio invisibly
Absolute copy number proteomic ruler or Top3 + standard iBAQ is within-sample rank only
AP-MS / affinity-enrichment pulldown do NOT median/SL/IRS-normalize; control subtraction (SAINT/CompPASS/CRAPome) an enrichment is not a balanced proteome; data-internal normalization erases the bait signal
Which summarizer? run >=2 (TMP and MaxLFQ) and compare this is the highest-leverage, invisible choice

Default when uncertain: label-free DDA -> MSstats::dataProcess with summaryMethod='TMP', normalization='equalizeMedians'; report the summarizer alongside results and sanity-check against iq::maxLFQ().

Label-Free Summarization and Normalization

Summarize peptides to proteins with MSstats

Goal: Turn MaxQuant feature-level evidence into a normalized protein-level abundance matrix.

Approach: Read the MaxQuant tables with quoting off (protein names contain apostrophes), reformat to MSstats input, then dataProcess applies median equalization and Tukey median polish (robust to outlier peptides, 50% breakdown). With MBimpute = FALSE there is no censored-value model; MBimpute = TRUE is MSstats' AFT imputation of censored features (the only censoring route in MSstats; groupComparison has none). Otherwise model missingness downstream (proDA/msqrob2 in differential-abundance).

library(MSstats)

# quote = '' and comment.char = '': MaxQuant text fields contain apostrophes (5'-nucleotidase); default
# quoting silently truncates the table with only an 'EOF within quoted string' warning
evidence <- read.table('evidence.txt', sep = '\t', header = TRUE, quote = '', comment.char = '')
protein_groups <- read.table('proteinGroups.txt', sep = '\t', header = TRUE, quote = '', comment.char = '')
stopifnot(nrow(evidence) == length(readLines('evidence.txt')) - 1)  # every data line was read

maxquant_input <- MaxQtoMSstatsFormat(
    evidence = evidence,
    proteinGroups = protein_groups,
    annotation = read.csv('annotation.csv')
)

# TMP = Tukey median polish. MBimpute = FALSE: no censoring model (censoredInt has no effect), and on/off
# proteins later come out of groupComparison as log2FC -Inf / issue 'oneConditionMissing'.
# MBimpute = TRUE is the AFT censored-imputation route (censoredInt = 'NA' marks NA intensities as censored).
processed <- dataProcess(maxquant_input, normalization = 'equalizeMedians',
                         summaryMethod = 'TMP', censoredInt = 'NA', MBimpute = FALSE)

protein_abundance <- processed$ProteinLevelData

Run the real MaxLFQ (not median centering)

Goal: Produce MaxLFQ protein intensities from a peptide quant matrix.

Approach: Call iq::maxLFQ(), which implements the Cox 2014 maximal peptide-ratio least-squares step. It does NOT perform delayed normalization, so run-level loading offsets pass straight into the estimates: median-normalize each run's peptide log2 intensities first. maxLFQ() takes ONE protein's matrix, so a whole table goes through preprocess -> create_protein_list -> create_protein_table. Per-sample median centering of the protein matrix shares only the name and silently gives a different answer.

library(iq)

# peptide_long: one row per peptide ion per run, RAW intensities (protein, ion, run, intensity)
norm <- preprocess(peptide_long, primary_id = 'protein', secondary_id = 'ion', sample_id = 'run',
                   intensity_col = 'intensity', median_normalization = TRUE, pdf_out = NULL)
protein_list  <- create_protein_list(norm)    # one run-normalized log2 matrix per protein
protein_table <- create_protein_table(protein_list, method = 'maxLFQ')
protein_matrix <- protein_table$estimate      # proteins x samples

# maxLFQ solves per-protein least squares only within CONNECTED sample sets; a non-empty annotation
# marks proteins whose samples split into groups that are NOT on one common scale
disconnected <- rownames(protein_matrix)[nzchar(protein_table$annotation)]

# one protein at a time: rows = peptide ions, columns = samples, values = RUN-NORMALIZED log2 intensities
result <- maxLFQ(protein_list[[1]])
# $estimate is an UNNAMED vector in the input column order; name it or samples silently transpose
protein_estimate <- setNames(result$estimate, colnames(protein_list[[1]]))

Median-center label-free intensities (a normalizer, not a summarizer)

Goal: Correct per-sample loading differences before testing.

Approach: Subtract each sample's median log2 intensity (corrects LOCATION only and cannot manufacture variance). It assumes most proteins are unchanged and changes are roughly symmetric: an up-heavy quantified set shifts every fold change, so check the median fold change of presumed-null proteins or normalize on a stable subset. Median centering normalizes; it does NOT summarize peptides to proteins.

import numpy as np
import pandas as pd

log_int = np.log2(intensities.replace(0, np.nan))    # MaxQuant writes 0 for missing; log2(0) = -inf
sample_medians = log_int.median(axis=0)
normalized = log_int - sample_medians + sample_medians.median()

Isobaric (TMT/iTRAQ) Quantification

Extract and impurity-correct reporter ions

Goal: Pull TMT reporter intensities from spectra and correct cross-channel isotope bleed.

Approach: Read spectra on disk, quantify the reporter region, then purityCorrect with a LOT-SPECIFIC impurity matrix from the reagent Certificate of Analysis. readMSnSet reads an already-quantified text matrix and does NOT extract reporters.

library(MSnbase)

raw <- readMSData('experiment.mzML', mode = 'onDisk')
# method='max' for centroided spectra; reporters=TMT10 defines the 126-131 reporter m/z.
# TMTpro 16plex uses reporters = TMT16 (126..134N); MSnbase 2.32.0 has no TMT18 set.
quant <- quantify(raw, reporters = TMT10, method = 'max')

# edit = FALSE: the default edit = TRUE calls edit(M) and blocks under Rscript / on a cluster.
# x = is a MANUFACTURER TEMPLATE and MSnbase ships templates only for x = 4, 6, 8, 10; any other x
# (TMTpro 16) falls through to an unnamed diag(x) and stops with "length of 'dimnames' [1] not equal
# to array extent". REPLACE with lot-specific Certificate of Analysis values -- for TMTpro the only route:
# imp <- makeImpuritiesMatrix(filename = 'lot_coa.csv', edit = FALSE)  # layout as MSnbase extdata
#   TMT6plexPurityCorrections.csv: one row per channel, one column per neighbour OFFSET
#   (-n/2..-1, +1..+n/2) in percent, so a 16plex CoA needs 16 offset columns
imp <- makeImpuritiesMatrix(x = 10, edit = FALSE)
quant <- purityCorrect(quant, imp)

Bridge multiple TMT plexes with IRS

Goal: Make reporter intensities comparable across separate TMT runs.

Approach: Absolute reporter intensities for the same protein differ 2-5x between plexes because each plex samples a random point on the elution profile. Sample-loading normalization fixes within-run loading; the Internal Reference Scaling bridge (Plubell 2017) then pins each plex's pooled reference channel to a common per-protein value. Order: SL, then IRS. A protein whose reference is 0 or missing in any plex cannot be bridged: mask and report it rather than letting it become Inf/NaN. Check the bridge on the NON-reference channels (IRS forces the reference channels equal by construction).

import numpy as np
import pandas as pd

# protein_psm_sums: protein x channel, summed PSM reporter ions; one reference channel per plex
def sample_loading_normalize(plex):
    target = plex.sum(axis=0).mean()    # common target = mean column sum within the plex
    return plex * (target / plex.sum(axis=0))

def irs_scale(plexes, ref_cols):
    refs = pd.concat([p[ref] for p, ref in zip(plexes, ref_cols)], axis=1)
    refs = refs.where(refs > 0)    # a 0 or missing reference cannot anchor the bridge
    unbridged = refs.index[refs.isna().any(axis=1)]
    if len(unbridged):
        print(f'IRS: {len(unbridged)} proteins lack a reference in >=1 plex; set to NaN: {list(unbridged[:10])}')
    geomean = np.exp(np.log(refs).mean(axis=1, skipna=False))    # per-protein geometric mean of references
    out = []
    for i, p in enumerate(plexes):
        factor = geomean / refs.iloc[:, i]    # per-protein per-plex scaling factor
        out.append(p.mul(factor, axis=0))
    return out

SILAC Quantification

Goal: Compute heavy/light ratios while preserving on/off biology and flagging label artifacts.

Approach: A protein present only in the heavy channel may be the interesting biology (or a detection-limit dropout), so do not discard it -- but keep it in a presence flag, not as +/-Inf inside the ratio matrix, where it turns pandas SDs into NaN and stops eBayes(trend=TRUE, robust=TRUE). Verify labeling efficiency (>=95%, target 97-98%) on a heavy-only pilot and assess Arg->Pro conversion before trusting any ratio -- both bias every ratio in the same direction, so neither shows up as extra scatter.

Check labeling efficiency and Arg->Pro first

import numpy as np, pandas as pd

def silac_labeling_efficiency(pilot, heavy='Intensity H', light='Intensity L'):
    '''Incorporation on a HEAVY-ONLY pilot (cells grown in heavy medium, NOTHING mixed in): every
    light ion there is unlabeled protein. pilot = the pilot's peptide table (MaxQuant evidence.txt).'''
    h = pd.to_numeric(pilot[heavy], errors='coerce').fillna(0.0)
    l = pd.to_numeric(pilot[light], errors='coerce').fillna(0.0)
    ok = (h + l) > 0
    if not ok.any():
        raise ValueError('no peptide has signal in either channel -- wrong columns or wrong file')
    per_pep = h[ok] / (h[ok] + l[ok])
    eff = float(h[ok].sum() / (h[ok] + l[ok]).sum())    # intensity-weighted = the number to report
    # A 1:1 forward mix of these cells does NOT read log2 H/L = 0: the unincorporated (1 - eff) of
    # the heavy sample is counted in the LIGHT channel, so H/L = eff / (2 - eff) -- -0.20 at 93%.
    return {'n_peptides': int(ok.sum()), 'incorporation': round(eff, 4),
            'median_peptide_incorporation': round(float(per_pep.median()), 4),
            'peptides_below_95pct': int((per_pep < 0.95).sum()),
            'expected_log2_HL_bias_at_1to1': round(float(np.log2(eff / (2 - eff))), 4),
            'pass_95pct': bool(eff >= 0.95)}

def arg_to_pro_shift(peptides, seq='Sequence', ratio='Ratio H/L'):
    '''Arg->Pro drains the heavy channel once per proline, so log2 H/L falls with PROLINE COUNT.
    The dose slope is what makes this specific -- a flat offset is incomplete labeling instead.
    Direct route: re-search the pilot with Pro6 variable and take I(Pro6)/(I(Pro6)+I(Pro0)).'''
    r = np.log2(pd.to_numeric(peptides[ratio], errors='coerce'))
    npro = peptides[seq].astype(str).str.count('P')
    ok = np.isfinite(r)
    r, npro = r[ok], npro[ok]
    slope = float(np.polyfit(npro, r, 1)[0]) if npro.nunique() > 1 else float('nan')
    return {'n_pro_free': int((npro == 0).sum()), 'n_pro_containing': int((npro > 0).sum()),
            'median_log2_HL_pro_free': round(float(r[npro == 0].median()), 4),
            'log2_HL_slope_per_proline': round(slope, 4),
            'conversion_per_proline': round(float(1 - 2 ** slope), 4)}

Ratios that keep on/off biology

import numpy as np

# Arg10/Lys8 is the common pairing (avoids overlap with the +6 isotope envelope)
SILAC_SHIFTS = {'Arg10': 10.008269, 'Lys8': 8.014199, 'Arg6': 6.020129, 'Lys6': 6.020129}

def silac_log2_ratio(heavy, light):
    '''Vectorized over arrays/Series: log2 H/L (NaN unless both channels quantified) plus a presence flag.'''
    heavy, light = np.asarray(heavy, dtype=float), np.asarray(light, dtype=float)
    h, l = heavy > 0, light > 0    # NaN compares False
    with np.errstate(divide='ignore', invalid='ignore'):
        ratio = np.where(h & l, np.log2(heavy / light), np.nan)
    presence = np.select([h & l, h, l], ['both', 'H-only', 'L-only'], default='none')    # report H-only/L-only separately
    return ratio, presence

AP-MS / Affinity-Enrichment Scoring

Goal: Rank prey in a pulldown by enrichment over NEGATIVE-CONTROL IPs, not by abundance or by ratio to the input lysate.

Approach: A pulldown is deliberately non-representative, so no data-internal normalization (median, sample-loading, IRS) applies, and the input lysate is not a control -- sticky background (ribosome, chaperones, tubulin, keratin) binds the beads in the pulldown and is diluted in the input, so "top N over input" returns background. The control IP is the only thing that separates a bead binder from an interactor. Require reproducible detection across bait replicates and enrichment over control, and floor absent controls at the run's detection limit so bait-only prey score finitely instead of +Inf.

import numpy as np, pandas as pd

def score_vs_control_ips(ip, bait_cols, ctrl_cols, fc_cutoff=2.0, min_bait_reps=None):
    '''ip: prey x replicate RAW intensities or spectral counts; 0/NaN = not detected. Prey never
    seen in any bait IP get a NaN enrichment (nothing was measured) and are never called.'''
    L = np.log2(ip[list(bait_cols) + list(ctrl_cols)].replace(0, np.nan).astype(float))
    if min_bait_reps is None:
        min_bait_reps = len(bait_cols)          # default: every bait replicate, reproducibility first
    n_bait, n_ctrl = L[bait_cols].notna().sum(axis=1), L[ctrl_cols].notna().sum(axis=1)
    Lf = L.copy()
    Lf[ctrl_cols] = Lf[ctrl_cols].fillna(L[ctrl_cols].min())      # per-control-run detection floor
    enrich = Lf[bait_cols].mean(axis=1) - Lf[ctrl_cols].mean(axis=1)
    worst = Lf[bait_cols].min(axis=1) - Lf[ctrl_cols].max(axis=1)  # weakest bait rep vs best control
    out = pd.DataFrame({'n_bait': n_bait, 'n_ctrl': n_ctrl,
                        'log2_enrichment': enrich, 'worst_case_log2': worst})
    out['interactor'] = (n_bait >= min_bait_reps) & ((n_ctrl == 0) | (enrich >= fc_cutoff))
    return out.sort_values('log2_enrichment', ascending=False)

This fold-change/presence score is the honest ceiling for ONE bait with a few controls. For a probability rather than a cutoff use SAINTexpress (spectral counts, interaction/prey/bait files -> AvgP, report BFDR <= 0.01-0.05) or CompPASS WD scores across a bait MATRIX; both need several independent baits, or the CRAPome as an external control set, before their statistics mean anything. Feed them counts or raw intensities -- never a median/SL/IRS-normalized matrix.

Per-Method Failure Modes

MaxLFQ reimplemented as median centering

Trigger: A homebrew function named maxlfq that only subtracts per-sample medians. Mechanism: Real MaxLFQ is delayed normalization plus a maximal peptide-ratio least-squares solve; median centering shares only the name. Symptom: Plausible-looking but systematically different intensities; unbalanced peptide sets handled wrongly. Fix: Call iq::maxLFQ() on run-normalized input, DIA-NN, or MaxQuant.

TMT ratio compression

Trigger: MS2-only reporter quant on a complex sample. Mechanism: Co-isolated interloper peptides add reporters roughly equally to every channel, pulling large true ratios toward 1:1; PHYSICAL, not removable by normalization. Symptom: "Nothing is significant"; attenuated fold changes, inflated false negatives. Fix: SPS-MS3 acquisition, narrower isolation windows, FAIMS/ion mobility, or complement-reporter methods; a PIF filter helps but MS1 purity underestimates true interference (Savitski 2013).

TMT plexes concatenated without IRS

Trigger: Stacking reporter intensities from multiple plexes directly. Mechanism: Absolute reporter intensities for one protein differ 2-5x across runs from random elution-profile sampling, unrelated to abundance. Symptom: Plex appears as the dominant axis of variation; spurious cross-plex differences. Fix: Include a pooled reference channel in EVERY plex; apply sample-loading then IRS (Plubell 2017).

Isotopic impurity matrix mis-applied

Trigger: Using the default/example impurity matrix, the wrong lot, or a transposed/mis-ordered (127N vs 127C) matrix. Mechanism: A few percent of each channel bleeds to +/-1 Da neighbors; wrong values mis-subtract, negative corrected intensities get clipped. In TMT10 order (126, 127N, 127C, ...) N and C channels interleave, so the 13C +1 Da neighbour of 126 is 127C, two positions away -- a CoA sheet laid out as adjacent columns is misplaced. Symptom: Adjacent channels silently biased; extreme contrasts placed in adjacent channels confounded. Fix: Use the lot-specific Certificate of Analysis values; randomize channel-to-condition assignment.

SILAC Arg->Pro conversion / incomplete labeling

Trigger: Pro-containing peptides or a labeling efficiency below ~95%. Mechanism: Cells convert heavy Arg to heavy Pro (+6 Da), splitting Pro-peptide signal and underestimating the heavy channel; residual light masquerades as down-regulation. Symptom: Ratios biased toward light, worse for Pro-rich proteins; invisible without a check. Fix: Proline supplementation, measure conversion per cell line, verify >=95% incorporation on a heavy-only pilot -- silac_labeling_efficiency and arg_to_pro_shift above compute both.

SILAC on/off proteins discarded as NaN

Trigger: Returning NaN whenever either channel is zero. Mechanism: A protein present only in heavy (or only light) is the interesting biology, thrown away. Symptom: Largest true changes silently dropped before analysis. Fix: Flag present-in-one-channel cases (H-only / L-only) in a separate column and report them as a presence table; do not put +/-Inf into the matrix handed to limma. Route honest absence handling to differential-abundance.

Spectral counting / NSAF used for fold changes

Trigger: Reaching for PSM counts for quantitative comparison. Mechanism: Count statistics are catastrophic at low abundance and saturate; dynamic exclusion deliberately breaks count-abundance proportionality. NSAF divides intensity by protein LENGTH then total -- a count divided by total spectra is not NSAF. Symptom: Noisy, biased estimates; the wrong normalization labeled NSAF. Fix: Use MS1/MS2 intensity (LFQ/DIA); keep spectral counting as historical context only.

AP-MS / enrichment pulldown normalized as a balanced proteome

Trigger: Median/sample-loading/IRS normalization applied to an affinity-purification or biotin-enrichment pulldown. Mechanism: Data-internal normalization assumes most signal is an unchanging background; a successful pulldown is deliberately non-representative (bait plus a few interactors over background), so equalizing medians or loading rescales away the enrichment being measured. Symptom: Real interactors flattened toward background; bait abundance dominates the axis of variation. Fix: Do not data-internal-normalize an enrichment; score against negative-control pulldowns with score_vs_control_ips above (SAINTexpress/CompPASS/CRAPome for a probability) or normalize to bait abundance.

Quantitative Thresholds

Threshold Source Rationale
MaxLFQ min. ratio count = 2 Cox 2014 (default) a single shared peptide gives a ratio with no outlier rejection; >=2 lets the median start rejecting interference; setting 1 admits unguarded single-peptide ratios
PIF >= 0.75 community filter rejects spectra with too much interloper signal; but MS1 purity UNDERESTIMATES true reporter interference (Savitski 2013), so PIF ~0.9 can still be compressed
TMT N/C reporter spacing = 6.3 mDa Thompson 2019 13C-vs-15N mass defect; needs high-res MS2 (>=30-50k) to resolve N from C channels
Reporter match tolerance ~0.002-0.003 Da -- tight enough to separate 6.3 mDa N/C channels at high resolution
SILAC labeling efficiency >= 95% (target 97-98%) -- residual light contaminates the heavy channel -> false down-regulation; needs ~5-6 doublings
Min peptides per protein for quant >= 2 -- single-peptide (one-hit) proteins are quant-unreliable
Top3 uses exactly the top 3 peptides Silva 2006 most intense peptides are most reproducibly detected, closest to uniform per-mole response

Common Errors

Error / symptom Cause Solution
readMSnSet does not extract reporters it reads an already-quantified text matrix use readMSData(mode='onDisk') then quantify(reporters=TMT10, method='max')
log2(0) = -inf in the matrix MaxQuant writes 0 for "not quantified" replace 0 -> NaN before any transform
Reading Intensity when ratios needed Intensity is raw, not normalized; iBAQ is within-sample only use LFQ intensity for between-sample LFQ ratios (see data-import)
Median centering called MaxLFQ homebrew shares only the name call iq::maxLFQ() / DIA-NN / MaxQuant
maxLFQ() returns 8 numbers with no sample names; columns end up scrambled $estimate is an unnamed vector in the input column order, and maxLFQ() handles ONE protein setNames(result$estimate, colnames(m)); for a whole table use preprocess -> create_protein_list -> create_protein_table
On/off proteins get log2FC = -Inf, issue = oneConditionMissing; no censored handling MBimpute=FALSE means no censoring model; MSstats' AFT exists only in dataProcess(MBimpute=TRUE) keep MBimpute=TRUE for the MSstats AFT route, or keep FALSE and model missingness with proDA/msqrob2 (differential-abundance)
EOF within quoted string and far fewer rows than the file default read.table quoting on MaxQuant tables with apostrophes read.table(..., quote = '', comment.char = '') or data.table::fread; check the row count
Script hangs at makeImpuritiesMatrix under Rscript default edit = TRUE opens an editor makeImpuritiesMatrix(x = 10, edit = FALSE) or filename = 'lot_coa.csv', edit = FALSE
makeImpuritiesMatrix(x = 16): length of 'dimnames' [1] not equal to array extent MSnbase templates exist only for x = 4, 6, 8, 10; TMTpro falls through to an unnamed diag(x) supply the lot CoA: makeImpuritiesMatrix(filename = 'lot_coa.csv', edit = FALSE) with 16 offset columns; quantify with reporters = TMT16 (there is no TMT18)
Whole plex rows become Inf/NaN after IRS reference channel 0 or missing for that protein mask references <= 0/NaN and report the unbridged proteins
eBayes: prior.weights contain NA values on SILAC ratios +/-Inf on/off codes inside the ratio matrix NaN ratio plus a presence flag column; drop rows with no finite ratio before lmFit
Cross-plex TMT comparison is invalid no reference channel / no IRS add a pooled reference channel per plex, apply SL then IRS
Every unchanged protein sits below 0 in log2 H/L incomplete heavy incorporation: the unlabeled (1 - e) fraction is counted as light measure e on a heavy-only pilot (silac_labeling_efficiency); a 1:1 mix then reads log2 H/L = log2(e / (2 - e)), -0.20 at e = 0.93
Pro-rich proteins look systematically down in SILAC Arg->Pro conversion, once per proline arg_to_pro_shift: a slope in log2 H/L per proline (a flat offset is labeling, not scrambling); supplement proline
AP-MS "top N by fold change over the input lysate" is all ribosome/chaperone/tubulin the input is not a negative control; bead background is enriched in the IP and diluted in the input score against control IPs (score_vs_control_ips) and require detection in every bait replicate
MSnbase deprecation warnings MSnbase is in maintenance mode current pipelines use Spectra + QFeatures (readQFeatures, aggregateFeatures)

References

  • Cox J, Hein MY, Luber CA, Paron I, Nagaraj N, Mann M. 2014. Accurate proteome-wide label-free quantification by delayed normalization and maximal peptide ratio extraction, termed MaxLFQ. Mol Cell Proteomics 13(9):2513-2526.
  • Silva JC, Gorenstein MV, Li GZ, Vissers JPC, Geromanos SJ. 2006. Absolute quantification of proteins by LCMSE: a virtue of parallel MS acquisition. Mol Cell Proteomics 5(1):144-156.
  • Wisniewski JR, Hein MY, Cox J, Mann M. 2014. A "proteomic ruler" for protein copy number and concentration estimation without spike-in standards. Mol Cell Proteomics 13(12):3497-3506.
  • Zybailov B, Mosley AL, Sardiu ME, et al. 2006. Statistical analysis of membrane proteome expression changes in Saccharomyces cerevisiae. J Proteome Res 5(9):2339-2347.
  • Ong SE, Blagoev B, Kratchmarova I, et al. 2002. Stable isotope labeling by amino acids in cell culture, SILAC, as a simple and accurate approach to expression proteomics. Mol Cell Proteomics 1(5):376-386.
  • Ting L, Rad R, Gygi SP, Haas W. 2011. MS3 eliminates ratio distortion in isobaric multiplexed quantitative proteomics. Nat Methods 8(11):937-940.
  • McAlister GC, Nusinow DP, Jedrychowski MP, Wuhr M, et al. 2014. MultiNotch MS3 enables accurate, sensitive, and multiplexed detection of differential expression across cancer cell line proteomes. Anal Chem 86(14):7150-7158.
  • Savitski MM, Mathieson T, Zinn N, et al. 2013. Measuring and managing ratio compression for accurate iTRAQ/TMT quantification. J Proteome Res 12(8):3586-3598.
  • Thompson A, Wolmer N, Koncarevic S, et al. 2019. TMTpro: design, synthesis, and initial evaluation of a proline-based isobaric 16-plex tandem mass tag reagent set. Anal Chem 91(24):15941-15950.
  • Plubell DL, Wilmarth PA, Zhao Y, et al. 2017. Extended multiplexing of tandem mass tags (TMT) labeling reveals age and high fat diet specific proteome changes in mouse epididymal adipose tissue. Mol Cell Proteomics 16(5):873-890.
  • Choi M, Chang CY, Clough T, et al. 2014. MSstats: an R package for statistical analysis of quantitative mass spectrometry-based proteomic experiments. Bioinformatics 30(17):2524-2526.
  • Goeminne LJE, Gevaert K, Clement L. 2016. Peptide-level robust ridge regression improves estimation, sensitivity, and specificity in data-dependent quantitative label-free shotgun proteomics. Mol Cell Proteomics 15(2):657-668.
  • Sticker A, Goeminne L, Martens L, Clement L. 2020. Robust summarization and inference in proteome-wide label-free quantification. Mol Cell Proteomics 19(7):1209-1219.
  • Demichev V, Messner CB, Vernardis SI, Lilley KS, Ralser M. 2020. DIA-NN: neural networks and interference correction enable deep proteome coverage in high throughput. Nat Methods 17(1):41-44.
  • Pham TV, Henneman AA, Jimenez CR. 2020. iq: an R package to estimate relative protein abundances from ion quantification in DIA-MS-based proteomics. Bioinformatics 36(8):2611-2613.
  • Ong SE, Mann M. 2006. A practical recipe for stable isotope labeling by amino acids in cell culture (SILAC). Nat Protoc 1(6):2650-2660. (Incorporation check and Arg->Pro.)
  • Sowa ME, Bennett EJ, Gygi SP, Harper JW. 2009. Defining the human deubiquitinating enzyme interaction landscape. Cell 138(2):389-403. (CompPASS.)
  • Teo G, Liu G, Zhang J, Nesvizhskii AI, Gingras AC, Choi H. 2014. SAINTexpress: improvements and additional features in Significance Analysis of INTeractome software. J Proteomics 100:37-43.
  • Mellacheruvu D, Wright Z, Couzens AL, et al. 2013. The CRAPome: a contaminant repository for affinity purification mass spectrometry data. Nat Methods 10(8):730-736.
  • Lin MH, Wu PS, Wong TH, Lin IY, Lin J, Cox J, Yu SH. 2022. Benchmarking differential expression, imputation and quantification methods for proteomics data. Brief Bioinform 23(3):bbac138.

Related Skills

  • data-import - Parse MaxQuant/DIA-NN outputs and pick the right intensity column before quantifying
  • protein-inference - Razor/shared-peptide group assignment that determines which protein a peptide counts toward
  • differential-abundance - Statistical testing, missing-value modeling, and the downshift false-positive trap
  • proteomics-qc - CV, correlation, and PCA checks that confirm normalization worked
  • dia-analysis - DIA fragment-level MaxLFQ and DIA-NN execution
  • differential-expression/de-results - Shared empirical-Bayes and FDR conventions for expression matrices
  • data-visualization/heatmaps-clustering - Visualize the normalized abundance matrix
  • workflows/proteomics-pipeline - End-to-end pipeline that calls this skill for the quant step

04 同仓库更多 Skills

mrsonord2240
mrsonord2240/openscience-specialists

bio-workflows-metabolomics-pipeline

Orchestrates the untargeted LC-MS metabolomics pipeline end-to-end (xcms 4.x feature extraction, QC/drift/normalization, confidence-stratified annotation, permutation-validated statistics, background-aware pathway mapping), naming what each stage decides and where it silently fails. Use when running a full LC-MS metabolomics study from raw mzML to enriched pathways and needing the honest handoffs between stages. Each stage defers to its component skill for parameters and traps; for stable-isotope flux (a separate branch, not this untargeted flow) see metabolomics/isotope-tracing.

★ 2
mrsonord2240
mrsonord2240/openscience-specialists

bio-metabolomics-xcms-preprocessing

Programmatic untargeted LC-MS feature extraction in R with the modern xcms 4.x MsExperiment/XcmsExperiment API, taking raw mzML to a feature table via CentWave peak detection, retention-time alignment, peak-density correspondence, gap-filling, CAMERA redundancy collapse, and built-in QC feature filtering. Use when converting centroided LC-MS runs into a features-by-samples matrix and deciding centWave/grouping/alignment parameters. For drift correction and QC/CV filtering execution see metabolomics/normalization-qc; for metabolite identification see metabolomics/metabolite-annotation; for the MS-DIAL GUI alternative with MS2Dec deconvolution see metabolomics/msdial-preprocessing; for downstream statistics see metabolomics/statistical-analysis.

★ 2
mrsonord2240
mrsonord2240/openscience-specialists

bio-metabolomics-statistical-analysis

Decision-grade statistical analysis for metabolomics intensity tables. Covers transformation and scaling (Pareto vs unit-variance as a hidden hypothesis), unsupervised structure (PCA/HCA for QC), permutation-validated PLS-DA/OPLS-DA (R2 vs Q2, double CV, VIP as heuristic), univariate testing (Welch/Mann-Whitney/ANOVA/LMM with covariate adjustment), and dependence-aware multiple testing. Use when testing which metabolites differ, building or validating a discriminant model, choosing a scaling, or correcting many correlated tests. For sample-wise normalization/drift correction see metabolomics/normalization-qc; for ML classifiers and selection-inside-CV leakage see machine-learning/biomarker-discovery and machine-learning/model-validation; for pathway interpretation see metabolomics/pathway-mapping; for design/power/multiplicity regime see experimental-design/multiple-testing.

★ 2
mrsonord2240
mrsonord2240/openscience-specialists

bio-metabolomics-pathway-mapping

Maps metabolomics results to biological pathways via over-representation (ORA), metabolite-set enrichment (MSEA/QEA), mummichog/PSEA on raw m/z peaks, and network-diffusion enrichment (FELLA), with correct background-set construction and honest interpretive ceilings. Use when interpreting differential metabolites or an untargeted LC-MS feature table in pathway context, choosing ORA vs MSEA vs mummichog vs topology, or setting the reference/background set. For annotation confidence levels feeding ORA see metabolomics/metabolite-annotation; for gene-set concepts see pathway-analysis/go-enrichment and pathway-analysis/gsea; for joint gene+metabolite pathways see multi-omics-integration/mofa-integration.

★ 2
mrsonord2240
mrsonord2240/openscience-specialists

bio-metabolomics-normalization-qc

Designs QC, corrects signal drift, removes batch effects, filters features, normalizes samples, and imputes missing values for untargeted LC-MS/GC-MS metabolomics, framing each step as a measurement model that can create or erase biological signal. Use when processing a peak/feature table before statistical analysis, choosing a drift-correction or sample-normalization method, deciding QC RSD vs D-ratio filtering, or handling left-censored missing values. The feature table is produced by metabolomics/xcms-preprocessing or metabolomics/msdial-preprocessing; transformation/scaling for modeling defers to metabolomics/statistical-analysis; cross-study design issues link to experimental-design/batch-design.

★ 2
mrsonord2240
mrsonord2240/openscience-specialists

bio-metabolomics-msdial-preprocessing

Runs the MS-DIAL preprocessing workflow (peak picking, MS2Dec spectral deconvolution, alignment, gap-filling) and imports the alignment-result table into R or Python with honest filtering. Use when preprocessing LC-MS DDA/DIA (SWATH) or GC-MS raw data with MS-DIAL, deciding MS-DIAL vs XCMS, configuring the MSDIALCUI console run, or parsing an MS-DIAL export into a clean feature matrix. For programmatic R peak detection and the feature-table-as-artifact framing see metabolomics/xcms-preprocessing; for lipid annotation mode see metabolomics/lipidomics; for MSI-level confidence honesty see metabolomics/metabolite-annotation; for drift correction and QC see metabolomics/normalization-qc.

★ 2