cellosaurus.standardize_cells

cellosaurus.standardize_cells(cells: list[str] | str) list[str] | str

Standardize cell line names.

Strip all non-alphanumeric characters, remove information in parentheses or brackets, and convert to uppercase.

Note that this function doesn’t attempt to perform any mapping to the Cellosaurus database. For that, refer to Cellosaurus.map_cells instead.

Parameters:

cells (str or list of str) – Cell line names to standardize.

Returns:

Standardized cell line names.

Return type:

str or list of str

Examples

>>> standardize_cells(["22Rv1", "Jurkat", "Ramos (RA-1)"])
['22_RV_1', 'JURKAT', 'RAMOS']