Skip to content
Back to skills

Proteomics Identification

ASecurity

Load when summarising peptide identifications (PSM count, unique peptide count, distinct

  • 8 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
datapythongobash

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add lilinji/GeneTind-Life-Skills --skill proteomics-identification --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Proteomics Identification?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Proteomics Identification
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lilinji-proteomics-identification/badge)](https://www.skillsdirectory.com/skills/lilinji-proteomics-identification)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
# AUTO-GENERATED header from skill.yaml — do not edit by hand.
# Edit skill.yaml, then run: python scripts/generate_skill_md.py <skill_dir>
name: proteomics-identification
description: Load when summarising peptide identifications (PSM count, unique peptide count, distinct
  protein count, score / charge distributions) from a peptide-level CSV produced by MaxQuant / FragPipe
  / DIA-NN. Skip when raw spectra are the input (run a search engine first); working with protein-quantification
  tables (use proteomics-ms-qc).
version: 0.5.0
author: OmicsClaw
license: MIT
emoji: 🔬
tags:
- proteomics
- identification
- peptides
- psm
- maxquant
- msgf
requires:
- numpy
- pandas
---

# proteomics-identification

## When to use

The user has a peptide-level CSV (from MaxQuant `peptides.txt`,
FragPipe `combined_peptide.tsv`, DIA-NN, or any peptide table with
columns including `peptide` / `protein` / optionally `score` /
`charge`) and wants identification summary statistics: total PSM
count, unique peptide count, distinct protein count, optional
median score, optional charge distribution.

This skill does NOT run a search engine — it summarises a peptide
table that already exists. The `--fdr` flag is recorded as
metadata only (no FDR re-thresholding is performed).

## Inputs & Outputs

<!-- AUTO-GENERATED from skill.yaml (interface) — do not edit by hand. Regenerate: python scripts/generate_skill_md.py <skill_dir> -->

**Inputs**

- File types: `.csv`, `.tsv`, `.txt`

**Outputs**

- `tables/peptides.csv`
- `report.md`
- `result.json`
- Produces artifact `proteomics.peptide_table` as `tables/peptides.csv` (`csv`)

## Flow

1. Load CSV (`--input <peptides.csv>`) or generate a demo peptide table (`--demo`).
2. Filter by FDR via `filter_by_fdr` (`proteomics_identification.py:105-126`) — searches columns in order `qvalue` → `q-value` → `q_value` → `PEP` → `pep` → `fdr`; if NONE found, logs a warning at `:117` and passes through unchanged.
3. Compute n_psms, n_unique_peptides, n_proteins, id_rate; optionally median `score` (`proteomics_identification.py:147`) and `charge` distribution (`:151`).
4. Write `tables/peptides.csv` (`proteomics_identification.py:235`) + `report.md` + `result.json` (`:241`).

## Gotchas

- **No search engine is invoked.** This skill summarises an existing peptide CSV — it does NOT run MaxQuant / MS-GF+ / Comet / Mascot. Run a search engine upstream and feed the peptide-level CSV here.
- **`--fdr` ACTIVELY filters when an FDR column is present.** `proteomics_identification.py:229` calls `filter_by_fdr(peptides, fdr_threshold=args.fdr)`. The helper (`:105-126`) tries columns in order `qvalue` → `q-value` → `q_value` → `PEP` → `pep` → `fdr`. With NONE present, the run only logs a warning at `:117` and passes the input through unchanged.
- **`--input` REQUIRED unless `--demo`.** `proteomics_identification.py:223` raises `ValueError("--input required when not using --demo")`.
- **Optional columns are silently skipped when absent.** A CSV without `score` omits `summary["median_score"]`; without `charge` omits `summary["charge_distribution"]`. Inspect the JSON before writing downstream consumers that assume those keys exist.
- **Column names must match exactly (lowercase): `peptide`, `protein`, `score`, `charge`.** MaxQuant `evidence.txt` ships with `Sequence` / `Proteins` / `Score` / `Charge` — rename to lowercase first (e.g. `df.rename(columns={"Sequence": "peptide", "Proteins": "protein", "Score": "score", "Charge": "charge"})`).

## Key CLI

```bash
# Demo
python omicsclaw.py run proteomics-identification --demo --output /tmp/id_demo

# Real peptide CSV
python omicsclaw.py run proteomics-identification \
  --input peptides.csv --output results/ --fdr 0.01
```

## See also

- `references/parameters.md` — every CLI flag
- `references/methodology.md` — PSM / peptide / protein semantics, FDR conventions
- `references/output_contract.md` — `tables/peptides.csv` schema
- Adjacent skills: `proteomics-data-import` (upstream — protein-level table normalisation), `proteomics-ms-qc` (parallel — protein-table QC), `proteomics-quantification` (downstream — LFQ / iBAQ / spectral count), `proteomics-de` (downstream — differential abundance)

Files in this skill

  • SKILL.md4.2 KB
  • proteomics_identification.py8.8 KB
  • references/methodology.md835 B
  • references/output_contract.md656 B
  • references/parameters.md276 B
  • skill.yaml1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.