跳到主要内容
知仓学习社ZHICANG

genomas-guide

Automate gene expression analysis with the GenoMAS multi-agent system

不碰外部(只输出文字)无严重或高危命中brycewang-stanford/Auto-Empirical-Research-Skills

它会碰到什么

扫了多少1 个文本文件,4 KB
它会碰到什么不碰外部(只输出文字)
命中总数1 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

GenoMAS Guide

Overview

GenoMAS (Genomics Multi-Agent System) is a minimalist multi-agent framework for automating scientific analysis workflows, particularly gene expression analysis. It orchestrates specialized agents for data retrieval, preprocessing, differential expression analysis, pathway enrichment, and visualization — turning a natural language research question into a complete bioinformatics pipeline.

Installation

pip install genomas
# Or from source
git clone https://github.com/futianfan/GenoMAS.git
cd GenoMAS && pip install -e .

Core Workflow

Natural Language to Pipeline

from genomas import GenoMAS

geno = GenoMAS(llm_provider="anthropic")

# Describe analysis in natural language
result = geno.analyze(
    "Compare gene expression between tumor and normal tissue "
    "in the TCGA breast cancer dataset. Identify differentially "
    "expressed genes and run pathway enrichment analysis."
)

# GenoMAS automatically:
# 1. Retrieves TCGA-BRCA data via GDC API
# 2. Normalizes and filters expression data
# 3. Runs DESeq2-style differential expression
# 4. Performs GO and KEGG pathway enrichment
# 5. Generates volcano plots and heatmaps

Agent Roles

| Agent | Responsibility |

|-------|---------------|

| Data Agent | Retrieves datasets from GEO, TCGA, ArrayExpress |

| Preprocessing Agent | Quality control, normalization, filtering |

| Analysis Agent | Differential expression, clustering, PCA |

| Enrichment Agent | GO, KEGG, MSigDB pathway analysis |

| Visualization Agent | Plots, heatmaps, volcano plots |

| Report Agent | Generates methods section and results summary |

Step-by-Step Usage

from genomas import DataAgent, AnalysisAgent, EnrichmentAgent

# Step 1: Retrieve data
data_agent = DataAgent()
dataset = data_agent.fetch("GSE12345", platform="RNA-seq")

# Step 2: Differential expression
analysis = AnalysisAgent()
de_results = analysis.differential_expression(
    dataset,
    group_col="condition",
    case="tumor",
    control="normal",
    method="deseq2",
)

# Step 3: Filter significant genes
sig_genes = de_results[
    (de_results["padj"] < 0.05) &
    (abs(de_results["log2FoldChange"]) > 1)
]
print(f"Found {len(sig_genes)} differentially expressed genes")

# Step 4: Pathway enrichment
enrichment = EnrichmentAgent()
pathways = enrichment.run(
    gene_list=sig_genes["gene_symbol"].tolist(),
    databases=["GO_BP", "KEGG", "Reactome"],
)

# Step 5: Visualize
from genomas.viz import volcano_plot, pathway_barplot
volcano_plot(de_results, output="volcano.png")
pathway_barplot(pathways, top_n=20, output="pathways.png")

Supported Analyses

| Analysis | Method |

|----------|--------|

| Differential expression | DESeq2, edgeR, limma-voom |

| Clustering | Hierarchical, k-means, UMAP |

| PCA | Principal component analysis |

| GO enrichment | Gene Ontology term enrichment |

| KEGG pathway | KEGG pathway mapping |

| GSEA | Gene Set Enrichment Analysis |

| Survival analysis | Kaplan-Meier, Cox regression |

Data Sources

| Source | Data type |

|--------|-----------|

| GEO (NCBI) | Microarray, RNA-seq |

| TCGA | Cancer genomics |

| GTEx | Normal tissue expression |

| ArrayExpress | European expression data |

References

  • GenoMAS GitHub
  • Love, M.I. et al. (2014). "Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2." Genome Biology 15(12).

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。