R/standardize_MAE.R
set_unique_cl_names.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(se)
A SummarizedExperiment object.
A SummarizedExperiment object with unique CellLineName in colData.
se <- SummarizedExperiment::SummarizedExperiment( assays = list(counts = matrix(1:4, ncol = 2)), colData = S4Vectors::DataFrame(CellLineName = c("ID1", "ID1"), clid = c("C1", "C2")) ) se <- set_unique_cl_names(se)