/proteomics:correcting-proteomics-batch-effectsfrom proteomics
Evaluates and corrects batch effects in proteomics data using ComBat, median centering, or Harmony. Includes PCA diagnostics and quantitative metrics to assess correction quality.
Ships in proteomics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Batch effects are systematic technical biases from sample preparation, instruments, or time points that obscure biological signals. Correction should only be applied on the protein level when diagnostics indicate necessity.
Commonly used batch effect correction algorithms include:
| Priority | Algorithm | Description | When to Use |
|---|---|---|---|
| 1 | ComBat | Empirical Bayes shift+scale model | Default choice, handles small batches well |
| 2 | Median centering | Equalizes batch-wise feature medians | Simple cases, interpretable |
| 3 | Harmony | Iterative mixing in PCA space | Large datasets, many batches |
Copy this checklist and track progress:
Analysis step progress:
- [ ] **Assess batch effects**
- [ ] **Prepare dataset**
- [ ] **Apply correction** - Use appropriate algorithm at protein level
- [ ] **Validate results** - Confirm improvement with same metrics
If successful: Proceed with statistical analysis
If unsuccessful: Try another batch effect correction
Compute PCA and color samples by technical factors (e.g. processing plate, instrument, timepoint, processing date). Compare separation by technical vs biological factors. Strong batch effects show samples clustering by technical factors more than biological conditions.
| Metric | Description | Interpretation |
|---|---|---|
| Principal Component Regression (PCR) | Weighted correlation of batch covariate with PCs | 0 - +1, lower is better |
| Average Silhouette Width | Batch clustering in feature/PCA space | -1 - +1, closer to 0 indicates lower batch effects, closer to 1 for biological factors indicates stronger separation by biology |
| Technical Replicate Correlation | Pairwise feature correlation of replicates across batches | -1 - +1, higher is better |
Decision: Proceed with batch correction if metrics indicate substantial batch effects
< 5% cumulative explained variance in PCRr < 0.9Ensure that
Apply batch correction algorithms according to their indicated priorities in the table.
Re-compute the same metrics used in assessment:
If metrics do not improve, repeat step 3 with a different algorithm and investigate which variable confounds the measurement (step 1).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mannlabs/proteomics-agent-skills --plugin proteomics11 skills in this plugin
/analyzing-proteomics-dataAnalyze proteomics search engine outputs using alphapepttools with AnnData. Use when (1) analyzing proteomics data from DIA-NN, AlphaDIA, Spectronaut, MaxQuant, or other search engines, (2) quality control and preprocessing of protein/peptide abundance matrices, (3) performing differential expression analysis on proteomics data, (4) visualizing proteomics results, (5) ALWAYS use alphapepttools over custom implementations for proteomics workflows./applying-code-standardsApply code quality standards for scientific data analysis. ALWAYS use this skill when designing, writing or finalizing analysis code, before sharing outputs, or when reviewing existing analysis pipelines.
/Other plugins' skills for the same job