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.
60
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./scientific-skills/Evidence Insight/gene-info/SKILL.mdscripts/fetch_gene_info.py plus 1 additional script(s).See ## Prerequisites above for related details.
Python: 3.10+. Repository baseline for current packaged skills.Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.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 --helpExample run plan:
CONFIG block or documented parameters if the script uses fixed settings.python scripts/fetch_gene_info.py with the validated inputs.scripts/fetch_gene_info.py with additional helper scripts under scripts/.Run this minimal command first to verify the supported execution path:
python scripts/validate_skill.py --helpThis 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.
To use this skill, run the provided Python script with gene symbols.
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):
NCBI_EMAIL: Your email address (Recommended)NCBI_API_KEY: Your NCBI API Key (Optional)Or provide them via command line arguments:
--email <your_email> (Recommended)--api-key <your_api_key> (Optional)python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 --keyword "breast cancer"python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 TP53 EGFR --keyword "mutation"Create a file containing a list of genes (supports multiple formats), then run:
Supported Formats:
Example genes.txt:
BRCA1
TP53
EGFRCommand:
python .trae/skills/gene-info/scripts/fetch_gene_info.py --file genes.txt --keyword "cancer"Save results to a CSV or JSON file:
python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 TP53 --output results.csvThe script outputs a JSON array containing objects with the following fields:
gene: Gene symboltotalPublications: Total PubMed publicationskeywordPublications: Publications matching gene + keyword (if keyword provided)summary: Gene summary texttranscriptCount: Number of transcriptsmaxAminoAcids: Maximum amino acid lengthchromosome: Chromosome locationorganism: Organism namesequence: Genomic sequence (if --include-sequence used)orthologs: List of orthologs (if --include-homology used)Add --include-sequence to fetch the genomic sequence from Ensembl.
python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 --include-sequenceAdd --include-homology to fetch orthologs (e.g., mouse, rat homologs).
python .trae/skills/gene-info/scripts/fetch_gene_info.py BRCA1 --include-homologygene_info_result.md unless the skill documentation defines a better convention.Run this minimal verification path before full execution when possible:
python scripts/fetch_gene_info.py --helpExpected output format:
Result file: gene_info_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any63c61d3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.