Asking the archive…
Asking the archive…
Take it away
The catalogue as files, and the addresses a program can call. No key, no sign-in.
| Shelf | Rows | File | Size of the CSV | SHA-256 of the CSV |
|---|---|---|---|---|
| Mammals | 1,155 | csvtsvjson | 233 kB | a21f5bd3c4558702… |
| Birds | 2,034 | csvtsvjson | 399 kB | 834a51d8524f9de2… |
| Reptiles | 495 | csvtsvjson | 97 kB | a5a23dda87cc8b7e… |
| Amphibians | 289 | csvtsvjson | 58 kB | 6025687aa93845d2… |
| Fishes | 2,968 | csvtsvjson | 598 kB | 4a929f00787f5620… |
| Insects | 6,383 | csvtsvjson | 1.2 MB | d8fd7a178f75296d… |
| Other arthropods | 782 | csvtsvjson | 157 kB | 4865686912b39f99… |
| Molluscs | 647 | csvtsvjson | 120 kB | 5d86284857e12d01… |
| Other animals | 1,393 | csvtsvjson | 268 kB | 4d23a1d1ad5d7cf2… |
| Flowering plants | 3,649 | csvtsvjson | 733 kB | 5fa1d015979f2784… |
| Other land plants | 392 | csvtsvjson | 75 kB | 4bd8a99a13ae8e8f… |
| Green algae | 324 | csvtsvjson | 66 kB | d45ef1b2e07f4e21… |
| Fungi | 7,601 | csvtsvjson | 1.6 MB | 9e7b1ca9f2f50088… |
| Protists & other eukaryotes | 1,187 | csvtsvjson | 238 kB | 59bc495dd54020d1… |
| Bacteria | 110,218 | csvtsvjson | 25.1 MB | 90a455b66287989d… |
| Archaea | 3,627 | csvtsvjson | 873 kB | d4087f44ee5e1546… |
| Viruses | 36,631 | csvtsvjson | 6.0 MB | 2134b9b42edb3347… |
| Organelle genomes | 33,451 | csvtsvjson | 6.2 MB | 522315e4d3db265d… |
One row for each of 143,144 species of cellular life, 36,631 viral genomes and 33,451 organelle genomes: accession, NCBI taxon number, names, lineage, length, GC content, finish, genes, year, submitter, and the archive’s warnings where it has any. The first line of every file names the shelf and the date of the cut. How a row is chosen is set out in About & sources.
The catalogue is cut again every week, and earlier cuts are not kept online. Keep the file you worked from, and record its date; the fingerprint tells a copy from a later cut. On any shelf, the download link follows whatever the table has been narrowed to.
Every address answers in JSON unless it names a file, and may be called from a notebook or from a page on another site. Addresses under /api/v1/ will keep their meaning.
Python
import io, requests, pandas as pd
site = "https://the-dna-library.vercel.app"
cut = requests.get(f"{site}/api/v1/catalogue").json()["cut"] # the date to cite
# a shelf as a table (the first line of each file is a comment naming the cut)
mammals = pd.read_csv(f"{site}/api/v1/download?shelf=mammals", comment="#")
# which of my species have a genome?
mine = "Homo sapiens\nPan paniscus\nThylacinus cynocephalus"
found = pd.DataFrame(requests.post(f"{site}/api/v1/batch", data=mine).json()["results"])
# the first hundred bases of the human mitochondrial genome
seq = requests.get(f"{site}/api/v1/seq", params={"acc": "NC_012920.1", "from": 1, "to": 100}).json()["seq"]R
site <- "https://the-dna-library.vercel.app" mammals <- read.csv(paste0(site, "/api/v1/download?shelf=mammals"), comment.char = "#") apes <- read.delim(paste0(site, "/api/v1/download?shelf=mammals&family=Hominidae&format=tsv"), comment.char = "#")
Shell
curl -s "https://the-dna-library.vercel.app/api/v1/record?acc=GCF_000001405.40" curl -s --data-binary @species.txt "https://the-dna-library.vercel.app/api/v1/batch" curl -sO -J "https://the-dna-library.vercel.app/api/v1/download?shelf=fungi&format=tsv"
The catalogue addresses answer from the library’s own files and can be called freely. Sequences, features, flat files and genes are fetched from NCBI as they are asked for, and NCBI allows the library as a whole only a few requests a second: for sequence in bulk, take the accessions from the catalogue and go to NCBI or the European Nucleotide Archive directly. Search by sequence has no address for programs; NCBI offers its own.
The DNA Library (2026). The DNA Library: a catalogue of the genome assemblies in GenBank, cut from the archive on 2026-11-30. The DNA Library, accession catalogue 2026-11-30. https://the-dna-library.vercel.app (accessed 2026-11-30).
Cite each record by its own accession and depositor as well; every record page gives its citation. Methods sets out how each computed figure is worked out.
The records are the archives’. GenBank, the European Nucleotide Archive and the DNA Data Bank of Japan make them available to all without restriction on use, under the policy of the International Nucleotide Sequence Database Collaboration, and credit for each belongs to its submitters. The catalogue is a compilation of those records and adds nothing that cannot be checked against them.