allensdk.brain_observatory.locally_sparse_noise module

class allensdk.brain_observatory.locally_sparse_noise.LocallySparseNoise(data_set, stimulus=None, **kwargs)[source]

Bases: allensdk.brain_observatory.stimulus_analysis.StimulusAnalysis

Perform tuning analysis specific to the locally sparse noise stimulus.

Parameters:
data_set: BrainObservatoryNwbDataSet object
stimulus: string

Name of locally sparse noise stimulus. See brain_observatory.stimulus_info.

nrows: int

Number of rows in the stimulus template

ncol: int

Number of columns in the stimulus template

LSN
LSN_GREY = 127
LSN_OFF = 0
LSN_OFF_SCREEN = 64
LSN_ON = 255
LSN_mask
cell_index_receptive_field_analysis_data
extralength
static from_analysis_file(data_set, analysis_file, stimulus)[source]
get_mean_response()[source]
get_peak()[source]

Implemented by subclasses.

get_receptive_field()[source]

Calculates receptive fields for each cell

get_receptive_field_analysis_data()[source]

Calculates receptive fields for each cell

get_receptive_field_attribute_df()[source]
interlength
mean_response
static merge_mean_response(rc1, rc2)[source]

Move out of this class, to session analysis

open_pincushion_plot(on, cell_specimen_id=None, color_map=None, cell_index=None)[source]
plot_cell_receptive_field(on, cell_specimen_id=None, color_map=None, clim=None, mask=None, cell_index=None, scalebar=True)[source]
plot_population_receptive_field(color_map='RdPu', clim=None, mask=None, scalebar=True)[source]
plot_receptive_field_analysis_data(cell_index, **kwargs)[source]
populate_stimulus_table()[source]

Implemented by subclasses.

static read_cell_index_receptive_field_analysis(file_handle, prefix, path=None)[source]
receptive_field
static save_cell_index_receptive_field_analysis(cell_index_receptive_field_analysis_data, new_nwb, prefix)[source]
sort_trials()[source]
sweeplength