Class definition for micro-wire spike channels
Class definition for micro-wire spike channels
If simplify is enabled, and only one block is loaded,
then the result will be a vector (type="voltage") or a matrix
(others), otherwise the result will be a named list where the names
are the blocks.
ravepipeline::RAVESerializable -> ravecore::RAVEAbstarctElectrode -> Spike_electrode
h5_fname'HDF5' file name
validwhether current electrode is valid: subject exists and contains current electrode or reference; subject electrode type matches with current electrode type
raw_sample_ratevoltage sample rate
power_sample_ratepower/phase sample rate
preprocess_infopreprocess information
voltage_filepath to voltage 'HDF5' file
@marshal()Internal method
Spike_electrode$@marshal(...)...internal arguments
@unmarshal()Internal method
Spike_electrode$@unmarshal(object)object, ...internal arguments
set_reference()set reference for current electrode
Spike_electrode$set_reference(reference)referenceeither NULL or LFP_electrode instance
new()constructor
Spike_electrode$new(subject, number, quiet = FALSE)subject, number, quietsee constructor in
RAVEAbstarctElectrode
.load_noref_voltage()load non-referenced voltage (internally used)
Spike_electrode$.load_noref_voltage(reload = FALSE)reloadwhether to reload cache
sratevoltage signal sample rate
.load_raw_voltage()load raw voltage (no process)
Spike_electrode$.load_raw_voltage(reload = FALSE)reloadwhether to reload cache
load_data_with_epochs()method to load electrode data
Spike_electrode$load_data_with_epochs(type = c("raw-voltage", "voltage"))typedata type such as "power", "phase",
"voltage", "wavelet-coefficient", and
"raw-voltage". For "power", "phase",
and "wavelet-coefficient", 'Wavelet' transforms are required.
For "voltage", 'Notch' filters must be applied. All these
types except for "raw-voltage" will be referenced.
For "raw-voltage", no reference will be performed since the data
will be the "raw" signal (no processing).
load_dimnames_with_epochs()get expected dimension names
Spike_electrode$load_dimnames_with_epochs(type = c("raw-voltage", "voltage"))typesee load_data_with_epochs
load_data_with_blocks()load electrode block-wise data (with no reference), useful when epoch is absent
Spike_electrode$load_data_with_blocks(
blocks,
type = c("raw-voltage", "voltage"),
simplify = TRUE
)blockssession blocks
typedata type such as "power", "phase",
"voltage", "raw-voltage" (with no filters applied, as-is
from imported), "wavelet-coefficient". Note that if type
is "raw-voltage", then the data only needs to be imported;
for "voltage" data, 'Notch' filters must be applied; for
all other types, 'Wavelet' transforms are required.
simplifywhether to simplify the result
load_dim_with_blocks()get expected dimension information for block-based loader
Spike_electrode$load_dim_with_blocks(
blocks,
type = c("raw-voltage", "voltage")
)blocks, typesee load_data_with_blocks
clear_cache()method to clear cache on hard drive
Spike_electrode$clear_cache(...)...ignored
clear_memory()method to clear memory
Spike_electrode$clear_memory(...)...ignored
clone()The objects of this class are cloneable with this method.
Spike_electrode$clone(deep = FALSE)deepWhether to make a deep clone.