Skip to main content
Glama
README.md
# scroma-agent

[scROMA](https://github.com/sysbio-curie/scroma) pathway-activity analysis for AI agents, as an Agent Skill and as an MCP server. Both run the same code.

Given an AnnData file and a GMT file of gene sets, an agent can:

1. describe the data;
2. score every gene set in every cell, per compartment or cell type;
3. compare each condition with a reference within each donor, calibrated against random gene sets;
4. read the result tables.

## Requirements

- Python 3.11 or later.
- scroma 0.3.4 or later. This version is not released yet, and scroma-agent does not run on scroma 0.3.3.
- An `.h5ad` file with log-normalized expression in `X`, gene symbols as variable names, and `obs` columns for condition, donor and compartment.

## Install

```bash
pip install "scroma-agent[mcp] @ git+https://github.com/altyn-bulmers/scroma-agent"
```

## Agent Skill

Copy the folder `skills/scroma/` into the skills folder of an agent that supports Agent Skills. `SKILL.md` describes the method, the workflow, the output tables and how to decide.

## MCP server

```bash
scroma-mcp --data DATA.h5ad --gmt GENESETS.gmt --out OUT
```

The server uses stdio and has five tools: `read_guide`, `describe_data`, `score_pathways`, `contrast_conditions` and `get_table`.

## Tests

```bash
git clone https://github.com/altyn-bulmers/scroma-agent
cd scroma-agent
pip install -e ".[test]"
pytest
```

## Citation

Zhubanchaliyev A, Najm M, Laigle V, Bonnet E, Martignetti L. scROMA: batch-aware pathway-activity inference and a ground-truth simulation framework for single-cell transcriptomics. bioRxiv 2026. https://doi.org/10.64898/2026.08.07.743516

## License

GPL-3.0-or-later. Author: Altynbek Zhubanchaliyev.