syntactic.make_label

syntactic.make_label(obj: str | list[str]) list[str]

Convert variable names to human-readable labels.

Applies make_words() and capitalizes the first letter of the result.

Parameters:

obj (str or list of str) – Variable name(s) to convert.

Returns:

Human-readable label(s).

Return type:

list of str

Examples

>>> make_label(["nGene", "log10GenesPerUMI"])
['N gene', 'Log10 genes per UMI']