cellprofiler
Skill by K-Dense-AI
Runs reproducible CellProfiler pipelines for nuclear segmentation, nuclear counts and per-object fluorescence measurements on 2D TIFF images. Aimed at researchers running batch microscopy assays.
Install cellprofiler
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/cellprofiler ~/.claude/skills/cellprofilerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/cellprofiler ~/.gemini/antigravity-cli/skills/cellprofilerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
CellProfiler is a skill that runs reproducible CellProfiler pipelines for nuclear segmentation, nuclear counts and per-object fluorescence measurements. It is built for one 2D grayscale TIFF nuclear channel per field, with bright nuclei on a dark background. The bundled assay starts from a nuclei.cppipe pipeline with an initial diameter range of 8 to 80 pixels and global Otsu thresholding.
The helper script has three steps. Prepare builds a LoadData CSV from an image manifest, run executes CellProfiler headless with a saved pipeline copy, and summarize checks the output tables. Each run records the pipeline checksum, input image checksums and sample QC in assay_qc.json, and saves overlays for visual inspection. The skill is aimed at researchers running repeatable batch microscopy measurements on 2D fluorescence assays. The source notes that prepare and summarize work without CellProfiler installed.
Written from the project's SKILL.md and checked against it.
What it can do
- Build LoadData manifestThe prepare command turns an image manifest CSV into a LoadData file for CellProfiler.
- Headless batch runThe run command executes CellProfiler with a saved pipeline copy and a done-file marker.
- Output summaryThe summarize command checks measurement CSV contents independently of the engine run.
- Nuclei segmentation starter pipelineProvides a starter pipeline with primary object identification, intensity and size measurements, overlays and CSV export.
- Assay QC reportWrites assay_qc.json with run status, command, checksums, object counts and intensity and area checks.
- Segmentation overlaysSaves green nuclear boundary images over the input for visual inspection.
What you need
- Python 3.12 or later with numpy and tifffile
- CellProfiler 4.2.8 application or container for segmentation
- Network access for installation only
Try asking
- Count nuclei in my DAPI TIFF folder and export per-nucleus intensity.
- Build a LoadData CSV from my image manifest for the nuclei assay.
- Summarize the results folder and check the nuclei measurement tables.
Good to know
- Accepts one 2D grayscale uint8 or uint16 TIFF nuclear channel per field, not RGB, z-stacks or float images.
- Not designed for volumetric segmentation, multichannel cell painting or tissue-specific models.
- Run requires a fresh, empty output directory and rerunning needs a new output folder.
- The optional synthetic engine test was skipped in the source review because no engine was configured.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cellprofiler/SKILL.md, skills/cellprofiler/scripts/nuclei_assay.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
assets/nuclei.cppipe6 KB -
references/runtime-and-qc.md8 KB -
scripts/nuclei_assay.py11 KB
Alternatives to cellprofiler
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
cellprofiler: common questions
Does a passing count prove correct segmentation?
No. The source says a count check cannot prove correct segmentation, so overlays and independently annotated fields should be inspected.
Can I compare intensities across different camera bit depths?
The source advises against it without an explicit calibration, because LoadData divides by the integer storage maximum and ignores camera metadata for scaling.
Do I need CellProfiler installed to prepare and summarize?
No. The source states that prepare and summarize work without CellProfiler, which is only needed for the segmentation run.
How do I install cellprofiler?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cellprofiler free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cellprofiler safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cellprofiler?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
