R6 class definition
Value
list of electrode type, number, etc.
NULL when no channel is composed.
When flat is TRUE, a data frame of weights with
the columns composing electrode channel numbers, composed channel
number, and corresponding weights; if flat is FALSE,
then a weight matrix;
Super class
ravepipeline::RAVESerializable -> RAVEPreprocessSettings
Public fields
current_versioncurrent configuration setting version
pathsettings file path
backup_pathalternative back up path for redundancy checks
datalist of raw configurations, internally used only
subjectRAVESubjectinstanceread_onlywhether the configuration should be read-only, not yet implemented
Active bindings
versionconfigure version of currently stored files
old_versionwhether settings file is old format
blocksexperiment blocks
electrodeselectrode numbers
sample_ratesvoltage data sample rate
notch_filteredwhether electrodes are notch filtered
has_waveletwhether each electrode has wavelet transforms
data_importedwhether electrodes are imported
data_lockedwhether electrode, blocks and sample rate are locked? usually when an electrode is imported into 'rave', that electrode is locked
electrode_lockedwhether electrode is imported and locked
electrode_composedcomposed electrode channels, not actual physically contacts, but is generated from those physically ones
wavelet_paramswavelet parameters
notch_paramsNotch filter parameters
electrode_typeselectrode signal types
@freeze_blockswhether to free block, internally used
@freeze_lfp_ecogwhether to freeze electrodes that record 'LFP' signals, internally used
@lfp_ecog_sample_rate'LFP' sample rates, internally used
all_blockscharacters, all possible blocks even not included in some projects
raw_path2raw data path, based on the format standard; for native, this is equivalent to
raw_path; for 'BIDS', this is subject raw directory in'BIDS'projectraw_path2_typeraw data path type, 'native' or 'bids'
raw_pathlegacy raw data path for 'RAVE', regardless of
raw_path2_type. This field exists for compatibility support the legacy scripts. Please useraw_path2combined withraw_path2_typefor supporting 'BIDS' formatraw_path_typelegacy type for
raw_path, always returns'native'
Methods
Inherited methods
Method new()
constructor
Usage
RAVEPreprocessSettings$new(subject, read_only = TRUE)Arguments
subjectcharacter or
RAVESubjectinstanceread_onlywhether subject should be read-only (not yet implemented)
Method set_electrodes()
set electrodes
Arguments
electrodesinteger vectors
typesignal type of electrodes, see
SIGNAL_TYPESaddwhether to add to current settings
Examples
# The following example require downloading demo subject (~700 MB) from
# https://github.com/beauchamplab/rave/releases/tag/v0.1.9-beta
if( has_rave_subject("demo/DemoSubject") ) {
conf <- RAVEPreprocessSettings$new(subject = 'demo/DemoSubject')
conf$blocks # "008" "010" "011" "012"
conf$electrodes # 5 electrodes
# Electrode 14 information
conf$electrode_info(electrode = 14)
conf$data_imported # All 5 electrodes are imported
conf$data_locked # Whether block, sample rates should be locked
}