single_cell_parsercell_modify_functionsget

get

single_cell_parser.cell_modify_functions.get(funname)

Get a cell modification function by their name.

Cell modify functions are defined in this module, and can be retrieved by name. Each cell modify function is defined in a module that has the same name as the function itself. For example, the full path to scale_apical() is single_cell_parser.cell_modify_functions.scale_apical.scale_apical(). To make it easier to retrieve the function, this function provides API to simply fetch them by name.

Example

>>> from single_cell_parser.cell_modify_functions import get
>>> fun = get('scale_apical')
>>> fun
<function scale_apical at 0x7f0c3f2b6e18>
>>> print(fun.__file__)
single_cell_parser/cell_modify_functions/scale_apical.py
Returns:

the cell modification function.

Return type:

Callable