RAVEPreprocessSettings | R Documentation |
R6
class definition
list of electrode type, number, etc.
current_version
current configuration setting version
path
settings file path
backup_path
alternative back up path for redundancy checks
data
list of raw configurations, internally used only
subject
RAVESubject
instance
read_only
whether the configuration should be read-only, not yet implemented
version
configure version of currently stored files
old_version
whether settings file is old format
blocks
experiment blocks
electrodes
electrode numbers
sample_rates
voltage data sample rate
notch_filtered
whether electrodes are notch filtered
has_wavelet
whether each electrode has wavelet transforms
data_imported
whether electrodes are imported
data_locked
whether electrode, blocks and sample rate are locked? usually when an electrode is imported into 'rave', that electrode is locked
electrode_locked
whether electrode is imported and locked
wavelet_params
wavelet parameters
notch_params
Notch filter parameters
electrode_types
electrode signal types
@freeze_blocks
whether to free block, internally used
@freeze_lfp_ecog
whether to freeze electrodes that record 'LFP' signals, internally used
@lfp_ecog_sample_rate
'LFP' sample rates, internally used
all_blocks
characters, all possible blocks even not included in some projects
raw_path
raw data path
raw_path_type
raw data path type, 'native' or 'bids'
new()
constructor
RAVEPreprocessSettings$new(subject, read_only = TRUE)
subject
character or RAVESubject
instance
read_only
whether 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)
blocks
character, combination of session task and run
force
whether 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 )
electrodes
integer vectors
type
signal type of electrodes, see SIGNAL_TYPES
add
whether to add to current settings
set_sample_rates()
set sample frequency
RAVEPreprocessSettings$set_sample_rates(srate, type = SIGNAL_TYPES)
srate
sample rate, must be positive number
type
electrode 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)
force
whether to force migrate and save settings
electrode_info()
get electrode information
RAVEPreprocessSettings$electrode_info(electrode)
electrode
integer
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.