: 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.
resetCellIDs(ff, eventIDs = seq_len(flowCore::nrow(ff)))
a flowCore::flowFrame
an integer vector containing the values to be set in expression matrix, as Original ID's.
new flowCore::flowFrame containing the amended (or added) 'Original_ID' column
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)