Description Public fields Active bindings Methods See Also
Do not create instance directly, use
loaded_rave_repository
instead.
subject
RAVESubject
instance
electrodes
electrodes loaded
ignored_electrodes
electrodes ignored
reference_table
reference table
time_range
seconds before and after trial onset
reference_name
name of reference table
epoch
RAVEEpoch
instance
signature
unique signature for repository; if subject ID, reference table, epoch table, and time range are the same, signatures will be the same
preload_electrodes
get or set default electrodes to be loaded,
mainly used internally by link{rave_load}
.
project
RAVEProject
instance
new()
constructor
RAVERepository$new(subject, reference, epoch, before_onset, after_onset)
subject
character or RAVESubject
instance
reference
reference name
epoch
epoch name
before_onset
seconds to be loaded before trial onset
after_onset
seconds to be loaded after trial onset
load_brain()
load 3D brain instance
RAVERepository$load_brain( surfaces = "pial", use_141 = TRUE, recache = FALSE, clean_before_cache = FALSE, compute_template = FALSE, usetemplateifmissing = FALSE )
surfaces
surface types such as 'pial'
, 'white'
,
'smoothwm'
, 'sphere'
, etc.
use_141
whether to use 'SUMA' 141 standard brain if possible
recache
whether to force re-calculate cache data
clean_before_cache
whether to clear data before caching
compute_template
whether to compute template vertices
usetemplateifmissing
whether to use template brain if surfaces are missing, default is false
threeBrain
brain instance
.validate_cache()
validate whether cached data is valid and consistent, i.e. the cached data is reliable, otherwise the cached data is no longer useful.
RAVERepository$.validate_cache(dtype = c("power", "phase", "voltage"))
dtype
data type to check, choices are 'power', 'phase', 'voltage'
If there is no valid electrode, then returns NULL
;
otherwise returns a list with the following items:
path where the cached data should be stored
whether path exists as a directory
whether cached data is consistent
dimension of the array
dimension names of the array
.signature_yaml()
internally used to save signature to cached arrays
RAVERepository$.signature_yaml(path)
path
path to the cached array
epoch_continuous_signals()
epoch power, phase, or voltage data
RAVERepository$epoch_continuous_signals( electrodes = NULL, dtype = c("power", "phase", "voltage") )
electrodes
electrodes to epoch
dtype
data type, choices are 'power', 'phase', and 'voltage'
clear_cache()
call clear_cache
for each electrodes loaded
RAVERepository$clear_cache(dtypes = c("power", "phase", "voltage"))
dtypes
data types to clear
clear_memory()
call clear_memory
for each electrodes loaded
RAVERepository$clear_memory()
get_meta()
get meta data
RAVERepository$get_meta( name = c("electrodes", "frequencies", "time_points", "trials") )
name
meta type name, choices are 'electrode'
,
'frequencies'
, 'time_points'
, 'trials'
Data frames of corresponding meta data
get_valid_electrodes()
get all valid electrode numbers for current subject
RAVERepository$get_valid_electrodes(electrodes)
electrodes
integers to filter, if missing then default to all possible electrodes
Valid electrode numbers
get_loaded_electrodes()
get electrode numbers to be loaded
RAVERepository$get_loaded_electrodes()
get_power()
epoch power data of pre-specified electrodes
RAVERepository$get_power(.old = FALSE, ...)
.old
whether use 'RAVE' 1.0 format
...
ignored
if .old
is true, return ECoGTensor
instance, otherwise return lazyarray
get_phase()
epoch phase data of pre-specified electrodes
RAVERepository$get_phase(.old = FALSE, ...)
.old
whether use 'RAVE' 1.0 format
...
ignored
if .old
is true, return ECoGTensor
instance, otherwise return lazyarray
get_voltage()
epoch voltage data of pre-specified electrodes
RAVERepository$get_voltage(.old = FALSE, ...)
.old
whether use 'RAVE' 1.0 format
...
ignored
if .old
is true, return Tensor
instance, otherwise return lazyarray
get_sample_rate()
get sampling frequency
RAVERepository$get_sample_rate( type = c("ECoG", "LFP", "Spike", "EEG"), time_freq = FALSE )
type
electrode signal type, choices are 'ECoG'
,
'LFP'
, 'Spike'
, 'EEG'
time_freq
whether should return sample rates after time-frequency decomposition (e.g. down-sampled rate after wavelet)
if time_freq
is true, return power or phase sample rate,
otherwise return voltage signal sample rate. If there is no such
electrode signal type, for example, type='Spike'
but no spike
signals, then return NA
get_preload_info()
get information when creating the repository
RAVERepository$get_preload_info()
A list containing electrode to analyze, epoch and reference table names, time range of the analysis, time index for power and phase, wavelet frequencies and trial condition types.
rave_brain2
, freesurfer_brain2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.