Gradient Biotech
U

Menu

Pipelines

All pathology pipelines run in backend-analysis and are dispatched asynchronously. List live definitions and parameter schemas:

curl http://localhost:8001/pathology/pipelines

Ingestion and viewing

PipelineInputOutputs
tile_slideUploaded slide imageTile manifest, thumbnail, pyramid levels

Key parameters: tile_size (default 256 px).

Tissue analysis

PipelineInputOutputs
tissue_detectSlide with storage pathTissue mask PNG, region bounding boxes, focus QC summary
segment_cellsTiled slideCell overlay PNG, cells JSON, cell count, confidence summary

Segmentation parameters: model (default threshold_baseline; Cellpose/StarDist planned).

Spatial quantification

PipelineInputOutputs
spatial_quantificationCompleted segmentation runDensity heatmap, nearest-neighbor stats, region metrics, infiltration phenotype, CSV/JSON exports

Requires segment_cells to complete first.

Cohort (planned)

PipelineInputOutputs
cohort_compareMultiple slides with sample group labelsGroup comparison of pathology biomarkers

API endpoint exists; full UI workflow is in Phase 4 — see products/pathology/plan.md.

Job lifecycle

queued → running → complete | failed

Poll status: GET /pathology/jobs/{run_id}

Job dispatch endpoints:

POST /pathology/jobs/tile-slide
POST /pathology/jobs/tissue-detect
POST /pathology/jobs/segment-cells
POST /pathology/jobs/spatial-quantification
POST /pathology/jobs/cohort-compare

Versioning

Every run records pipeline_version from the analysis service configuration. Include run IDs and versions in methods sections for reproducibility.

Implementation sources

Tissue detection and baseline segmentation use scikit-image and OpenCV kernels. Future phases integrate Cellpose, StarDist, and HistomicsTK-style color deconvolution. See products/pathology/plan.md for the full implementation map.