This skill performs comprehensive pathway analysis using multiple databases (Reactome, KEGG, WikiPathways, Pathway Commons, BioModels).
Use the ready-made pipeline function for comprehensive analysis:
from skills.tooluniverse_systems_biology.python_implementation import systems_biology_pipeline
# Example 1: Gene list enrichment
gene_list = ["TP53", "BRCA1", "EGFR", "MYC", "KRAS", "AKT1", "PTEN"]
systems_biology_pipeline(
gene_list=gene_list,
output_file="genelist_analysis.md"
)
# Example 2: Protein-specific pathways
systems_biology_pipeline(
protein_id="P53350", # TP53 protein
output_file="tp53_pathways.md"
)
# Example 3: Keyword search
systems_biology_pipeline(
pathway_keyword="apoptosis",
organism="Homo sapiens",
output_file="apoptosis_pathways.md"
)
# Example 4: Combined analysis
systems_biology_pipeline(
gene_list=["TP53", "MDM2", "BCL2"],
protein_id="P04637",
pathway_keyword="cell death",
output_file="comprehensive_analysis.md"
)Use specific tools for targeted queries:
from tooluniverse import ToolUniverse
tu = ToolUniverse()
tu.load_tools()
# 1. Pathway enrichment
enrichment = tu.tools.enrichr_gene_enrichment_analysis(
gene_list=["TP53", "BRCA1", "EGFR"],
library="KEGG_2021_Human"
)
# 2. Map protein to pathways
pathways = tu.tools.Reactome_map_uniprot_to_pathways(
id="P53350" # Note: parameter is 'id' not 'uniprot_id'
)
# 3. Get pathway details
reactions = tu.tools.Reactome_get_pathway_reactions(
stId="R-HSA-73817" # Reactome pathway ID
)
# 4. Search KEGG pathways
kegg_results = tu.tools.kegg_search_pathway(
keyword="diabetes"
)
# 5. Search WikiPathways
wiki_results = tu.tools.WikiPathways_search(
query="apoptosis",
organism="Homo sapiens"
)
# 6. Search Pathway Commons
pc_results = tu.tools.pc_search_pathways(
action="search_pathways",
keyword="apoptosis",
limit=10
)
# 7. Search BioModels
models = tu.tools.biomodels_search(
query="glycolysis",
limit=5
)
# 8. List top-level pathways
top_pathways = tu.tools.Reactome_list_top_pathways(
species="Homo sapiens"
)Ask Claude to perform analysis directly:
"Analyze pathways enriched in this gene list: TP53, BRCA1, EGFR, MYC, KRAS, AKT1, PTEN"
"What pathways is the protein P53350 involved in?"
"Find pathways related to apoptosis in humans"
"Search for computational models of glycolysis"
"What are the top-level biological pathways in humans?"
"Perform comprehensive pathway analysis for genes TP53, MDM2, BCL2 and also search for cell death pathways"
Use specific tools via JSON (for programmatic MCP usage):
1. Pathway Enrichment:
{
"tool": "enrichr_gene_enrichment_analysis",
"parameters": {
"gene_list": ["TP53", "BRCA1", "EGFR"],
"library": "KEGG_2021_Human"
}
}2. Protein to Pathways:
{
"tool": "Reactome_map_uniprot_to_pathways",
"parameters": {
"id": "P53350"
}
}3. Pathway Reactions:
{
"tool": "Reactome_get_pathway_reactions",
"parameters": {
"stId": "R-HSA-73817"
}
}4. KEGG Search:
{
"tool": "kegg_search_pathway",
"parameters": {
"keyword": "diabetes"
}
}5. WikiPathways Search:
{
"tool": "WikiPathways_search",
"parameters": {
"query": "apoptosis",
"organism": "Homo sapiens"
}
}6. Pathway Commons Search:
{
"tool": "pc_search_pathways",
"parameters": {
"action": "search_pathways",
"keyword": "apoptosis",
"limit": 10
}
}7. BioModels Search:
{
"tool": "biomodels_search",
"parameters": {
"query": "glycolysis",
"limit": 5
}
}8. Top-Level Pathways:
{
"tool": "Reactome_list_top_pathways",
"parameters": {
"species": "Homo sapiens"
}
}Note: Whether using Python SDK or MCP, the parameter names are the same.
| Parameter | Type | Required | Description |
|---|---|---|---|
gene_list |
array | Yes | Array of gene symbols |
library |
string | Yes | Pathway library (e.g., "KEGG_2021_Human") |
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string | Yes | UniProt accession (uniprot_id) |
| Parameter | Type | Required | Description |
|---|---|---|---|
stId |
string | Yes | Reactome stable ID (e.g., "R-HSA-73817") |
| Parameter | Type | Required | Description |
|---|---|---|---|
keyword |
string | Yes | Search keyword |
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | Search query |
organism |
string | No | Organism filter (e.g., "Homo sapiens") |
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
string | Yes | Must be "search_pathways" |
keyword |
string | Yes | Search keyword |
limit |
integer | No | Max results (default: 10) |
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | Search query |
limit |
integer | No | Max results (default: 10) |
| Parameter | Type | Required | Description |
|---|---|---|---|
species |
string | Yes | Organism (e.g., "Homo sapiens") |
Python SDK:
# After identifying differentially expressed genes
de_genes = ["TP53", "EGFR", "MYC", "KRAS", "AKT1", "PTEN", "RB1", "BRCA1"]
systems_biology_pipeline(
gene_list=de_genes,
output_file="deseq_pathway_enrichment.md"
)MCP:
"Perform pathway enrichment analysis for these differentially expressed genes:
TP53, EGFR, MYC, KRAS, AKT1, PTEN, RB1, BRCA1"
Python SDK:
# Investigate unknown protein
systems_biology_pipeline(
protein_id="Q9Y6K9", # Example protein
pathway_keyword="signaling", # Related keyword
output_file="protein_function_analysis.md"
)MCP:
"What pathways is protein Q9Y6K9 involved in?
Also search for signaling pathways that might be relevant."
Python SDK:
# Explore diabetes pathways
systems_biology_pipeline(
pathway_keyword="diabetes",
organism="Homo sapiens",
output_file="diabetes_pathways.md"
)MCP:
"Find all pathways related to diabetes in humans from multiple databases"
Python SDK:
from tooluniverse import ToolUniverse
tu = ToolUniverse()
tu.load_tools()
keyword = "apoptosis"
# Search all databases
kegg = tu.tools.kegg_search_pathway(keyword=keyword)
wiki = tu.tools.WikiPathways_search(query=keyword, organism="Homo sapiens")
pc = tu.tools.pc_search_pathways(action="search_pathways", keyword=keyword, limit=20)
models = tu.tools.biomodels_search(query=keyword, limit=10)
# Compare coverage
print(f"KEGG: {len(kegg.get('data', []))} pathways")
print(f"WikiPathways: {len(wiki.get('data', {}).get('result', []))} pathways")
print(f"Pathway Commons: {pc.get('total_hits', 0)} pathways")
print(f"BioModels: {models.get('data', {}).get('matches', 0)} models")MCP:
"Search for apoptosis pathways across KEGG, WikiPathways, Pathway Commons,
and BioModels. Compare the coverage across databases."
The skill generates a markdown report with these sections:
- Header: Analysis parameters
- Pathway Enrichment (if gene list provided)
- Table of enriched pathways with p-values
- Genes from input list in each pathway
- Protein Pathways (if protein ID provided)
- Reactome pathways containing the protein
- Detailed reactions for top pathway
- Keyword Search Results (if keyword provided)
- KEGG pathways matching keyword
- WikiPathways matches
- Pathway Commons results with source attribution
- BioModels computational models
- Top-Level Pathways (always included)
- Hierarchical view of major biological pathways
# Systems Biology & Pathway Analysis Report
**Generated**: 2026-02-09 14:30:00
**Gene List**: TP53, BRCA1, EGFR, MYC, KRAS...
**Organism**: Homo sapiens
---
## 1. Pathway Enrichment Analysis
### KEGG Pathway Enrichment (15 pathways)
| Pathway | P-value | Adjusted P-value | Genes |
|---------|---------|------------------|-------|
| Cell cycle | 2.3e-05 | 0.0012 | TP53, RB1, MYC |
| p53 signaling pathway | 5.1e-04 | 0.0089 | TP53, MDM2 |
| ...
## 2. Pathways for Protein P53350
### Reactome Pathways (25 pathways)
| Pathway Name | Pathway ID | Species |
|--------------|------------|---------|
| Transcriptional Regulation by TP53 | R-HSA-3700989 | Homo sapiens |
| DNA Damage Response | R-HSA-5693532 | Homo sapiens |
| ...Solution: Check that gene symbols are correct (case-sensitive). Try alternative pathway library.
Solution: Verify UniProt ID is correct. Try searching by gene name using keyword search.
Solution: Try broader keyword or synonyms. Check spelling. Some specialized processes may have limited pathway annotations.
Expected: Different databases have different coverage. Cross-reference to validate findings.
After running this skill:
- Follow-up Pathways: Use pathway IDs to get detailed information
- Visualization: Use database URLs to view pathway diagrams
- Literature Search: Use pathway names in literature searches
- Validation: Cross-reference enriched pathways across databases
- Functional Experiments: Design experiments based on pathway predictions
- Reactome: https://reactome.org
- KEGG: https://www.genome.jp/kegg/
- WikiPathways: https://www.wikipathways.org
- Pathway Commons: https://www.pathwaycommons.org
- BioModels: https://www.ebi.ac.uk/biomodels/
- Enrichr: https://maayanlab.cloud/Enrichr/