single_cell_parserserialize_cellcell_to_serializable_object

cell_to_serializable_object

single_cell_parser.serialize_cell.cell_to_serializable_object(cell)

Convert a Cell object to a dict, so that it can be serialized.

Useful for parallellization using e.g. Dask or Joblib.

The serialized object contains the following information:

  • tVec: time vector

  • parameters: dictionary of parameters

  • allPoints: point coordinates fo the cell

  • sections: list of dictionaries containing the following information for each section:
    • recVList: membrane potential

    • recordVars: dictionary of hoc arrays

    • label: label of the section

    • sec_id: ID of the section

    • parent_id: ID of the parent section

  • synapses: dictionary of synapse populations, each containing a list of synapses with the following information:
    • preCell: dictionary containing the spike times of the presynaptic cell

    • coordinates: coordinates of the synapse

  • hoc: hoc file content

Parameters:

cell (Cell) – cell object

Returns:

serializable cell object

Return type:

dict