Your first analysis
1. Open or create a slide
Section titled “1. Open or create a slide”lucem sample sample.ome.zarr # 2D synthetic fluorescence imagelucem sample volume.ome.zarr --depth 64 # 3D volumelucem-app sample.ome.zarr # open in the desktop appimport lucem
img = lucem.io.open("sample.ome.zarr")print(img.name, img.channels, img.pixel_size_um)
# Launch the browser or desktop UI on the slidelucem.web.serve(data=".", port=8080, open_browser=True)let pyramid = lucem_io::Pyramid::open("sample.ome.zarr")?;println!("{} ({} channels)", pyramid.name, pyramid.channels.len());2. Run a GPU pipeline
Section titled “2. Run a GPU pipeline”lucem run pipeline.json sample.ome.zarr --out out.ome.zarrfrom lucem.ops import Pipeline, stage
pipe = Pipeline([ stage.gaussian_blur(sigma=1.5), stage.rolling_ball(radius=30.0), stage.otsu_threshold(),])mask = pipe.process(tile)use lucem_pipeline::{Op, PipelineSpec};// Run the same pipeline JSON headlessly on CUDA, wgpu, or CPU3. Count cells & inspect in Analyze
Section titled “3. Count cells & inspect in Analyze”- In Explore, draw a rectangle (U) or use Histology → Find tissue.
- Open Histology → Count cells, choose a threshold or model (InstanSeg / StarDist), and press Find cells.
- Switch to Analyze (Ctrl+3) to filter, sort, plot histograms/scatter plots, and export CSV/Parquet.
4. Replay across a cohort
Section titled “4. Replay across a cohort”Save the project (Lucem → Save project in folder…) and replay its session.json headlessly:
lucem session run my-project/session.json slides/*.ome.zarr --out results/See Sessions.