R6 class definition
Value
data frame
integer vector of valid electrodes
The same as value
A named list of key-value pairs, or if one key is specified and
simplify=TRUE, then only the value will be returned.
A data frame with four columns: 'namespace' for the group
name of the entry (entries within the same namespace usually share same
module), 'timestamp' for when the entry was registered.
'entry_name' is the name of the entry. If include_history
is true, then multiple entries with the same 'entry_name' might
appear since the obsolete entries are included. 'entry_value'
is the value of the corresponding entry.
If as_table is FALSE, then returns as
RAVEEpoch instance; otherwise returns epoch table; will
raise errors when file is missing or the epoch is invalid.
If simplify is true, returns a vector of reference
electrode names, otherwise returns the whole table; will
raise errors when file is missing or the reference is invalid.
If simplify is true, returns a vector of electrodes
that are valid (or won't be excluded) under given reference; otherwise
returns a table. If subset is true, then the table will be
subset and only rows with electrodes to be loaded will be kept.
If simplify is true, returns a vector of frequencies;
otherwise returns a table.
A table of pipeline registry
A PipelineTools instance
Super class
ravepipeline::RAVESerializable -> RAVESubject
Active bindings
@implthe internal object
projectproject instance of current subject; see
RAVEProjectproject_namecharacter string of project name
subject_codecharacter string of subject code
subject_idsubject ID:
"project/subject"pathsubject root path
rave_path'rave' directory under subject root path
meta_pathmeta data directory for current subject
imaging_pathroot path to imaging processing folder
freesurfer_path'FreeSurfer' directory for current subject. If no path exists, values will be
NApreprocess_pathpreprocess directory under subject 'rave' path
data_pathdata directory under subject 'rave' path
cache_pathpath to 'FST' copies under subject 'data' path
pipeline_pathpath to pipeline scripts under subject's folder
report_pathpath to pipeline scripts under subject's folder
note_pathpath that stores 'RAVE' related subject notes
epoch_namespossible epoch names
reference_namespossible reference names
reference_pathreference path under 'rave' folder
preprocess_settingspreprocess instance; see
RAVEPreprocessSettingsblockssubject experiment blocks in current project
electrodesall electrodes, no matter excluded or not
raw_sample_ratesvoltage sample rate
power_sample_ratepower spectrum sample rate
has_waveletwhether electrodes have wavelet transforms
notch_filteredwhether electrodes are Notch-filtered
electrode_typeselectrode signal types
electrode_composedcomposed electrode channels, not actual physically contacts, but is generated from those physically ones
Methods
Inherited methods
Method new()
constructor
Usage
RAVESubject$new(
project_name,
subject_code = NULL,
strict = TRUE,
parent_path = NULL
)Method meta_data()
get subject meta data located in "meta/" folder
Usage
RAVESubject$meta_data(
meta_type = c("electrodes", "frequencies", "time_points", "epoch", "references"),
meta_name = "default",
strict = TRUE
)Arguments
meta_typechoices are 'electrodes', 'frequencies', 'time_points', 'epoch', 'references'
meta_nameif
meta_type='epoch', read in'epoch_<meta_name>.csv'; ifmeta_type='references', read in'reference_<meta_name>.csv'.strictwhether to raise errors if the files are missing; default is true; alternative is to return
NULLon missing
Method valid_electrodes()
get valid electrode numbers
Arguments
reference_namecharacter, reference name, see
meta_nameinself$meta_dataorload_meta2whenmeta_typeis 'reference'refreshwhether to reload reference table before obtaining data, default is false
Method get_default()
get default key-value pairs for the subject, used by 'RAVE' modules
Method get_note_summary()
get summary table of all the key-value pairs used by 'RAVE' modules for the subject
Method get_epoch()
check and get subject's epoch information
Arguments
epoch_nameepoch name, depending on the subject's meta files
as_tablewhether to convert to
data.frame; default is falsetrial_startsthe start of the trial relative to epoch time; default is 0
Method get_electrode_table()
check and get subject's electrode table with electrodes that are load-able
Usage
RAVESubject$get_electrode_table(
electrodes,
reference_name,
subset = FALSE,
simplify = FALSE,
warn = TRUE
)Arguments
electrodescharacters indicating integers such as
"1-14,20-30", or integer vector of electrode numbersreference_namesee method
get_referencesubsetwhether to subset the resulting data table
simplifywhether to only return electrodes
warnwhether to warn about missing electrodes; default is true
Method get_frequency()
check and get subject's frequency table, time-frequency decomposition is needed.