allensdk.brain_observatory.natural_movie module

class allensdk.brain_observatory.natural_movie.NaturalMovie(data_set, movie_name, **kwargs)[source]

Bases: allensdk.brain_observatory.stimulus_analysis.StimulusAnalysis

Perform tuning analysis specific to natural movie stimulus.

Parameters:
data_set: BrainObservatoryNwbDataSet object
movie_name: string
one of [ stimulus_info.NATURAL_MOVIE_ONE, stimulus_info.NATURAL_MOVIE_TWO,

stimulus_info.NATURAL_MOVIE_THREE ]

static from_analysis_file(data_set, analysis_file, movie_name)[source]
get_peak()[source]

Computes properties of the peak response condition for each cell.

Returns:
Pandas data frame with the below fields. A suffix of “nm1”, “nm2” or “nm3” is appended to the field name depending
on which of three movie clips was presented.
  • peak_nm1 (frame with peak response)
  • response_variability_nm1
get_sweep_response()[source]

Returns the dF/F response for each cell

Returns:
Numpy array
open_track_plot(cell_specimen_id=None, cell_index=None)[source]
populate_stimulus_table()[source]

Implemented by subclasses.

sweep_response
sweeplength