Quality control for bottom-up proteomics framed as a three-level funnel: instrument/raw-signal QC (mass accuracy, RT/iRT fit, FWHM, TIC vs injection time, % MS2 identified), identification/run QC (missed cleavages, charge states, sample-handling PTM artifacts, contaminants), and experiment/quantitative QC (replicate correlation on log2, CV on the linear scale, completeness, missingness mechanism, PCA/batch, TMT channel balance, DIA q-values). The deliverable matrix is the LAST place a fault becomes visible, so the agent inspects raw signal and removes contaminants BEFORE normalizing, because median normalization erases loading failures.
pip install numpy pandas scipy scikit-learn matplotlib seaborn
# R packages: install.packages('PTXQC') # PTXQC is on CRAN, NOT Bioconductor
# BiocManager::install(c('limma', 'MSstatsTMT'))
Tell your AI agent what you want to do: - "Plot raw per-sample boxplots and ID counts before I normalize, and flag loading failures" - "Strip MaxQuant contaminant and decoy rows before log-transform and normalization" - "Compute replicate correlation on log2 and CV on the linear scale, then run PCA colored by batch" - "Diagnose whether my missing values are MNAR or MCAR before I pick an imputer"
"Show raw, un-normalized boxplots per sample with ID counts and total signal, and flag any sample shifted more than 2-3x below its group"
"Remove rows flagged Potential contaminant, Reverse, or Only identified by site from my MaxQuant proteinGroups before I normalize"
"What fraction of summed intensity is keratin and trypsin, and is it higher in my low-input samples?"
"Calculate within-group Pearson correlation on log2 intensities and tell me if any sample correlates better with a different group"
"Compute median CV per condition on the linear scale, not on log data"
"Are my technical replicates above r 0.98 and is the biological CV in the 20-40% range?"
"Plot present-fraction versus abundance to decide if missingness is MNAR or MCAR"
"Filter to proteins valid in at least 70% of replicates in one condition before imputing"
"Which imputation method matches my missingness mechanism, and why would the wrong one corrupt my results?"
"Run PCA on the normalized survivors and test whether PC1 or PC2 associates with batch rather than condition"
"Is batch the dominant axis of variance, and should I correct it before differential testing?"
"Check TMT channel-loading balance on raw reporter intensities and flag any channel deviating more than 2x"
"How many protein groups pass at 1% global q-value, and why is precursor q not enough?"