R/standardize_MAE.R
set_unique_cl_names_dt.Rd
This function sets the CellLineName field in colData to be unique by appending the clid in parentheses for duplicates.
CellLineName
colData
clid
set_unique_cl_names_dt(col_data, sep = " ")
data.table or DFrame with col data
string with separator added before suffix
fixed input table with unique CellLineName in colData.
col_data <- S4Vectors::DataFrame(CellLineName = c("ID1", "ID1"), clid = c("C1", "C2")) col_data <- set_unique_cl_names_dt(col_data)