trace_check¶
- 
biophysics_fitting.ephys.trace_check(t, v, stim_onset=None, stim_duration=None, minspikenum=None, soma_threshold=None, returning_to_rest=2, max_prestim_dendrite_depo=-50, vmax=None, name='')¶
- Check the properties of a voltage trace: - Check that at least minspikenum are present. 
- Check if it properly returns to rest. 
- Check that there are no spikes before stimulus onset (in soma or dendrite). 
- Check if last spike is before deadline. 
- Check that the maximum dendritic depolarization before stimulus onset is not too large. 
 - Parameters:¶
- t : array¶
- Time array. 
- v : array¶
- Voltage array. 
- stim_onset : float¶
- Time of stimulus onset. 
- stim_duration : float¶
- Duration of stimulus. 
- minspikenum : int¶
- Minimum number of spikes required. 
- soma_threshold : float¶
- Threshold voltage for spike detection. 
- returning_to_rest : float¶
- Voltage difference between last reported voltage and voltage base. 
- max_prestim_dendrite_depo : float¶
- Maximum dendritic depolarization before stimulus onset. 
- vmax : float¶
- Maximum voltage. 
- name : str¶
- Name of the trace. 
 
- Returns:¶
- Dictionary containing the results of the checks. 
- Return type:¶
- dict 
 
Documentation unclear, incomplete, broken or wrong? Let us know