# Blank phenotype-rule documentation worksheet

Version 1.0 | 2026-11-06 | Research documentation only

`phenotype-rules.csv` is a header-only CSV. It contains no example cases, default thresholds, phenotype definitions, or measured results. Copy it before entering project data. It is NOT a tested software import schema.

Use one row per phenotype–marker requirement; repeat phenotype-level fields consistently across rows. Join multi-marker lists with semicolons. Keep immutable rule versions; never overwrite an approved version without a change record.

## Fields

- `rule_version`, `phenotype_name`, `parent_class`: locally unique rule version, operational phenotype name, and parent identity. Use `not_applicable` where no parent exists.
- `required_positive_markers`, `required_negative_markers`, `not_required_markers`: explicit sets; not-required is not negative. List one marker in `marker` per measurement row.
- `channel_id`, `compartment`, `feature_name`: exact channel identifier, nucleus/cytoplasm/membrane estimate/whole-cell mask, and exported feature name.
- `units`, `transformation`: instrument/export units and complete transformation or normalization description, including parameters. Never imply arbitrary fluorescence units are concentration units.
- `gate_method`: manual image-linked review or exact automatic method and version.
- `lower_boundary`, `upper_boundary`: numeric values on the declared scale. A binary rule may use only `lower_boundary`; for an uncertainty band specify both and explain which calls each region creates in `notes`.
- `equality_policy`: explicitly define behavior at each boundary; there is no universal > versus >= convention.
- `gate_scope`: exact marker/image/batch/cohort scope. Record image-specific gates as separate rows.
- `control_reference`: IDs or paths for control material and review records.
- `failed_marker_policy`, `borderline_policy`: unavailable and borderline handling, not a substitution of missing values with zero.
- `conflict_priority`: explicit conflict handling or approved hierarchy; record unresolved conflicts rather than silently first-matching.
- `eligible_cell_policy`, `denominator`: accepted-object and region rules, plus all eligible cells/parent cells/fully evaluable cells as appropriate.
- `development_specimens`, `held_out_specimens`: specimen IDs or references to separate manifests. Keep identifiable patient data out of public copies.
- `reviewer`, `review_date`, `image_review_references`: actual reviewer identity, ISO date, and coordinates/image IDs or review-record paths.
- `software_version`, `notes`: relevant tool/pipeline versions, assumptions, exclusions and change rationale.

Blank means not yet specified, never zero or negative. Use `not_evaluable` for an unavailable observation and `not_applicable` for a structurally irrelevant field. Resolve all required blanks before analysis. This worksheet does not implement gating or calculate performance.
