
Derive the cuts a specification places within parent populations
Source:R/populations.R
derive_scoped_cuts.RdFor each parent named in the specification's cut_scope (see
resolve_population_parents()), the parent is scored in this sample and
every marker a child places within it is cut on the parent's events alone,
with the same rule the CD45+ cuts use (resolve). Bounds for bright and
intermediate requirements are derived within the parent too. Parents are
processed outermost first, so a parent that is itself scoped is scored with
its own scoped cuts.
Usage
derive_scoped_cuts(
tmat,
thr,
parent,
spec,
hi_thr = NULL,
resolve = NULL,
min_events = 200L
)Arguments
- tmat
transformed marker matrix.
- thr
named CD45+ cuts.
- parent
the CD45+ mask.
- spec
resolved specification.
- hi_thr
CD45+ upper bounds, from
derive_intermediate_bounds().- resolve
function(marker, x)returning aresolve_threshold()result for valuesx. Default:resolve_threshold()with its defaults.- min_events
fewest parent events a cut is derived from. Default 200, the least the tail rule accepts.