simrunsynaptic_strength_fittingget_optimal_g

get_optimal_g

simrun.synaptic_strength_fitting.get_optimal_g(self, measured_data, method='dynamic_baseline', threashold=0.1)

Calculate the optimal synaptic conductance such that the EPSP matches empirical data.

For each celltype (or merged celltype), the optimal synaptic conductance is calculated by linearly interpolating the relationship between the synaptic strength and each of the EPSP statistics (mean, median and maximum). This linear interpolation is cross-referenced with empirically observed statistics to infer the optimal synaptic conductance.

Parameters:
  • measured_data (pd.DataFrame) – A table containing the empirical EPSP statistics (mean, median and maximum) for each celltype. Must contain the keys: [EPSP\_mean\_measured, EPSP\_median\_measured, EPSP\_max\_measured].

  • method (str) – dynamic\_baseline or constant\_baseline.

  • threashold (float) – The threashold to consider a celltype as excitatory.

Returns:

A table of the optimal synaptic conductance for each celltype.

Return type:

pd.DataFrame