Skip to contents

This function sets the CellLineName field in colData to be unique by appending the clid in parentheses for duplicates.

Usage

set_unique_cl_names_dt(col_data, sep = " ")

Arguments

col_data

data.table or DFrame with col data

sep

string with separator added before suffix

Value

fixed input table with unique CellLineName in colData.

Examples

col_data <- S4Vectors::DataFrame(CellLineName = c("ID1", "ID1"), clid = c("C1", "C2"))
col_data <- set_unique_cl_names_dt(col_data)