neurotic.datasets.data
¶
The neurotic.datasets.data
module implements a function for loading a
dataset from selected metadata.
-
neurotic.datasets.data.
load_dataset
(metadata, blk=None, lazy=False, signal_group_mode='split-all', filter_events_from_epochs=False)[source]¶ Load a dataset.
metadata
may be aMetadataSelector
or a simple dictionary containing the appropriate data.The
data_file
inmetadata
is read into a NeoBlock
using an automatically detectedneo.io
class iflazy=False
or aneo.rawio
class iflazy=True
. Ifdata_file
is unspecified, an empty Neo Block is created instead. If a Neo Block is passed asblk
,data_file
is ignored.Epochs and events loaded from
annotations_file
andepoch_encoder_file
and spike trains loaded fromtridesclous_file
are added to the Neo Block.If
lazy=False
, parameters given inmetadata
are used to apply filters to the signals, to detect spikes using amplitude discriminators, to calculate smoothed firing rates from spike trains, to detect bursts of spikes, and to calculate the rectified area under the curve (RAUC) for each signal.