| RAVEPreprocessSettings | R Documentation |
R6 class definition
list of electrode type, number, etc.
current_versioncurrent configuration setting version
pathsettings file path
backup_pathalternative back up path for redundancy checks
datalist of raw configurations, internally used only
subjectRAVESubject instance
read_onlywhether the configuration should be read-only, not yet implemented
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
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_pathraw data path
raw_path_typeraw data path type, 'native' or 'bids'
new()constructor
RAVEPreprocessSettings$new(subject, read_only = TRUE)
subjectcharacter or RAVESubject instance
read_onlywhether subject should be read-only (not yet implemented)
valid()whether configuration is valid or not
RAVEPreprocessSettings$valid()
has_raw()whether raw data folder exists
RAVEPreprocessSettings$has_raw()
set_blocks()set blocks
RAVEPreprocessSettings$set_blocks(blocks, force = FALSE)
blockscharacter, combination of session task and run
forcewhether to ignore checking. Only used when data structure is not native, for example, 'BIDS' format
set_electrodes()set electrodes
RAVEPreprocessSettings$set_electrodes( electrodes, type = SIGNAL_TYPES, add = FALSE )
electrodesinteger vectors
typesignal type of electrodes, see SIGNAL_TYPES
addwhether to add to current settings
set_sample_rates()set sample frequency
RAVEPreprocessSettings$set_sample_rates(srate, type = SIGNAL_TYPES)
sratesample rate, must be positive number
typeelectrode type to set sample rate. In 'rave', all electrodes with the same signal type must have the same sample rate.
migrate()convert old format to new formats
RAVEPreprocessSettings$migrate(force = FALSE)
forcewhether to force migrate and save settings
electrode_info()get electrode information
RAVEPreprocessSettings$electrode_info(electrode)
electrodeinteger
save()save settings to hard disk
RAVEPreprocessSettings$save()
# The following example require downloading demo subject (~700 MB) from
# https://github.com/beauchamplab/rave/releases/tag/v0.1.9-beta
## Not run:
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
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.