bulkrna-batch-correcti…
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load when normalising a feature × sample metabolomics CSV via median, quantile, total (sum),
$ npx -y skills add tiangzlab/omicsclaw --skill metabolomics-normalization --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/metabolomics-normalizationContext preview
The summary Claude sees to decide when to auto-load this skill.
Load when normalising a feature × sample metabolomics CSV via median, quantile, total (sum),
name: metabolomics-normalization description: Load when normalising a feature × sample metabolomics CSV via median, quantile, total (sum), PQN (probabilistic quotient), or log methods — emits a normalised wide-form table. Skip when also imputing (use metabolomics-quantification); raw spectra (use metabolomics-xcms-preprocessing). trigger: metabolomics normalization, scaling, NOREVA, TIC normalization tags: - metabolomics - normalization - pqn - quantile - median - log
Normalize a numeric feature-by-sample table. Use metabolomics-quantification when missing-value imputation is also needed.
import pandas as pd
from skills._sdk.notebook import load_skill, read_input, write_output
library = load_skill("metabolomics-normalization")
data = read_input('features.csv', reader=lambda path: pd.read_csv(path, index_col=0))
result = library.normalize(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 a normalized copy, preserving feature and sample labels.
:param data: Numeric feature-by-sample DataFrame; NaNs retain method semantics. :param method: CLI default median; quantile, total, pqn or log are alternatives. :returns: A new DataFrame with method and dimensions in attrs['run_info']. :raises ValueError: The requested method is unknown.
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 normalized sample distributions without writing a file.
:param data: Numeric feature-by-sample DataFrame. :returns: A matplotlib Figure. :raises ValueError: No numeric columns are available.
<!-- api:end -->
Median and total scale each column to the median column median or sum. Quantile maps ranks to averaged sorted values. PQN uses a TIC-normalized reference to estimate quotients, then divides the original intensities. Log computes log2(x+1).
CSV input; `tables/normalized.csv`, `report.md` and `result.json`. The CLI writes `reproducibility/commands.sh`. The function library returns objects; the CLI and step own file writes.
python skills/metabolomics/metabolomics-normalization/metabolomics_normalization.py --demo --output /tmp/metabolomics_normalization
`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…