Downloads

About these files

Pre-built bulk exports of the Serotype Database. Files are generated whenever a new HATS version is imported and served directly from object storage — no API calls, no rate limits, no per-row overhead. Each file is also produced in CSV and TSV so you can load it in your tool of choice without conversion.

Bulk API queries are capped at 5,000 rows; use these files for anything larger.

Files end in .gz — gzip-compressed for fast downloads. Decompress with gunzip file.json.gz, or load directly: pd.DataFrame(json.load(gzip.open("file.json.gz"))["data"]) / read.csv(gzfile("file.csv.gz")) / gunzip -c file.json.gz | jq .data.

Every file says what it is. JSON files hold { metadata, data } (the list files keep their named lists beside metadata); CSV and TSV rows end with version and build_id columns. The version names the data (HATS release and IPD-IMGT/HLA release); the build_id changes whenever the files are regenerated, so cite it to pin an exact file. The CREG files have a version of their own: they are serotype.org's transcription of the published sources, not HATS or IPD-IMGT/HLA data.

Levels. The HATS assignment is in hats_associated, hats_split and hats_broad, blank where a level does not exist, as in HATS's RESULTS tables (A*02:02 is A0202, blank, A2; A*01:01 is blank, blank, A1); hats_antigen is the finest level and hats_level says which it is. WHO's own assignment has the same shape in who_level, who_associated, who_split and who_broad, blank where WHO assigns no antigen of its own. The JSON files repeat this in their metadata (levels). The Introduction page shows each pattern.

Research use only. Each filename carries a RESEARCH_USE_ONLY_ prefix and a random suffix, so links are not guessable — get them here or from the getDownloads API query, not by constructing paths.