'RAVE' class for epoch repository
Source:R/class101-epoched_repository.R
RAVESubjectEpochRepository.RdCompared to RAVESubjectBaseRepository, this repository
requires epoch information. please use
prepare_subject_with_epochs to instantiate this repository.
Value
The root directory where the files are stored.
A named map, typically with data arrays, shape/dimension information
Super classes
ravepipeline::RAVESerializable -> ravecore::RAVESubjectRepository -> RAVESubjectEpochRepository
Active bindings
needs_updatewrite-only attribute when subject needs to be reloaded from the disk and reference table needs to be updated, use
repo$needs_update <- TRUEsample_ratesa named list of sampling frequencies; the names are signal types (
'LFP','Auxiliary', or'Spike') and the values are the sampling frequenciessample_ratea single number of the sample rate; if the electrode channels contain local-field potential
'LFP'signal type, then the sample rate is the'LFP'sample rate; otherwise the sample rate is'Spike'channel sample rate, if exists, or whatever comes first. This field is for backward compatibility support, usesample_ratesfor more accurate numberepoch_namename of the epoch table
epochRAVEEpochinstanceepoch_tableepoch table, equivalent to
repository$epoch$tablestitch_eventsevents where
time_windowsare based ontime_windowslist of time ranges to load; the time is relative to
stitch_events; default is trial onsetelectrode_tablethe entire electrode table with reference information
electrode_instanceselectrode channel instance helpers for loading electrode data
reference_instancesinstances of reference channels, for referencing on the fly, used for
electrode_instancesdigest_keya list of repository data used to generate repository signature
Methods
Method new()
constructor
Usage
RAVESubjectEpochRepository$new(
subject,
electrodes = NULL,
reference_name = NULL,
epoch_name = NULL,
time_windows = NULL,
stitch_events = NULL,
...,
quiet = FALSE,
repository_id = NULL,
strict = TRUE,
lazy_load = FALSE,
.class = NULL
)Arguments
subject'RAVE' subject
electrodesstring or integers indicating electrodes to load
reference_namename of the reference table
epoch_namename of the epoch trial table
time_windowsnumeric vector with even lengths, the time start and end of the trials, for example,
c(-1, 2)means load 1 second before the trial onset and 2 seconds after trial onsetstitch_eventsevents where the
time_windowsis based; default is trial onset (NULL)...passed to
RAVESubjectBaseRepositoryconstructorquietsee field
quietrepository_idsee field
repository_idstrictwhether the mode should be strict; default is true and errors out when subject is missing
lazy_loadwhether to delay (lazy) the evaluation
mount_data.classinternally used, do not set, even if you know what this is
Method mount_data()
function to mount data, not doing anything in this class, but may be used by child classes