freedomintelligence/openclaw-medical-skills/kegg-database
Claude Code and agent skill by freedomintelligence/openclaw-medical-skills
- community
Checking that the SKILL.md file is still in the repository.
Direct REST API access to KEGG (academic use only). Pathway analysis, gene-pathway mapping, metabolic pathways, drug interactions, ID conversion. For Python workflows with multiple databases, prefer bioservices. Use this for direct HTTP/REST work or KEGG-specific control.
Install
npx vskill@latest install freedomintelligence/openclaw-medical-skills/kegg-databaseSKILL.md
The same SKILL.md was published earlier as freedomintelligence/openclaw-medical-skills/kegg-database.
KEGG Database
Overview
KEGG (Kyoto Encyclopedia of Genes and Genomes) is a comprehensive bioinformatics resource for biological pathway analysis and molecular interaction networks.
Important: KEGG API is made available only for academic use by academic users.
When to Use This Skill
This skill should be used when querying pathways, genes, compounds, enzymes, diseases, and drugs across multiple organisms using KEGG's REST API.
Quick Start
The skill provides:
- Python helper functions (
scripts/kegg_api.py) for all KEGG REST API operations - Comprehensive reference documentation (
references/kegg_reference.md) with detailed API specifications
When users request KEGG data, determine which operation is needed and use the appropriate function from scripts/kegg_api.py.
Core Operations
1. Database Information (kegg_info)
Retrieve metadata and statistics about KEGG databases.
When to use: Understanding database structure, checking available data, getting release information.
Usage:
Common databases: kegg, pathway, module, brite, genes, genome, compound, glycan, reaction, enzyme, disease, drug
2. Listing Entries (kegg_list)
List entry identifiers and names from KEGG databases.
When to use: Getting all pathways for an organism, listing genes, retrieving compound catalogs.
Usage:
Common organism codes: hsa (human), mmu (mouse), dme (fruit fly), sce (yeast), eco (E. coli)
3. Searching (kegg_find)
Search KEGG databases by keywords or molecular properties.
When to use: Finding genes by name/description, searching compounds by formula or mass, discovering entries by keywords.
Usage:
Search options: formula (exact match), exact_mass (range), mol_weight (range)
4. Retrieving Entries (kegg_get)
Get complete database entries or specific data formats.
When to use: Retrieving pathway details, getting gene/protein sequences, downloading pathway maps, accessing compound structures.
Usage:
Output formats: aaseq (protein FASTA), ntseq (nucleotide FASTA), mol (MOL format), kcf (KCF format), image (PNG), kgml (XML), json (pathway JSON)
Important: Image, KGML, and JSON formats allow only one entry at a time.
5. ID Conversion (kegg_conv)
Convert identifiers between KEGG and external databases.
When to use: Integrating KEGG data with other databases, mapping gene IDs, converting compound identifiers.
Usage:
Supported conversions: ncbi-geneid, ncbi-proteinid, uniprot, pubchem, chebi
6. Cross-Referencing (kegg_link)
Find related entries within and between KEGG databases.
When to use: Finding pathways containing genes, getting genes in a pathway, mapping genes to KO groups, finding compounds in pathways.
Usage:
Common links: genes ↔ pathway, pathway ↔ compound, pathway ↔ enzyme, genes ↔ ko (orthology)
7. Drug-Drug Interactions (kegg_ddi)
Check for drug-drug interactions.
When to use: Analyzing drug combinations, checking for contraindications, pharmacological research.
Usage:
Common Analysis Workflows
Workflow 1: Gene to Pathway Mapping
Use case: Finding pathways associated with genes of interest (e.g., for pathway enrichment analysis).
Workflow 2: Pathway Enrichment Context
Use case: Getting all genes in organism pathways for enrichment analysis.
Workflow 3: Compound to Pathway Analysis
Use case: Finding metabolic pathways containing compounds of interest.
Workflow 4: Cross-Database Integration
Use case: Integrating KEGG data with UniProt, NCBI, or PubChem databases.
Workflow 5: Organism-Specific Pathway Analysis
Use case: Comparing pathways across different organisms.
Pathway Categories
KEGG organizes pathways into seven major categories. When interpreting pathway IDs or recommending pathways to users:
- Metabolism (e.g.,
map00010- Glycolysis,map00190- Oxidative phosphorylation) - Genetic Information Processing (e.g.,
map03010- Ribosome,map03040- Spliceosome) - Environmental Information Processing (e.g.,
map04010- MAPK signaling,map02010- ABC transporters) - Cellular Processes (e.g.,
map04140- Autophagy,map04210- Apoptosis) - Organismal Systems (e.g.,
map04610- Complement cascade,map04910- Insulin signaling) - Human Diseases (e.g.,
map05200- Pathways in cancer,map05010- Alzheimer disease) - Drug Development (chronological and target-based classifications)
Reference references/kegg_reference.md for detailed pathway lists and classifications.
Important Identifiers and Formats
Pathway IDs
map#####- Reference pathway (generic, not organism-specific)hsa#####- Human pathwaymmu#####- Mouse pathway
Gene IDs
- Format:
organism:gene_number(e.g.,hsa:10458)
Compound IDs
- Format:
cpd:C#####(e.g.,cpd:C00002for ATP)
Drug IDs
- Format:
dr:D#####(e.g.,dr:D00001)
Enzyme IDs
- Format:
ec:EC_number(e.g.,ec:1.1.1.1)
KO (KEGG Orthology) IDs
- Format:
ko:K#####(e.g.,ko:K00001)
API Limitations
Respect these constraints when using the KEGG API:
- Entry limits: Maximum 10 entries per operation (except image/kgml/json: 1 entry only)
- Academic use: API is for academic use only; commercial use requires licensing
- HTTP status codes: Check for 200 (success), 400 (bad request), 404 (not found)
- Rate limiting: No explicit limit, but avoid rapid-fire requests
Detailed Reference
For comprehensive API documentation, database specifications, organism codes, and advanced usage, refer to references/kegg_reference.md. This includes:
- Complete list of KEGG databases
- Detailed API operation syntax
- All organism codes
- HTTP status codes and error handling
- Integration with Biopython and R/Bioconductor
- Best practices for API usage
Troubleshooting
404 Not Found: Entry or database doesn't exist; verify IDs and organism codes 400 Bad Request: Syntax error in API call; check parameter formatting Empty results: Search term may not match entries; try broader keywords Image/KGML errors: These formats only work with single entries; remove batch processing
Additional Tools
For interactive pathway visualization and annotation:
- KEGG Mapper: https://www.kegg.jp/kegg/mapper/
- BlastKOALA: Automated genome annotation
- GhostKOALA: Metagenome/metatranscriptome annotation
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/kegg-database/SKILL.md
Popularity
- Repository stars
- 2,777
- Repository forks
- 386
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/freedomintelligence/openclaw-medical-skills/kegg-database)