bulkrna-batch-correcti…
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when running two-group metabolomics DE (t-test + log2FC + BH-FDR + PCA) on a feature
$ npx -y skills add tiangzlab/omicsclaw --skill metabolomics-de --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/metabolomics-deContext preview
The summary Claude sees to decide when to auto-load this skill.
Load when running two-group metabolomics DE (t-test + log2FC + BH-FDR + PCA) on a feature
name: metabolomics-de description: Load when running two-group metabolomics DE (t-test + log2FC + BH-FDR + PCA) on a feature × sample CSV using `--group-a-prefix` / `--group-b-prefix` (default `ctrl` / `treat`). Skip when needing tunable test backends (use metabolomics-statistics); raw spectra. trigger: metabolomics differential, PLS-DA, volcano plot, biomarker, OPLS-DA tags: - metabolomics - de - ttest - pca - bh-fdr - biomarker
Run Welch tests and treatment/control fold changes using ctrl/treat sample prefixes. Use metabolomics-statistics for another test backend.
import pandas as pd
from skills._sdk.notebook import load_skill, read_input, write_output
library = load_skill("metabolomics-de")
data = read_input('features.csv', reader=pd.read_csv)
result = library.differential_expression(data)
write_output(result, 'tables/result.csv')[examples/example_step.py](examples/example_step.py) runs a seeded synthetic example through the step runner and writes a table and Figure. Computations return new DataFrames, leave the input unchanged and expose diagnostics through `run_info(result)`. Plotting functions write no files.
<!-- api:begin generated from _api.py; regenerate with run.py api <skill dir> --write -->
Return Welch tests, treatment/control log2 fold changes and BH FDR.
:param data: Feature table whose first column identifies features; other columns contain intensities. :param group_a_prefix: CLI default ctrl; prefix selecting control samples. :param group_b_prefix: CLI default treat; prefix selecting treatment samples. :returns: A new differential table with group sizes in attrs['run_info']. :raises ValueError: A group is absent or groups overlap.
Read diagnostics attached to a returned table.
:param data: DataFrame returned by this library. :param keep: Default True; use False in the CLI to remove diagnostics. :returns: An independent dictionary describing the run. :raises ValueError: The table carries no run_info.
Plot sample PCA from untransformed intensities; NaNs become zero.
:param data: Feature table with the same sample columns as differential_expression. :param group_a_prefix: CLI default ctrl; control prefix. :param group_b_prefix: CLI default treat; treatment prefix. :param random_state: Default 0; seed forwarded to sklearn PCA. :returns: A matplotlib Figure with sample labels and explained variance axes. :raises ImportError: Install scikit-learn with install_skill_deps if unavailable. :raises ValueError: Groups are absent, overlap or the matrix is invalid.
<!-- api:end -->
Welch tests use raw supplied intensities, with BH FDR and a fixed CLI significance threshold of 0.05. PCA uses untransformed intensities and converts NaNs to zero.
CSV input; `tables/differential_features.csv`, `report.md` and `result.json`. The CLI also writes `tables/significant_features.csv` and, when PCA succeeds, `figures/pca_scores.png`. Demo mode also writes its synthetic input CSV at the output root. The function library returns objects; the CLI and step own file writes.
python skills/metabolomics/metabolomics-de/met_diff.py --demo --output /tmp/metabolomics_de
`numpy`, `pandas`, `scipy`, `scikit-learn`, `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…