Skip to content
Data
Skill

/proteomics-de

Differential expression analysis for label-free quantitative (LFQ) intensity data with standard MaxQuant and

From plugin
clawbio
1.1k97 skills4 commands
Install
$ npx -y skills add ClawBio/ClawBio --skill proteomics-de --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition โ†’
  • You can call itInvoke it directly when you want it.
  • Slash command/proteomics-de

Context preview

The summary Claude sees to decide when to auto-load this skill.

Differential expression analysis for label-free quantitative (LFQ) intensity data with standard MaxQuant and

SKILL.md

proteomics-de.SKILL.md
name: proteomics-de
description: Differential expression analysis for label-free quantitative (LFQ) intensity data with standard MaxQuant and
  DIA-NN output. Workflow includes preprocessing, imputation, and statistical testing.
license: MIT
metadata:
  version: 0.1.0
  openclaw:
    requires:
      bins:
      - python3
    always: false
    emoji: ๐Ÿฅš
    homepage: https://github.com/ClawBio/ClawBio
    os:
    - darwin
    - linux
    - win32
    install:
    - kind: pip
      package: pandas
    - kind: pip
      package: numpy
    - kind: pip
      package: matplotlib
    - kind: pip
      package: scikit-learn
    - kind: pip
      package: scipy
    - kind: pip
      package: seaborn
    trigger_keywords:
    - Differential expression analysis of proteomics data from MaxQuant or DIA-NN output

๐Ÿฅš Proteomics Differential Expression

This skill performs differential expression analysis on label-free quantitative (LFQ) intensity data from MaxQuant and DIA-NN outputs, including preprocessing, imputation, statistical testing, and visualization.

---

Domain Decisions

1. Multi-format Input Support

  • Supports **MaxQuant `proteinGroups.txt`**
  • Automatic filtering of reverse hits, contaminants, and site-only identifications
  • Supports **DIA-NN output**
  • Automatically extracts protein IDs and `.raw` intensity columns

---

2. Preprocessing Strategy

  • MaxQuant:
  • Filters:
  • `Reverse`
  • `Potential contaminant` / `Contaminant`
  • `Only identified by site`
  • DIA-NN:
  • Extracts protein identifiers and intensity matrix directly

---

3. Intensity Transformation

  • LFQ intensities are transformed using **log2 scaling**
  • Ensures approximate normality for downstream statistical testing

---

4. Missing Value Imputation

  • Uses **down-shifted Gaussian imputation**
  • Mean shifted by: `median - shift ร— std`
  • Default:
  • `shift = 1.8`
  • `scale = 0.3`
  • Assumption:
  • Missing values represent **low-abundance proteins**

---

5. Statistical Testing

  • Two-sample **t-test** between treatment and control groups
  • Default degrees of freedom:
  • `df = 4` (for 3 vs 3 replicates)

---

6. s0-based FDR Correction

  • Uses **s0-based thresholding** to stabilize variance
  • Combines:
  • log2 fold change
  • p-value
  • Based on:
  • Giai Gianetto et al. (2016)

---

7. Significance Thresholding

  • Default:
  • `FDR = 0.05`
  • `s0 = 0.1`
  • Produces:
  • Adjusted significance boundary (used in volcano plot)

---

8. Visualization Outputs

  • PCA plot
  • Volcano plot (with s0 curve)
  • Imputation distribution comparison

---

Safety Rules

  • **Local-first**
  • No data upload without explicit user consent
  • **Statistical caution**
  • Statistical results should be interpreted with caution and not overinterpreted
  • Avoid drawing conclusions beyond what the data supports
  • **Missing data assumptions**
  • Imputation assumes missing values correspond to low abundance
  • May not hold in all experimental designs
  • **Small sample limitations**
  • t-test reliability depends on sufficient replicates
  • **Reproducibility**
  • All parameters and commands are logged
  • **No hallucinated science**
  • All methods are based on established proteomics workflows

---

Agent Boundary

This skill DOES:

  • Perform differential expression analysis on LFQ proteomics data
  • Handle MaxQuant and DIA-NN outputs
  • Generate statistical results and visualizations
  • Produce reproducible reports

---

This skill DOES NOT:

  • Process raw mass spectrometry data (e.g. RAW files)
  • Perform peptide identification or database search
  • Conduct pathway or functional enrichment analysis
  • Provide biological interpretation of results

---

Input Contract

Supported Input Formats

1. MaxQuant `proteinGroups.txt` 2. DIA-NN output (`.tsv` / `.txt`)

---

Metadata Requirements

  • `.csv` or `.tsv`
  • Must include:
  • `sample_id`
  • `group`

Supports:

  • raw names
  • full paths (e.g. `/path/sample.raw`)

---

Output Structure

proteomics_de_report/
โ”œโ”€โ”€ report.md
โ”œโ”€โ”€ figures/
โ”‚   โ”œโ”€โ”€ imputation_distribution.png
โ”‚   โ”œโ”€โ”€ pca.png
โ”‚   โ””โ”€โ”€ volcano.png
โ”œโ”€โ”€ tables/
โ”‚   โ”œโ”€โ”€ imputed_proteinGroups.csv
โ”‚   โ””โ”€โ”€ de_results.csv
โ”œโ”€โ”€ ro-crate-metadata.json
โ””โ”€โ”€ reproducibility/
    โ”œโ”€โ”€ commands.sh
    โ”œโ”€โ”€ environment.yml
    โ””โ”€โ”€ checksums.sha256

---

Usage

Demo

python proteomics_de.py \
  --demo \
  --output report_dir

MaxQuant Input

python proteomics_de.py \
  --input proteinGroups.txt \
  --input-type maxquant \
  --metadata metadata.csv \
  --contrast "treated,control" \
  --output report_dir

DIA-NN Input

python proteomics_de.py \
  --input diann_output.tsv \
  --input-type diann \
  --metadata metadata.csv \
  --contrast "treated,control" \
  --output report_dir

Parameters

| Parameter | Description | Default | | -------------------- | --------------------- | --------------- | | `--input` | Input file path | - | | `--input-type` | `maxquant` or `diann` | maxquant | | `--metadata` | Metadata file | - | | `--contrast` | treatment,control | treated,control | | `--s0` | s0 parameter | 0.1 | | `--fdr` | FDR threshold | 0.05 | | `--ttest-df` | Degrees of freedom | 4 | | `--imputation-shift` | Imputation shift | 1.8 | | `--imputation-scale` | Imputation scale | 0.3 | | `--output` | Output directory | - |

References

  • test_proteinGroups.txt is from: Keilhauer EC, Hein MY, Mann M. Accurate protein complex retrieval by affinity enrichment mass spectrometry (AE-MS) rather than affinity purification mass spectrometry (AP-MS). Mol Cell Proteomics. 2015 Jan;14(1):120-35. doi: 10.1074/mcp.M114.041012. Epub 2014 Nov 2. PMID: 25363814; PMCID: PMC4288248.
  • s
Read more
Ships withclawbio

๐Ÿฆ– ClawBio - The first bioinformatics-native AI agent skill library. Local-first. Reproducible. Open. Free.

Get the whole plugin