allensdk.brain_observatory.natural_scenes module¶
-
class
allensdk.brain_observatory.natural_scenes.
NaturalScenes
(data_set, **kwargs)[source]¶ Bases:
allensdk.brain_observatory.stimulus_analysis.StimulusAnalysis
Perform tuning analysis specific to natural scenes stimulus.
Parameters: - data_set: BrainObservatoryNwbDataSet object
-
extralength
¶
-
get_peak
()[source]¶ Computes metrics about peak response condition for each cell.
Returns: - Pandas data frame with the following fields (‘_ns’ suffix is for
- natural scene):
- scene_ns (scene number)
- reliability_ns
- peak_dff_ns (peak dF/F)
- ptest_ns
- p_run_ns
- run_modulation_ns
- time_to_peak_ns
-
get_response
()[source]¶ Computes the mean response for each cell to each stimulus condition. Return is a (# scenes, # cells, 3) np.ndarray. The final dimension contains the mean response to the condition (index 0), standard error of the mean of the response to the condition (index 1), and the number of trials with a significant (p < 0.05) response to that condition (index 2).
Returns: - Numpy array storing mean responses.
-
interlength
¶
-
number_scenes
¶
-
plot_time_to_peak
(p_value_max=0.05, color_map=<matplotlib.colors.LinearSegmentedColormap object>)[source]¶
-
reshape_response_array
()[source]¶ Returns: response array in cells x stim x repetition for noise correlations
-
sweeplength
¶