aind_ephys_utils package¶
Subpackages¶
- aind_ephys_utils.accessors package
- aind_ephys_utils.adapters package
- aind_ephys_utils.metrics package
- Submodules
- aind_ephys_utils.metrics.ccg module
- Lag convention
NN_to_pair_vec()TrialSegmentscc_leads_over_std()ccg()ccg_allpairs_sparse()ccg_between_sets_sparse()ccg_trial_paired()ccg_trial_surrogates()clip_spikes_to_trials()clip_to_window()derangements()jitter_spikes_times()measure_fwhm()measure_per_pair()measure_prominence()monte_carlo_pvalue()pair_vec_to_NN()peak_contributing_spikes()rescale_ccgs()rescale_ccgs_zero_mean()smooth_ccgs()
- aind_ephys_utils.metrics.connectivity module
- aind_ephys_utils.metrics.latency module
- aind_ephys_utils.metrics.ccg module
- Module contents
NN_to_pair_vec()build_shape_prefilter()ccg()ccg_allpairs_sparse()ccg_between_sets_sparse()ccg_trial_paired()ccg_trial_surrogates()clip_spikes_to_trials()measure_fwhm()measure_prominence()monte_carlo_pvalue()pair_vec_to_NN()rescale_ccgs()run_surrogates()run_two_stage_mc()smooth_ccgs()spike_latency()
- Submodules
- aind_ephys_utils.ops package
- Submodules
- aind_ephys_utils.ops.align module
- aind_ephys_utils.ops.baseline module
- aind_ephys_utils.ops.bin module
- aind_ephys_utils.ops.normalize module
- aind_ephys_utils.ops.pseudopop module
- aind_ephys_utils.ops.psth module
- aind_ephys_utils.ops.reduce module
- aind_ephys_utils.ops.restrict module
- aind_ephys_utils.ops.smooth module
- Module contents
- Submodules
- aind_ephys_utils.plots package
- aind_ephys_utils.standards package
Submodules¶
Module contents¶
Helpful methods for exploring in vivo electrophysiology data.
- aind_ephys_utils.configure_defaults(*, plot: bool = True, display: bool = True, print_options: bool = True, savefig_dpi: int | None = 300) None¶
Apply recommended global defaults explicitly.
- Parameters:
plot – If True, apply matplotlib defaults for export-friendly figures.
display – If True, set xarray display options for compact DataArray rendering.
print_options – If True, set numpy print options for concise array display.
savefig_dpi – Save DPI to set when
plot=True. If None, leaves current value.
- aind_ephys_utils.validate(da: DataArray, *, kind: str | None = None, require_time_coord: bool = True, check_ragged_contents: bool = True) ValidationResult¶
Validate that a DataArray conforms to the conventions expected by .ephys.
- Parameters:
da – The DataArray to validate.
kind – If provided, require that the DataArray matches this inferred kind. One of: “spikes_ragged”, “continuous”, “binned”, “events”.
require_time_coord – If True, require a ‘time’ coordinate whenever there is a time dimension.
check_ragged_contents – If True, sample-check ragged spike contents for basic shape/dtype sanity.
- Return type: