makeRandomGate: Generate a random gate

Description Usage Arguments Details Value

View source: R/raw.R

Description

This function generates a random gate on a randomly selected tube; flowForest builds many such gates to find ones which can be useful for separating classes. In principle, there can be many ways in which such gate is generated, but the current version of flowForest only supports one, pseudosphere.

Usage

1
makeRandomGate(set, gateMode)

Arguments

set

Flow cytometry measurements, in a form of an object of the class tubeset, as that created by the function loadTubeset.

gateMode

Mode of the gate generation; only pseudosphere currently supported.

Details

In the pseudosphere mode, the code first selects a random tube. Then, a random event from the tube, which will be the geometrical centre of the final gate. Finally, the gate is expanded in all dimensions, by a random fraction of the range between 5-th and 95-th percentile in a certain dimension.

Value

Object of a class gate, random gate of a mode d.


flowforest/flowforest documentation built on April 14, 2020, 4:41 a.m.