This function selects a random sample and reads the FCS files, remove zeros and beads and then adds a row ID column and writes a new FCS file. It uses files on current working directory. Files should have same parameters desc/column names.

pre_gate(
  sample_size = 20,
  use.current.model = TRUE,
  model_beads = model_beads,
  alg_bd = "RF"
)

Arguments

sample_size

A numeric vector. Number of samples (files) to be used.

use.current.model

Logical. If FALSE, an object of class train can be passed to the argument model_beads. Default is TRUE.

model_beads

Object of class train. Needed if use.current.model is FALSE.

alg_bd

A character vector with the name of the algorithm used to train model_beads. It can be 'RF' for Random Forest or 'XGB' for XGBoost.