alphafold_database_fet…
Retrieve and analyze AlphaFold predicted structures for a protein. Use when the user provides…
Retrieve protein and nucleotide sequences from NCBI databases using E-utilities. Supports direct accession lookup, CDS translation, gene+organism search, locus lookup, PubMed-linked sequences, patent protein extraction, and organism+length fallback search. Use when you need to
$ npx -y skills add google-deepmind/science-skills --skill ncbi_sequence_fetch --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/ncbi_sequence_fetchContext preview
The summary Claude sees to decide when to auto-load this skill.
Retrieve protein and nucleotide sequences from NCBI databases using E-utilities. Supports direct accession lookup, CDS translation, gene+organism search, locus lookup, PubMed-linked sequences, patent protein extraction, and organism+length fallback search. Use when you need to
name: ncbi-sequence-fetch description: > Retrieve protein and nucleotide sequences from NCBI databases using E-utilities. Supports direct accession lookup, CDS translation, gene+organism search, locus lookup, PubMed-linked sequences, patent protein extraction, and organism+length fallback search. Use when you need to fetch biological sequences by accession, gene name, locus tag, PubMed ID, or patent number.
1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure `uv` is installed and on PATH. 2. **User Notification**: If .licenses/ncbi_sequence_fetch_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://www.ncbi.nlm.nih.gov/ and https://www.ncbi.nlm.nih.gov/home/about/policies/, then (2) create the file recording the notification text and timestamp. 3. **`.env` file**: Make sure the `.env` file exists in your home directory. Create one if it does not exist. 4. **`NCBI_API_KEY`** (optional): Raises the NCBI rate limit from 3 to 10 requests/second. The skill works without it, but a key is recommended if the user plans many queries or encounters a 429 error. You can register for a key for free at https://www.ncbi.nlm.nih.gov/account/settings/. You **MUST** use the safe credentials protocol in the `credentials` skill to check for and request this key if this skill looks relevant to the user's request.
database rather than accessing the database directly. The scripts automatically enforce the required rate limit gracefully.
environment, the query speed limits are automatically increased significantly.
output.
Wraps NCBI's Entrez E-utilities (efetch, esearch, elink, esummary) for retrieving protein and nucleotide sequences. Provides 10 subcommands covering the full range of sequence retrieval workflows:
**`scripts/ncbi_fetch.py`** — Single script with subcommands.
All subcommands write structured JSON output. Use `--output FILE` to save to a file, or omit it to print to stdout. A human-readable summary is always printed to stdout.
Fetches protein FASTA from NCBI by accession (XP_, NP_, GenPept, etc.)
uv run scripts/ncbi_fetch.py fetch-protein XP_022033624 -o /tmp/result.json uv run scripts/ncbi_fetch.py fetch-protein NP_001234567 ABC12345.1
Fetches nucleotide FASTA from NCBI by accession.
uv run scripts/ncbi_fetch.py fetch-nucleotide MK034466 -o /tmp/result.json
Fetches a CDS/nucleotide accession and translates to protein sequence. Tries three approaches in order: 1. NCBI's pre-translated CDS protein (`fasta_cds_aa`)
2. GenBank XML CDS annotation translations 3. Raw nucleotide → 6-frame ORF finding
uv run scripts/ncbi_fetch.py cds-translate MK034466 -o /tmp/result.json uv run scripts/ncbi_fetch.py cds-translate HQ662330 --target-length 1043
If the accession is a **genomic record** (not mRNA/CDS), the tool will report `is_genomic: true` so you can fall back to a homology-based approach instead.
Free-text search using Entrez query syntax. Supports all NCBI databases.
# Search protein database uv run scripts/ncbi_fetch.py search "WRR4B[Gene Name] AND Arabidopsis[Organism]" \ --database protein --retmax 5 --fetch-sequences # Search nucleotide database uv run scripts/ncbi_fetch.py search "Rz2[Gene Name] AND Beta vulgaris[Organism]" \ --database nuccore --retmax 10 # Search with patent filter uv run scripts/ncbi_fetch.py search "disease resistance AND Solanum[Organism] AND patent[Properties]" \ --database protein --fetch-sequences # Search by sequence length uv run scripts/ncbi_fetch.py search '"Oryza sativa"[Organism] AND 1043[SLEN]' \ --database protein --fetch-sequences --retmax 50
Follow NCBI's cross-database links (e.g., PubMed article → linked proteins).
uv run scripts/ncbi_fetch.py elink 24896089 --dbfrom pubmed --db protein \ --fetch-sequences -o /tmp/linked.json
Searches for protein sequences by gene name and organism. Searches NCBI Protein with `[Gene Name]` and `[Organism]` qualifiers.
uv run scripts/ncbi_fetch.py gene-protein WRR4B --organism "Arabidopsis thaliana" uv run scripts/ncbi_fetch.py gene-protein Pikh-2 --organism "Oryza sativa" \ --target-length 1043 -o /tmp/result.json
Searches by locus tag in both NCBI Protein and Nuccore databases. Extracts CDS translations from GenBank XML when direct protein hits aren't available.
uv run scripts/ncbi_fetch.py locus-protein At1g56540 --organism "Arabidopsis thaliana" uv run scripts/ncbi_fetch.py locus-protein Niben101Scf02422g02015.1 \ --organism "Nicotiana benthamiana" -o /tmp/result.json
Finds protein sequences linked to a PubMed article. Searches NC
A collection of agent skills for scientific research tasks, spanning genomics, structural biology, cheminformatics, literature search, and more.
Retrieve and analyze AlphaFold predicted structures for a protein. Use when the user provides…
Constructs deep-links and URLs for the AlphaGenome Atlas website. Supports generating…
Analyzes genetic variant effects on gene expression (RNA-seq), chromatin accessibility…
Score, annotate, and analyze the functional impact of genetic variants using AlphaGenome…
Query the ChEMBL database for bioactive molecules, drug targets, bioactivity data, approved…
Query ClinicalTrials.gov via APIv2. Use when you want to search for trials by condition,…