Skip to main content

nex5_analyze/
lib.rs

1//! Spike-train analysis on top of [`nex5file`].
2//!
3//! - **PSTH** — peri-event spike histograms
4//! - **Filtering** — time-range selection on timestamps and file variables
5//! - **ISI** — inter-spike interval histograms
6//! - **Sort** — order spike times; rank units by firing rate
7//!
8//! For NWB import/export use the sibling [`nex5-nwb`] crate.
9//!
10//! [`nex5-nwb`]: ../nex5_nwb/index.html
11
12mod filter;
13mod file;
14mod isi;
15mod psth;
16mod raster;
17mod correlation;
18mod smooth;
19mod sort;
20
21pub use filter::{filter_file_events, filter_file_neuron, filter_timestamps, TimeRange};
22pub use file::{analyze_file, FileAnalysisOptions, FileAnalysisResult};
23pub use isi::{inter_spike_intervals, isi_histogram, IsiHistogram};
24pub use psth::{psth, PsthOptions, PsthResult};
25pub use raster::{peri_event_raster, RasterResult, TrialRaster};
26pub use correlation::{spike_cross_correlation, CrossCorrelationResult};
27pub use smooth::smooth_firing_rate;
28pub use sort::{sort_spike_times, units_by_mean_rate};
29
30pub type Result<T> = nex5file::Result<T>;