bulkrna-batch-correcti…
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when computing protein-table QC — proteins × samples count, missing-value rate, intensity
$ npx -y skills add tiangzlab/omicsclaw --skill proteomics-ms-qc --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/proteomics-ms-qcContext preview
The summary Claude sees to decide when to auto-load this skill.
Load when computing protein-table QC — proteins × samples count, missing-value rate, intensity
name: proteomics-ms-qc description: Load when computing protein-table QC — proteins × samples count, missing-value rate, intensity CV (median + mean) — from a MaxQuant / FragPipe / DIA-NN protein-quantification CSV. Skip when raw mzML / RAW spectra are the input (run a search engine first); peptide-level QC is needed (use proteomics-identification). trigger: MS QC, mass spec QC, PTXQC, rawTools tags: - proteomics - qc - ms - maxquant - intensity - missing-values - cv
Numeric columns excluding metadata-like names are samples; if none remain, all numeric columns are used. Zero and NaN count as missing. Use existing search-engine tables; this skill does not search raw spectra.
from skills._sdk.notebook import load_skill, write_output
library = load_skill('proteomics-ms-qc')
data = library.demo_data(random_state=42)
result = library.quality_control(data)
write_output(result, 'tables/qc_metrics.csv')For real data, use `read_input` and pass any `read_table` helper as `reader=`. The executable `examples/example_step.py` also checks the result and writes a Figure.
<!-- api:begin generated from _api.py; regenerate with run.py api <skill dir> --write -->
Return a one-row QC table without changing input intensities.
:param data: Protein rows and numeric intensity columns; metadata-like names are excluded when possible. :returns: Scalar QC metrics; per-sample completeness and selected columns are in run_info. :raises ValueError: There are no proteins or numeric intensity columns.
Read QC diagnostics.
:param table: Output of quality_control. :param keep: True preserves attrs; False removes diagnostics. :returns: A separate dictionary with selected sample columns and completeness. :raises TypeError: The input is not a DataFrame.
Plot detected protein percentages per sample.
:param table: QC table retaining run_info attributes. :returns: A matplotlib Figure without writing files. :raises KeyError: QC diagnostics are absent.
Generate a synthetic protein intensity table.
:param random_state: CLI seed 42; change for another simulation. :returns: One hundred proteins and five sample columns. :raises ValueError: The seed is invalid.
<!-- api:end -->
Numeric columns excluding metadata-like names are samples; if none remain, all numeric columns are used. Zero and NaN count as missing. Functions return new DataFrames. `run_info(result)` reads diagnostic attrs; use `keep=False` before serialization when those attrs are not needed.
The CLI reads CSV tables and writes:
Functions return data and Figures without writing files. Steps own their outputs. Demo mode also writes its synthetic input when the original CLI used a file.
python skills/proteomics/proteomics-ms-qc/proteomics_ms_qc.py --demo --output /tmp/proteomics_ms_qc
For real input replace `--demo` with `--input <table>`.
`numpy`, `pandas`, `matplotlib`
Conversational & memory-enabled AI research partner for multi-omics analysis. CLI + Desktop App (installers in Releases). From biological idea to full research paper.
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when discovering bulk gene co-expression modules and hub genes with R WGCNA. Skip direct expression contrasts (use…
Load when comparing gene expression between two conditions in bulk RNA-seq count data. Skip
Load when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or
Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list. Skip when
Load when converting Ensembl, Entrez or symbol IDs in a bulk RNA count matrix using an explicit mapping or a small human demo…