ConductScience Sequences
Contents

Installation guide · Install

Get a snapshot

Load a snapshot or build one from the public files, then check it again.

Searches run on a snapshot: a read-only folder built from public sequence files, with each sequence stored once with every record and publication that carries it. A snapshot's ID is its build date and a short hash, such as 2026-11-05-c456f6bdba29. A delta adds newer records to a snapshot without a rebuild. People see each delta as an addition: Collection on the search page offers Main plus New, and each watch runs again within the hour. In the data volume a snapshot lives in corpora/<snapshotId>/ and its deltas in deltas/<snapshotId>/<deltaId>/. Never change files there: the service checks them by their hashes.

There are two ways to get one: load a copy, or build one from the public files.

Load a copy

A copy comes as the snapshot folder and its SHA-256 list: one line for each file in the folder, with the SHA-256, two spaces and the path inside the folder. Put both in an import folder on the server:

/srv/sequences/import/2026-11-05-c456f6bdba29/
/srv/sequences/import/2026-11-05-c456f6bdba29.SHA256SUMS

The service reads the folder as user ID 10001, so make it readable by everyone:

sudo chmod -R a+rX /srv/sequences/import

You can check the files yourself first, with the standard tool:

cd /srv/sequences/import/2026-11-05-c456f6bdba29
sha256sum --check --quiet ../2026-11-05-c456f6bdba29.SHA256SUMS

Then load it into the data volume, which is made once and keeps everything the service stores:

docker volume create sequences-data
docker run --rm \
  -v sequences-data:/data \
  -v /srv/sequences/import:/import:ro \
  conductscience/sequences:<version> \
  load /import/2026-11-05-c456f6bdba29 --sums /import/2026-11-05-c456f6bdba29.SHA256SUMS

load stops at the first problem:

  1. It checks manifest.json against the list, and that the folder holds exactly the files the list names.
  2. It copies each file into a hidden folder in the data volume, checking its SHA-256 as it copies.
  3. It runs the snapshot's own checks: its counts, its hashes and its BLAST databases.
  4. It makes the folder read-only and gives it its ID. Only then does the service list it.

If a step fails, the copy is removed and the message names the file or check that failed. A running service lists a new snapshot on the next page load, so loading needs no restart. Loading a snapshot that is already there is refused. A delta also comes as a folder and its SHA-256 list, and loads the same way, after its snapshot and every delta before it. The import folder and the data volume each need the size of the snapshot while it loads, and you can delete the import copy afterwards.

Check which release the service runs before you copy a delta to the server: a delta needs release 0.107.0 or later. /api/openapi.json gives the release, with no sign-in needed. With sign-in off, run this on the server:

curl -fsS http://127.0.0.1:8765/api/openapi.json | python3 -c 'import json, sys; print(json.load(sys.stdin)["info"]["version"])'

With sign-in on, the service answers only requests that name an allowed host, so run the same command with https://sequences.example.org/api/openapi.json, replacing sequences.example.org with your host name. Run load with an image of release 0.107.0 or later too. If the service runs an older release, upgrade first (see Upgrades), then copy and load the delta.

Sources and terms

Each source keeps its own terms, and the UniProt Consortium asks that its copyright statement goes with every copy of UniProt data. Each snapshot and delta carries ATTRIBUTION.txt: who supplies each source, the release, the terms page and the notices, including UniProt's statement word for word. The search page shows the same text under Sources and terms. If a snapshot folder has no ATTRIBUTION.txt, as in snapshots built before it existed, print the notice and keep it with your copy of the snapshot:

docker run --rm -v sequences-data:/data conductscience/sequences:<version> \
  attribution 2026-11-05-c456f6bdba29 > 2026-11-05-c456f6bdba29.ATTRIBUTION.txt

Build from the public files

fetch downloads the public files and build turns them into a snapshot. fetch, crossref and antibody-names fetch (Antibody names) are the only commands that download anything. fetch reads from https://ftp.ncbi.nlm.nih.gov/genbank/, https://ftp.ebi.ac.uk/pub/databases/ and https://ftp.uniprot.org/pub/databases/uniprot/. GenBank publishes only its current release, so fetch needs that release number:

curl -s https://ftp.ncbi.nlm.nih.gov/genbank/GB_Release_Number

With the number it prints, such as 274.0:

docker run --rm -v sequences-data:/data conductscience/sequences:<version> \
  fetch --source all --release 274.0 --out /data/inputs/release-274.0

docker run --rm -e UV_THREADPOOL_SIZE=10 -v sequences-data:/data conductscience/sequences:<version> \
  build --inputs /data/inputs/release-274.0 --title "Public patent sequences" --workers 8
  • --source all fetches the patent files and Swiss-Prot. TrEMBL and the ESTs are large, so all leaves them out. To fetch them too, add --source uniprot-trembl --source ena-est to the same fetch command.
  • fetch opens at most four connections to one server, records each file's size and SHA-256, and picks up where it stopped if you run it again after an interruption.
  • build checks every file against that record, then parses, merges and indexes them, builds the BLAST databases, runs its checks and seals the snapshot. It prints the snapshot ID at the end.
  • Set UV_THREADPOOL_SIZE to the number of workers plus two. --resume restarts a failed build after its last finished stage.

As a guide, from the November 5, 2026 build of the patent sets and Swiss-Prot: the source files take about 25 GB, the build needs up to 79 GiB more working space in the data volume while it runs, and the finished snapshot keeps 38 GiB. Before you run fetch, leave at least 110 GiB free in the volume, which covers the source files and the build together. When the snapshot is built, and its source files are scanned for the species of each hit (see Species of each hit), the source files can go:

docker run --rm -v sequences-data:/data --entrypoint rm conductscience/sequences:<version> \
  -rf /data/inputs/release-274.0

Check a snapshot again

docker run --rm -v sequences-data:/data conductscience/sequences:<version> verify 2026-11-05-c456f6bdba29
docker run --rm -v sequences-data:/data conductscience/sequences:<version> deltas 2026-11-05-c456f6bdba29

verify runs the same checks as the load, and exits with 1 if any fails. deltas lists a snapshot's deltas in order. sums <snapshotId> prints the folder's SHA-256 list, to compare with the list that came with the copy.

Guide version 1.63.0 · For Sequences 0.155.0