single_cell_parsercell_modify_functionsscale_apicalscale_by_detailed_compartment

scale_by_detailed_compartment

single_cell_parser.cell_modify_functions.scale_apical.scale_by_detailed_compartment(cell, **kwargs)

Scales subcellular compartments based on detailed\_labels.

If not yet assigned, detailed labels are assigned by biophysics_fitting.utils.augment_cell_with_detailed_labels(). and include basal, trunk, tuft, and oblique.

Attention

For non-L5PT neurons or L5PT neurons from any other brain area than barrel cortex, make sure augment_cell_with_detailed_labels() assigns labels as you want them to be.

Alternatively, assign them manually with the biophysics_fitting.cell.Cell.sections.label_detailed attribute.

Parameters:
  • cell (Cell) – The cell to scale.

  • **kwargs (dict) – Detailed lables with associated scaling factors.

Returns:

The scaled cell.

Return type:

Cell