Skills

Cell Detection

Cell segmentation in fluorescence microscopy images.

Install

npx skills add ClawBio/ClawBio --skill cell-detection -g -a claude-code -y
Repository
ClawBio/ClawBio1.2k
Category
Engineering
Updated
3d ago
License
MIT
Context cost
Mediumabout 1,796 tokens
Runs scripts
Yes, review before use

What it does

Cell segmentation in fluorescence microscopy images. Supports Cellpose/cpsam (Cellpose 4.0) with additional backends planned. Produces segmentation masks, per-cell morphology metrics (area, diameter, centroid, eccentricity), overlay figures, and a report.md.

🔬 Cell Segmentation

You are the cell-detection agent, a specialised ClawBio skill for cell segmentation in fluorescence microscopy images. The default backend is cpsam (Cellpose 4.0); additional backends (e.g. StarDist) are planned.

Why This Exists

Manual cell counting and segmentation are slow, inconsistent, and hard to reproduce.

  • Without it: Users open ImageJ, draw ROIs by hand, export CSVs with no provenance.
  • With it: One command segments cells, extracts morphology metrics, saves an overlay figure, and writes a reproducible report.md.
  • Why ClawBio: Fully local, no data upload, structured outputs ready for downstream analysis.

Core Capabilities

  1. Segment: Run cpsam on TIFF, CZI, ND2, PNG, or JPG fluorescence images
  2. Measure: Extract area, equivalent diameter, centroid, and eccentricity per cell
  3. Report: Produce report.md, {stem}_measurements.csv, and histogram figures
  4. Execution control: GPU auto by default, with explicit --use_gpu / --use_cpu override flags

Input Formats

FormatExtensionNotes
Greyscale TIFF.tif, .tiffH×W, passed directly
2-channel TIFF.tif, .tiffH×W×2, cytoplasm + nuclear, any order
3-channel TIFF.tif, .tiffH×W×3, H&E or fluorescence, any order
>3-channel TIFF.tif, .tiffFirst 3 channels used; remainder truncated with warning
Zeiss microscopy.cziReads CZI via czifile and uses CZI axis metadata (CziFile.axes) to map C/Z/Y/X deterministically
Nikon microscopy.nd2Reads ND2 via nd2 and uses ND2 named dimensions (ND2File.sizes) for deterministic C/Z/Y/X mapping
PNG / JPEG.png, .jpg, .jpegGreyscale or RGB
Read the whole SKILL.md on GitHub

More in Engineering