Package: gatekeepR 1.1.0

R. Heller

gatekeepR: Reviewable Marker Gating and Phenotyping for Multiplexed Imaging

Turns per-cell marker measurements from multiplexed tissue images into reviewed cell types and state calls. Declares a marker panel and an ordered phenotype hierarchy as data, decides per image whether each marker can be called at all, and estimates thresholds with documented methods (manual, density valley, density tail, two-component Gaussian mixture, population density crossing on an embedding and parent-specific crossing). A single classifier is shared by batch code and the review application. Reviewer decisions are kept in append-only ledgers, and a review is locked into a content-addressed export whose labels, decisions and deletion histories can be replayed and verified.

Authors:R. Heller [aut, cre, cph]

gatekeepR_1.1.0.tar.gz
gatekeepR_1.1.0.zip(r-4.7-any)gatekeepR_1.1.0.zip(r-4.6-any)gatekeepR_1.1.0.zip(r-4.5-any)
gatekeepR_1.1.0.tgz(r-4.6-any)gatekeepR_1.1.0.tgz(r-4.5-any)
gatekeepR_1.1.0.tar.gz(r-4.7-any)gatekeepR_1.1.0.tar.gz(r-4.6-any)
gatekeepR_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
gatekeepR/json (API)

# Install 'gatekeepR' in R:
install.packages('gatekeepR', repos = c('https://cttir.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cttir/gatekeepr/issues

On CRAN:

Conda:

4.32 score 59 exports 9 dependencies

Last updated from:4ecea65d4d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK364
source / vignettesOK260
linux-releaseOK266
macos-releaseOK326
macos-oldrelOK298
windows-develOK349
windows-releaseOK445
windows-oldrelOK384
wasm-releaseOK121

Exports:gk_appgk_apply_candidate_rulesgk_apply_residual_modelgk_callabilitygk_cellspecgk_classifygk_configgk_config_hashgk_correctgk_decide_structuregk_disposegk_embedgk_example_configgk_example_pathgk_exportgk_fit_residual_modelgk_fixed_signal_callsgk_fixed_state_diagnosticsgk_fixed_threshold_callsgk_flaggk_hierarchygk_import_cutsgk_import_residual_modelgk_ledgersgk_load_reviewgk_lockgk_min_supportgk_overridegk_panelgk_plot_densitygk_plot_dotplotgk_plot_embeddinggk_plot_mapgk_plot_overviewgk_plot_statesgk_plot_thresholdsgk_preparegk_read_cellspecgk_read_configgk_read_exportgk_refinementgk_replace_reviewgk_replaygk_revert_lastgk_reviewgk_rulegk_save_reviewgk_set_cutgk_set_stategk_signal_policygk_simulategk_state_callsgk_structuresgk_threshold_methodsgk_thresholdsgk_validate_configgk_verify_exportgk_write_cellspecgk_write_config

Dependencies:clidata.tabledigestfilelockfsjsonlitelifecycleMASSrlang

gatekeepR: a reviewable marker gating workflow
The complete workflow | Outputs and auditability | Optional interfaces

Last update: 2026-11-03
Started: 2026-09-15

Review and reproducibility

Last update: 2026-11-03
Started: 2026-09-15

Audit closure checklist

Last update: 2026-10-28
Started: 2026-09-15

Configuration as data

Last update: 2026-10-28
Started: 2026-09-15

Methods and limitations

Last update: 2026-10-28
Started: 2026-09-15

Threshold methods and callability

Last update: 2026-10-28
Started: 2026-09-15

Readme and manuals

Help Manual

Help pageTopics
Launch the gatekeepR review applicationgk_app
Evaluate declarative rules on ternary candidate callsgk_apply_candidate_rules
Callability of markers per imagegk_callability
Build a cell table in the cellspec 1.0 formatgk_cellspec
Classify cells with the configured ordered hierarchygk_classify
Assemble a gating configurationgk_config
Canonical hash of a configurationgk_config_hash
Correct prepared marker scoresgk_correct
Decide one structure or bounding boxgk_decide_structure
Set a cell dispositiongk_dispose
Compute a reproducible marker embedding and density populationsgk_embed
Example configuration for a generic tumour-immune panelgk_example_config
Paths to bundled example datagk_example_path
Write a locked review exportgk_export
Freeze and apply a fitted residual score spacegk_apply_residual_model gk_fit_residual_model
Apply fixed cutoffs with explicit raw-support availabilitygk_fixed_signal_calls
Diagnose fixed state thresholds with explicit parent and localization scopegk_fixed_state_diagnostics
Apply fixed score thresholds without raw-support assessmentgk_fixed_threshold_calls
Declare a phenotype hierarchygk_hierarchy
Import identity-marker cuts without replacing other ledgersgk_import_cuts
Import externally frozen residual parameters without fittinggk_import_residual_model
Return the four review ledgersgk_ledgers
Load a review checkpoint and acquire its single-writer lockgk_load_review
Lock a review into an immutable snapshotgk_lock
Callability rules for a markergk_min_support
Declare a marker panelgk_panel
Plot a threshold density and its evidence poolsgk_plot_density
Plot marker means by classified cell typegk_plot_dotplot
Plot an embedding coloured by population or classificationgk_plot_embedding
Plot cell centroids on an image mapgk_plot_map
Make a compact overviewgk_plot_overview
Plot state calls for one imagegk_plot_states
Plot thresholds for one imagegk_plot_thresholds
Prepare marker signals for gatinggk_prepare
Read a verified exportgk_read_export
Replace selected review ledgers from a saved checkpointgk_replace_review
Replay all effective review decisionsgk_replay
Undo the most recent review action without deleting historygk_revert_last
Create an editable review stategk_review
Save a review checkpoint atomicallygk_save_review
Set an identity or state threshold in the review ledgergk_set_cut
Enable, disable or set a parent-specific state callgk_set_state
Declare which measurement represents each markergk_signal_policy
Simulate a multiplexed tissue slidegk_simulate
Call state markers within configured parent setsgk_state_calls
Find epithelial structures for reviewgk_structures
Threshold methods available in gatekeepRgk_threshold_methods
Estimate per-image marker thresholdsgk_thresholds
Validate a gating configurationgk_validate_config
Verify content identity, replay and reconciliation invariantsgk_verify_export
Read and write cellspec directoriesgk_read_cellspec gk_write_cellspec
Read and write configuration filesgk_read_config gk_write_config
Hierarchy rules, flags, refinements and overridesgk_flag gk_override gk_refinement gk_rule hierarchy-elements