rnaseq-plot-mcp
rnaseq-plot-mcp
RNA-seq 下游出图 / 分析 MCP(旧称 rgraph)。把一套参数化 R 出图脚本 (ggplot2 / pheatmap / clusterProfiler / edgeR / limma / WGCNA …) 封装为 MCP 工具,由本机 Rscript 渲染 png + pdf。
吃用户自己的 count / FPKM 表,不捆绑任何物种基因组或表达矩阵。
为什么是「R 引擎 + Python MCP」
忠实:不在 Python 里重画,直接驱动 R。
参数化:无
setwd()硬编码,输入/输出/阈值/配色走参数。优雅降级:找不到 Rscript → 返回可手动运行的
.R;缺包 → 返回包名与安装命令。可复现:
--no-init-file --no-site-file,屏蔽用户.Rprofile横幅。
R 引擎
优先级:环境变量 RGRAPH_RSCRIPT → PATH 上的 Rscript → C:\Program Files\R\... / 注册表。
$env:RGRAPH_RSCRIPT = "C:\Program Files\R\R-4.5.1\bin\Rscript.exe"
uv run rgraph-cli数据格式
文件 | 必需列 |
|
|
|
|
|
|
差异结果 |
|
差异基因判定默认用 padj(FDR)。
工具(34)
核心:rgraph_env rgraph_normalize rgraph_correlation rgraph_pca rgraph_distribution rgraph_diff rgraph_volcano rgraph_heatmap rgraph_enrich rgraph_go_plot rgraph_kegg_plot rgraph_ppi rgraph_gsea
高级:韦恩/象限/堆叠火山、WGCNA、网络图、ssGSEA、圈图、桑基、交互火山等。缺 ComplexHeatmap 时热图回退 pheatmap;缺 DESeq2 时可用 edgeR/limma。
WGCNA → 网络:rgraph_wgcna 导出 Cytoscape_edges_*.txt 后交给 rgraph_network(mode="edge")。
注册
{
"mcpServers": {
"r-analysis": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/rnaseq-plot-mcp", "server.py"],
"env": { "RGRAPH_RSCRIPT": "/path/to/Rscript" }
}
}
}合成测试矩阵在 tests/data/(g1–g10,不含真实实验数据)。
MCP 工具名仍是 rgraph_*(如 rgraph_volcano),与本机 Cursor 配置兼容。
许可
MIT。
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Presisitence/rnaseq-plot-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server