bulkrna-batch-correcti…
Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation. Skip…
Load for Fisher over-representation analysis of protein identifiers against caller-supplied pathways. Skip rank-based GSEA (use bulkrna-enrichment) or protein differential testing (use proteomics-de).
$ npx -y skills add tiangzlab/omicsclaw --skill proteomics-enrichment --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/proteomics-enrichmentContext preview
The summary Claude sees to decide when to auto-load this skill.
Load for Fisher over-representation analysis of protein identifiers against caller-supplied pathways. Skip rank-based GSEA (use bulkrna-enrichment) or protein differential testing (use proteomics-de).
name: proteomics-enrichment description: Load for Fisher over-representation analysis of protein identifiers against caller-supplied pathways. Skip rank-based GSEA (use bulkrna-enrichment) or protein differential testing (use proteomics-de). trigger: proteomics enrichment, pathway analysis, ORA tags: - proteomics - enrichment
ORA uses one-sided Fisher tests and BH correction. Pass an explicit pathway_db and a background_size matching the measured universe. 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-enrichment')
data = library.demo_data(random_state=42)
result = library.enrich(data['protein_id'].tolist(), pathway_db=library.demo_pathways())
write_output(result, 'tables/enrichment_results.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 -->
Run one-sided Fisher tests with BH correction against an explicit pathway library.
:param genes: Protein or gene identifiers in the same identifier space as pathway_db. :param pathway_db: Required pathway-to-member mapping; no default biological database is assumed. :param background_size: CLI default None uses the input/library union plus at least one background-only member. :param method: CLI default ora is the only implemented method. :returns: Ranked pathway overlaps, odds ratios and adjusted p values. :raises ValueError: The library is absent, the method is invalid, or the background is too small.
Read enrichment diagnostics.
:param table: Output of enrich. :param keep: True preserves attrs; False removes diagnostics. :returns: A separate dictionary with library provenance and summary. :raises TypeError: The input is not a DataFrame.
Plot leading pathways by enrichment ratio.
:param table: Enrichment results sorted by p value. :param top_n: Display ten pathways by default; change for a larger result table. :returns: A matplotlib Figure without writing files. :raises KeyError: pathway or enrichment_ratio is absent.
Generate a synthetic significant-protein list.
:param random_state: CLI seed 42; change for another simulation. :returns: Eighteen example identifiers with simulated statistics. :raises ValueError: The seed is invalid.
Return the eight small illustrative pathway sets used by --demo.
:returns: A separate mapping, not a production pathway database. :raises RuntimeError: No runtime failures are expected.
<!-- api:end -->
ORA uses one-sided Fisher tests and BH correction. Pass an explicit pathway_db and a background_size matching the measured universe. 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-enrichment/prot_enrichment.py --demo --output /tmp/proteomics_enrichment
For real input replace `--demo` with `--input <table>`. Non-demo enrichment also requires `--pathways <pathways.json>`, a pathway-to-members object.
`numpy`, `pandas`, `matplotlib`, `scipy`
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…