Cell

class singlecell_input_mapper.udvary2022.cell.Cell

Bases: object

Cell object for mapping synapses onto a morphology.

This is a leightweight dataclass specialized for use with singlecell_input_mapper.singlecell_input_mapper.synapse_mapper.

See also

This is not the same class as single_cell_parser.cell.Cell. Contrary to single_cell_parser.cell.Cell, this class does not provide any biophysical details, simulation parameters or biophysical details.

Attributes:
id

Unique identifier for the cell.

Type:

str

soma

The soma section.

Type:

PySection2

structures

Dictionary mapping section labels (e.g. “Soma”, “Dendrite” …) to a list of corresponding sections.

Type:

dict

sections

List of all sections.

Type:

list

boundingBox

Bounding box around the cell.

Type:

tuple

synapses

Dictionary mapping presynaptic cell types to a list of Synapse objects.

Type:

dict

Methods:

distance_to_soma(sec, x)

Calculate the path length to soma from location x on section sec

get_bounding_box()

Calculate the bounding box around the cell.

add_synapse(secID, ptID, ptx, preType, postType)

Add a Synapse to the cell.

remove_synapses(preType)

Remove all synapses of type preType from the cell.