: on a flowCore::flowFrame, reset 'Original_ID' column.
This column can be used in plots comparing the events pre and post gating.
If the 'Original_ID' column already exists, the function replaces
the existing IDs by the user provided ones.
If not, an appendCellID()
is called.
Usage
resetCellIDs(ff, eventIDs = seq_len(flowCore::nrow(ff)))
Examples
data(OMIP021Samples)
ff <- appendCellID(OMIP021Samples[[1]])
subsample_ff <- subsample(ff, 100, keepOriginalCellIDs = TRUE)
# re-create a sequence of IDs, ignoring the ones before subsampling
reset_ff <- resetCellIDs(subsample_ff)