meanap.pipeline.plotting_step2¶
Functions
|
|
|
|
|
Electrode heatmap, port of |
|
|
|
Two-panel raster, port of |
|
Generate group comparison plots for step 2. |
- meanap.pipeline.plotting_step2.plot_burst_detection_info(spike_times_dict, ephys, duration_s, fs, out_path)[source]¶
- Parameters:
spike_times_dict (dict)
ephys (dict)
duration_s (float)
fs (float)
out_path (Path)
- meanap.pipeline.plotting_step2.plot_firing_rate_distribution(ephys, out_path)[source]¶
- Parameters:
ephys (dict)
out_path (Path)
- meanap.pipeline.plotting_step2.plot_heatmap(metric, chs, title, clabel, out_path, cmap='viridis', channel_layout='Axion64', batch_max=None)[source]¶
Electrode heatmap, port of
electrodeHeatMaps.m/plotNodeHeatmap.m.When
batch_maxis given, produce a two-panel figure (like MATLAB’stiledlayout(1,2)): left scaled to this recording (color axis = 99th percentile of its own values), right scaled to the entire dataset (color axis =batch_max, the batch-wide max of this metric = MATLAB’smaxValStruct.(metric)), so levels are comparable across recordings. Whenbatch_maxis None, fall back to the original single panel.- Parameters:
metric (ndarray)
chs (ndarray)
title (str)
clabel (str)
out_path (Path)
channel_layout (str)
batch_max (float | None)
- meanap.pipeline.plotting_step2.plot_neuronal_activity_checks(rec, params, spike_times_dict, n_channels, chs, fs, duration_s, ephys, output_root, spike_freq_max=None, batch_max=None)[source]¶
- Parameters:
spike_times_dict (dict)
n_channels (int)
chs (ndarray)
fs (float)
duration_s (float)
ephys (dict)
output_root (Path)
spike_freq_max (float | None)
batch_max (dict | None)
- meanap.pipeline.plotting_step2.plot_raster(spike_times_dict, duration_s, out_path, spike_freq_max=None, raster_upper_percentile=99.0)[source]¶
Two-panel raster, port of
rasterPlot.m.Top panel is scaled to this recording (color axis = the
raster_upper_percentileof its own 1-second spike counts); bottom panel is scaled to the entire data batch (color axis =spike_freq_max, the batch-wide max firing rate). Sharing the bottom scale across every recording makes activity levels visually comparable between them — this is what MATLAB’sspikeFreqMax(maxValStruct.FR) does. Whenspike_freq_maxis None (e.g. a single recording plotted in isolation) the batch panel falls back to this recording’s own percentile scale.- Parameters:
spike_times_dict (dict)
duration_s (float)
out_path (Path)
spike_freq_max (float | None)
raster_upper_percentile (float)