Skip to main content

scigantic-cryoet

CI PyPI PyPI - Python Version License

Search the CZ CryoET Data Portal from Python.

import scigantic_cryoet as cryoet

cat = cryoet.CryoetCatalog()
cat.search("Legionella", has_annotations=True)

Installation

$ pip install scigantic-cryoet

Why this exists

s3://cryoet-data-portal-public is public and anonymous, but its top level is nothing but numeric dataset ids. There is no search: finding "a tomogram of a ribosome in a mammalian neuron" otherwise means opening dataset_metadata.json by hand, once per dataset, across all ~370 of them. This package is a catalog and search layer on top of that bucket, the same move scigantic-empiar and scigantic-emdb made for their own archives.

It does not read tomogram pixel data or reimplement OME-Zarr access. The portal already ships a thumbnail.gif/snapshot.gif per dataset (unlike EMPIAR, which ships no previews at all), and the official cryoet-data-portal client already reads the zarr volumes well. This package's job ends at "which dataset, and where."

The catalog

CryoetCatalog loads a pre-built index so search/filter across every dataset is instant, no live reads. Measured against the full portal, 2026-09-02 (370/370 datasets, 0 failures, 129s to build):

field fill rate scope
title, description, organism, sample_type, disease, assay 100% every dataset
n_runs, authors, release/deposition dates 100% every dataset
organism (named), tissue, cell_type 97% / 96% / 94% every dataset
voxel_spacings, reconstruction_method, annotation_objects 98% / 98% / 92% one run per dataset
emdb_ids / empiar_ids present 12% / 6.5% cross-reference, when deposited

Read catalog_meta before trusting a fill rate. Fields drawn from dataset_metadata.json (title, organism, sample_type, disease, assay, cross-references, ...) are COMPLETE: every dataset has one. Fields that live one level down at the run/tomogram level (voxel_spacings, reconstruction_method, ctf_corrected, annotation_objects, ...) describe one run, named in sampled_run: walking every run of every dataset is thousands of listings for detail that barely varies within a dataset. catalog_meta names exactly which fields are sampled, so this can't be missed the way an earlier internal EMPIAR catalog once advertised "all ~3,000 entries" while actually holding 12.

cat = cryoet.CryoetCatalog()
cat.catalog_meta        # {"catalog_entries": 370, "sampled_fields": [...], ...}

cat.search(organism="Homo sapiens", has_annotations=True, sort="runs")
cat.search(has_emdb=True, sort="runs")   # datasets cross-referenced to EMDB, most runs first
cat.gallery(cat.search("spike"))         # HTML gallery, portal thumbnails

The index isn't published yet. CryoetCatalog() with no argument points at where the monorepo's onboarding batch job will land it. Until then, point it at a local file built with the catalog script:

cat = cryoet.CryoetCatalog(url="/path/to/cryoet-catalog.json")
# or: export SCIGANTIC_CRYOET_CATALOG=/path/to/cryoet-catalog.json

Live reads

CryoetClient hits the portal's bucket directly, for a dataset newer than whatever snapshot is loaded, or to double-check a stale field:

client = cryoet.CryoetClient()
client.dataset_metadata(10000)   # full dataset_metadata.json, live
client.runs(10000)               # run directory names, COMPLETE (not sampled)

Data license

The portal describes its data as "publicly available" / "open access" (checked 2026-09-02, portal homepage and Terms of Use), but does not state a specific license designation (CC0, CC-BY, or otherwise) on either page. Check a dataset's own citation/attribution requirements (via dataset_metadata.json's authors/publications fields, or the portal's own dataset page) before redistributing.

What this doesn't do (yet)

No synonym/alias expansion in search() (a plain "GPCR" won't match "G protein-coupled receptor"); scigantic-empiar's query expansion is the template once this has real query traffic to tune against. No walk of every run per dataset (see the fill-rate table above); if you need every run's metadata for a specific dataset of interest, use CryoetClient.runs() plus the official cryoet-data-portal client.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scigantic_cryoet-0.1.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scigantic_cryoet-0.1.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file scigantic_cryoet-0.1.1.tar.gz.

File metadata

  • Download URL: scigantic_cryoet-0.1.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for scigantic_cryoet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4dd8adab53d8ab41bf9b475033c90ab83d8eac60b93654638ab5bd1cd9a31932
MD5 feb8827f6f3ee47795d4ead7b8e052c4
BLAKE2b-256 2fbe25eef2fd950037bdb3548fddb67b3c4351eb3e8f9c79b2758b5a0ea0a5da

See more details on using hashes here.

File details

Details for the file scigantic_cryoet-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for scigantic_cryoet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c08407845c535254ff79587665aeaf7cfaec97e2fd7d8fc23656401fd781d1f4
MD5 5c2f3089736601aea97b6fe7fc61c6a8
BLAKE2b-256 504d0c1af10778b983512891824672f979ef8e91cb81c244dff97186c686a5ef

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page