gate_programmatic: Programmatically gate data with pre-recorded lasso selection...

View source: R/methods.R

gate_programmaticR Documentation

Programmatically gate data with pre-recorded lasso selection coordinates

Description

A helpful way to repeat previous interactive lasso selections to enable reproducibility. Programmatic gating is based on the package [gatepoints](https://github.com/wjawaid/gatepoints) by Wajid Jawaid.

Usage

gate_programmatic(x, y, programmatic_gates)

Arguments

x

A vector representing the X dimension.

y

A vector representing the Y dimension.

programmatic_gates

A 'data.frame' of the gate brush data, as saved in 'tidygate_env$gates'. The column 'x' records X coordinates, the column 'y' records Y coordinates and the column '.gate' records the gate number.

Value

A vector of strings, of the gates each X and Y coordinate pair is within.


stemangiola/tidygate documentation built on Sept. 17, 2024, 10:43 p.m.