elink
Quick Start
- Command:
elink - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/elink - Full reference: See references/help.md for complete options and examples
When To Use This Tool
- Traverse relationships between Entrez records after you already have IDs.
- Jump from PubMed to linked genes, proteins, assemblies, or other database objects.
- Follow citations with
-citedor-cites. - Discover which link types exist before building a larger EDirect workflow.
Common Patterns
# 1) Find related PubMed records, then linked proteins
esearch -db pubmed -query 'lycopene cyclase' | \
elink -related | \
elink -target protein
# 2) Follow citation links
esearch -db pubmed -query 'Beadle GW [AUTH] AND Tatum EL [AUTH]' | \
elink -cited | \
efetch -format abstract
# 3) Inspect a specific link provider URL
elink -db pubmed -id 19880848 -cmd prlinks
Recommended Workflow
- Start with a defined source database and record IDs.
- Decide whether you want same-database neighbors, cross-database links, or citation relations.
- Use
-cmdand-nameto narrow the link mode when many link types exist. - Feed the linked IDs into
efetch,esummary, orxtractrather than reading raw XML by eye.
Guardrails
elinkneeds valid database names and IDs from Entrez, not arbitrary external identifiers.-related,-target,-cited, and-citessolve different problems; pick the right one before chaining.- Use
-namewhen multiple link relationships exist between the same databases. - Link traversal is network-dependent and can fail independently of your local pipeline logic.