8000 GitHub - AI-HHMI/lmd-catalog: Yet another approach to dealing with miao configs and cluster data · GitHub
[go: up one dir, main page]

Skip to content

About

Yet another approach to dealing with miao configs and cluster data

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

lmd-catalog

Programmatic catalog, metadata index, and Miao VolumeConfig resolver for the Large Microscopy Dataset (LMD) corpus at /groups/miaai/miaai/lmd-v0.0.1/data.

  • 838 OME-Zarr volumes across 102 datasets discovered directly from cluster storage.
  • 27 annotation-tracking issues synced from GitHub Projects (AI-HHMI/projects/1).
  • Direct Miao integration: .to_miao() maps catalog entries directly into typed VolumeConfig instances without eager PyTorch imports or CUDA initialization.
  • Fast: Sub-50ms import latency, pure Pydantic metadata.

Quickstart

pip install git+https://github.com/JaneliaSciComp/lmd-catalog.git
import lmd_catalog as lmd

# Get volume by name or path
vol = lmd.get("em-UNKNOWN-lucchi-hippocampus/crop-001_train")

# Resolve directly into a miao VolumeConfig for training/inference
cfg = vol.to_miao(spatial_axes="zyx")

# Find volumes with ground truth annotations
annotated = lmd.find(has_ground_truth=True)
for v in annotated:
    print(v.name, v.ground_truth_paths)

# Query all Mouse datasets with ground truth annotations
mouse_gt = lmd.find(organism="Mouse", has_ground_truth=True)
for v in mouse_gt:
    cfg = v.to_miao()
    print(v.dataset, cfg.label_key, cfg.bounding_box)

See examples/query_mouse_gt_datasets.py for a complete CLI script with JSON output and metadata formatting.


Examples

The examples/ directory contains standalone runnable scripts demonstrating common consumer patterns:

Development & Verification

# Run test suite (<50ms, verifies all 838 volumes resolve to valid VolumeConfigs)
pytest tests/ -v

# Type checking
pyright
mypy src tests examples

About

Yet another approach to dealing with miao configs and cluster data

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0