'RAVE' class for epoch repository
Source:R/class101-epoched_repository.R
RAVESubjectEpochRepository.Rd
Compared 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_update
write-only attribute when subject needs to be reloaded from the disk and reference table needs to be updated, use
repo$needs_update <- TRUE
sample_rates
a named list of sampling frequencies; the names are signal types (
'LFP'
,'Auxiliary'
, or'Spike'
) and the values are the sampling frequenciessample_rate
a 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_rates
for more accurate numberepoch_name
name of the epoch table
epoch
RAVEEpoch
instanceepoch_table
epoch table, equivalent to
repository$epoch$table
stitch_events
events where
time_windows
are based ontime_windows
list of time ranges to load; the time is relative to
stitch_events
; default is trial onsetelectrode_table
the entire electrode table with reference information
electrode_instances
electrode channel instance helpers for loading electrode data
reference_instances
instances of reference channels, for referencing on the fly, used for
electrode_instances
digest_key
a 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
electrodes
string or integers indicating electrodes to load
reference_name
name of the reference table
epoch_name
name of the epoch trial table
time_windows
numeric 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_events
events where the
time_windows
is based; default is trial onset (NULL
)...
passed to
RAVESubjectBaseRepository
constructorquiet
see field
quiet
repository_id
see field
repository_id
strict
whether the mode should be strict; default is true and errors out when subject is missing
lazy_load
whether to delay (lazy) the evaluation
mount_data
.class
internally 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