RAVERepository: Definition for data repository class

Description Public fields Active bindings Methods See Also

Description

Do not create instance directly, use loaded_rave_repository instead.

Public fields

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

Active bindings

signature

unique signature for repository; if subject ID, reference table, epoch table, and time range are the same, signatures will be the same

Methods

Public methods


Method new()

constructor

Usage
RAVERepository$new(subject, reference, epoch, before_onset, after_onset)
Arguments
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


Method load_brain()

load 3D brain instance

Usage
RAVERepository$load_brain(
  surfaces = "pial",
  use_141 = TRUE,
  recache = FALSE,
  clean_before_cache = FALSE,
  compute_template = FALSE,
  usetemplateifmissing = FALSE
)
Arguments
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

Returns

threeBrain brain instance


Method epoch_power()

epoch power data

Usage
RAVERepository$epoch_power(electrodes = NULL)
Arguments
electrodes

electrodes to epoch


Method clear_cache()

call clear_cache for each electrodes loaded

Usage
RAVERepository$clear_cache()

Method clear_memory()

call clear_memory for each electrodes loaded

Usage
RAVERepository$clear_memory()

See Also

rave_brain2, freesurfer_brain2


dipterix/ravecore documentation built on Aug. 5, 2020, 2:14 p.m.