---
name: "esample"
section: "1"
platform: "linux"
package: "ncbi-entrez-direct"
version: "24.0.20250523+dfsg-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/esample"
---

# esample(1)

print a sample document for use with NCBI Entrez Direct

## NAME

esample - print a sample document for use with NCBI Entrez Direct

## SYNOPSIS

**esample** **-docsum**\|**-article**\|**-book**\|**-protein**\|**-gene**\|**-taxon**\|**-blast**\|**-snp**\|**-hgvs**\|**-bioc**\|**-flatfile**\|**-gff**\|**-gencode**

## DESCRIPTION

**esample** writes a sample document (typically NCBI Entrez XML) from the specified database to standard output.

## OPTIONS

- **-docsum**

  Write an NCBI **DocumentSummarySet** XML document (PMID 6301692).

- **-article**

  Write an NCBI **PubmedArticle** XML document (PMID 6301692).

- **-book**

  Write an NCBI **PubmedArticleSet** XML document (PMID 21433338).

- **-protein**

  Write an NCBI **INSDSeq** XML document (accession AAQ05867.1).

- **-gene**

  Write an NCBI **DocumentSummary** XML document (gene IL9R).

- **-taxon**

  Write an NCBI **TaxaSet** XML document (for *Homo sapiens*).

- **-blast**

  Write an NCBI **BlastOutput** XML document (for **blastx** results).

- **-snp**

  Write an NCBI JSON document (for **refsnp\_id** 1238141906).

- **-hgvs**

  Write a Human Genome Variation Society entry (for position 5,226,774 on NC\_000011.10).

- **-bioc**

  Write a BioConductor **collection** XML document (for PMID 6301692).

- **-flatfile**

  Write a GenBank/GenPept flatfile (accessions U54469.1 and AAC03524.1).

- **-gff**

  Write a GFF3 record (for LGIB01000001.1).

- **-gencode**

  Summarize the standard genetic code and nucleotide and amino acid abbreviations, and list well-known genetic codes' numbers and names.

## SEE ALSO

[**efetch**(1)](/efetch/1.md), [**xfetch**(1)](/xfetch/1.md), [**xtract**(1)](/xtract/1.md).
