跳到主要内容

cellprofiler 精选

Runs reproducible CellProfiler microscopy pipelines for nuclear segmentation, cell counts, and per-object fluorescence measurements. Supports image/channel manifests, headless batch execution, segmentation overlays, and measurement QC for 2D fluorescence assays.

在 GitHub 打开

安装方式

cp -r skills/cellprofiler ~/.claude/skills/cellprofiler

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills.git

依赖与权限

  • 无需 API Key
  • 需要联网访问外部服务
  • 依赖外部命令:python make convert
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。

SKILL.md 正文

来源 K-Dense-AI/scientific-agent-skills@a1043ef · 许可 MIT · 内容未修改

CellProfiler quantitative microscopy

Use this skill when a user needs a repeatable CellProfiler .cppipe, nuclear counts, nuclear

fluorescence, or batch microscopy measurements. The bundled assay accepts **one 2D grayscale

TIFF nuclear channel per field**, with black-is-zero (MINISBLACK) pixels and bright nuclei on a

dark background. Palette and white-is-zero TIFFs need an explicit conversion. For volumetric

segmentation, multichannel cell painting, or tissue-specific models, design a separate pipeline

and validate those assumptions rather than silently projecting or splitting the images.

The official application and manual remain 4.2.8. PyPI publishes 4.2.8.1; its seven

modules used here and embedded Threshold module match the 4.2.8 source, but this review did

not execute that native distribution. Keep the helper environment separate from CellProfiler's

older dependency stack; see the runtime reference for the verification boundary.

Workflow

  1. Establish the acquisition unit: plate, well, site, time point if present, pixel size, nuclear

channel identity, camera bit depth, exposure, and biological replicate. Keep original image

intensities. Convert proprietary formats explicitly with Bio-Formats before using this helper.

  1. Create the CSV manifest below. image_path is absolute or relative to the manifest; sample IDs use letters, digits, dots, dashes, or underscores; sample IDs

and plate/well/site combinations are unique. Use a nonnumeric sample ID such as sample_001:

LoadData infers column types and can otherwise turn 001 into 1. Avoid surrounding

whitespace in identifiers. TIFFs must be uint8 or uint16, single plane/series/resolution, and

nonconstant. The helper rejects RGB, z-stacks, and float images rather than guessing channels.

  1. Use [assets/nuclei.cppipe](assets/nuclei.cppipe) as a starting pipeline: LoadData →

IdentifyPrimaryObjects → intensity/size measurements → outline overlay → CSV export.

The initial diameter range is 8–80 pixels, with global Otsu thresholding, no threshold

smoothing, and border objects excluded. Calibrate this

range from representative images and acquisition pixel size before comparing conditions.

  1. Run a small pilot spanning controls, low/high density, dim images, and plate edges. Inspect

saved overlays for missed nuclei, splits, merges, and edge exclusions. Adjust thresholding

and declumping in CellProfiler, export the tuned .cppipe, and pass --pipeline to preserve

it. Do not choose settings separately for each treatment to make their counts agree.

  1. Freeze the tuned pipeline and analyze the batch. Review input saturation warnings, zero

counts, count/area distributions, and control behavior. Aggregation for inference belongs at

the biological replicate level; thousands of cells from one well are not independent wells.

Run the bounded assay

From this skill directory, create images.csv:

sample_id,image_path,plate,well,site
control_A01_1,images/control_A01_1_DAPI.tif,Plate1,A01,1
python scripts/nuclei_assay.py prepare images.csv load_data.csv
python scripts/nuclei_assay.py run images.csv results --executable cellprofiler
python scripts/nuclei_assay.py summarize results

run requires a fresh/empty output directory and executes CellProfiler with -c -r, a saved

pipeline copy, --data-file, output folder, and --done-file. Success requires exit code zero,

a Complete marker, and valid measurement tables. It records the command, pipeline checksum,

input image checksums, and sample QC in assay_qc.json before execution, retaining failed

status and the error if execution or output validation fails. CellProfiler output goes to

cellprofiler.log. Rerun in a new output folder. summarize checks CSV contents independently;

it does not prove an engine run completed.

Custom pipelines must preserve DNA, Nuclei, Metadata_Sample, integer-dtype scaling, and

the unprefixed single-object Image.csv/Nuclei.csv export contract. Keep the required

intensity/area measurements. A renamed object set or different intensity scale needs a

corresponding helper adaptation, not an unchecked --pipeline substitution.

The executable can also be the CellProfiler application launcher or a local container launcher;

see [references/runtime-and-qc.md](references/runtime-and-qc.md) for the container target,

filesystem mapping, and verification evidence. prepare and summarize work without CellProfiler.

Interpret the outputs

  • Image.csv: one image/field row, including Count_Nuclei and acquisition metadata.
  • Nuclei.csv: one accepted object per row, with mean/integrated DNA intensity, area, and shape.
  • *_nuclei.png: green nuclear boundaries over the input image for visual QC.
  • pipeline.cppipe and cellprofiler.done: the exact pipeline copy and engine completion marker.
  • assay_qc.json: run status, unique image/object keys, exact counts, finite mean/integrated

intensity and positive area checks, field mean area in pixels, and storage saturation flags.

LoadData ignores camera metadata for scaling in this asset and divides by the integer storage

maximum: uint8 → 255, uint16 → 65535. A 12-bit camera stored in uint16 therefore has a maximum

near 0.0625. Do not compare intensities across different bit depths, exposures, gains, or staining

batches without an explicit calibration. A saturated image can pass segmentation while its

intensity measurement is unusable. Illumination correction and background subtraction are

assay-specific additions; this starter does neither.

The saturation fraction only counts pixels at the storage maximum. A 12-bit detector may

saturate at 4095 while the uint16 storage maximum is 65535; inspect the known acquisition ceiling

separately. Integrated intensity sums pixel values and may exceed 1; only per-pixel mean

intensity is constrained to 0–1. The field's mean nuclear intensity weights each nucleus

equally, rather than weighting each pixel equally.

A count check cannot prove correct segmentation. Inspect overlays and independently annotated

fields; report boundary exclusions and segmentation errors alongside the biological result.

The optional synthetic engine test targets a known three-nucleus example, not assay performance

on unseen cell types. It was skipped in the current review because no engine was configured.

Sources

质量与来源

所属仓库
K-Dense-AI/scientific-agent-skills
仓库星标
4.9 万
最近更新
今天
采集时间
今天
commit
a1043ef544e3
内容指纹
sha256:b822ed64acb189d
文件路径
skills/cellprofiler/SKILL.md

同仓库其它 Skill

查看全部 49 个
13c-metabolic-flux
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps, mfapy isotope simulation, constrained multistart fitting, and flux-profile diagnostics. Use for 13C-MFA, carbon tracing, mass isotopomer distributions (MDVs/MIDs), positional isotopomers, parallel tracer experiments, and determining whether labeling data constrain a pathway flux. Distinguishes measured-label inference from COBRA flux balance analysis and flags experiments requiring nonstationary MFA.
精选 K-Dense-AI/scientific-agent-skills 4.9 万 原文
Claude CodeCodex CLICursor
adaptyv
Uses the Adaptyv Bio Foundry API and Python SDK to design protein characterization experiments, estimate costs, submit sequences, monitor laboratory progress, and retrieve results. Applies to Adaptyv Foundry, its target catalog, binding screening and affinity assays, thermostability, expression, fluorescence, epitope binning, and enzyme activity workflows, including code using adaptyv or FoundryClient.
精选 K-Dense-AI/scientific-agent-skills 4.9 万 原文
Claude CodeCodex CLICursor
aeon
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.
精选 K-Dense-AI/scientific-agent-skills 4.9 万 原文
Claude CodeCodex CLICursor
alphagenome
AlphaGenome API key, free for non-commercial use from deepmind.google.com/science/alphagenome. ALPHA_GENOME_API_KEY is accepted as an alternative spelling.
精选 K-Dense-AI/scientific-agent-skills 4.9 万 原文
Claude CodeCodex CLICursor
analytical-method-validation
Plans, executes, and documents validation, verification, and transfer of analytical procedures under the governing framework - ICH Q2(R2) and Q14, USP <1220>/<1225>/<1226>, ICH M10 bioanalytical, CLSI EP, or ISO/IEC 17025. Use for HPLC, LC-MS/MS, GC, CE, ICP-MS, dissolution, qNMR, qPCR, NIR, and ligand binding or cell-based assays whenever the question is whether a procedure is fit for its intended purpose. Triggers include "method validation", "analytical method validation", "AMV", "validation protocol", "acceptance criteria", "linearity", "reportable range", "accuracy and precision", "repeatability", "intermediate precision", "recovery", "LOD", "LOQ", "detection limit", "quantitation limit", "specificity", "robustness", "method transfer", "method comparison", "Deming", "Passing-Bablok", "Bland-Altman", "equivalence testing", "OOS investigation", "ICH Q2", "Q2(R2)", "Q14", "USP 1225", "ICH M10", "incurred sample reanalysis", "ISR", "CLSI EP", and any request to show that an assay works.
精选 K-Dense-AI/scientific-agent-skills 4.9 万 原文
Claude CodeCodex CLICursor
anndata
Handles annotated matrices in single-cell analysis, .h5ad and Zarr files, and integration with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
精选 K-Dense-AI/scientific-agent-skills 4.9 万 原文
Claude CodeCodex CLICursor

相似 Skill

更多「编码」
access
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the iMessage channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Check iMessage channel setup and review access policy. Use when the user asks to configure iMessage, asks "how do I set this up" or "who can reach me," or wants to know why texts aren't reaching the assistant.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage Telegram channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Telegram channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端