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