Gene info

From aipoch/medical-research-skills · View interactive version

Gene info is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Retrieves comprehensive gene information including PubMed publication counts, NCBI summaries, and Ensembl transcript data. Supports batch processing and file input. Invoke when the user asks for gene details, publication statistics, or needs to analyze a list of genes.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Key Features

Dependencies

See ## Prerequisites above for related details.

Example Usage

See ## Usage above for related details.

cd "20260316/scientific-skills/Evidence Insight/gene-info"
python -m py_compile scripts/fetch_gene_info.py
python scripts/fetch_gene_info.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/fetch_gene_info.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

Validation Shortcut

Run this minimal command first to verify the supported execution path:

python scripts/validate_skill.py --help

Gene Information Tool

This skill retrieves detailed information for specific genes from authoritative databases (NCBI PubMed, NCBI Gene, Ensembl). It supports single-gene queries, batch processing, and file-based input.

Capabilities

Usage

To use this skill, run the provided Python script with gene symbols.

Prerequisites

NCBI recommends providing an email address to contact you in case of excessive usage. You can also optionally provide an API key for higher rate limits.

Set the following environment variables (recommended):

Or provide them via command line arguments:

Basic Usage (Single Gene)

python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1

With Keyword Search (for PubMed)

python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 --keyword "breast cancer"

Batch Processing (Multiple Genes)

python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 TP53 EGFR --keyword "mutation"

File Input

Create a file containing a list of genes (supports multiple formats), then run:

Supported Formats:

Example genes.txt:

BRCA1
TP53
EGFR

Command:

python .trae/skills/gene-info/scripts/fetch_gene_info.py --file genes.txt --keyword "cancer"

Export Results

Save results to a CSV or JSON file:

python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 TP53 --output results.csv

Output Format

The script outputs a JSON array containing objects with the following fields:

Advanced Features

Include Genomic Sequence

Add --include-sequence to fetch the genomic sequence from Ensembl.

python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 --include-sequence

Include Homology Data

Add --include-homology to fetch orthologs (e.g., mouse, rat homologs).

python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 --include-homology

When Not to Use

Required Inputs

Recommended Workflow

  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

Output Contract

Validation and Safety Rules

Failure Handling

Quick Validation

Run this minimal verification path before full execution when possible:

python scripts/fetch_gene_info.py --help

Expected output format:

Result file: gene_info_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any

Deterministic Output Rules

Completion Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.