Fetch sequence by accession
sequence_fetchFetch a public DNA/protein record by accession from NCBI Nucleotide, NCBI Protein, UniProt, or Ensembl (e.g. NM_000546, NP_000537, P04637, ENSG00000141510). Only the accession is sent upstream. Use sequence_search first if you only know a gene/organism name, not an accession. For an Ensembl transcript ID this returns spliced cDNA; for a gene ID it returns the full genomic locus (introns included) — Ensembl's own default for each ID type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | Database to query; auto-detects from the accession format. | auto |
| format | No | Output format (GenBank is only available for NCBI accessions — UniProt and Ensembl are FASTA-only). | fasta |
| accession | Yes | GenBank/RefSeq accession (e.g. NM_000546), UniProtKB accession (e.g. P04637), or Ensembl stable ID (e.g. ENSG00000141510, ENST00000335137). |