The class is for creating child classes, to instantiate the class,
please use prepare_subject_bare0 to create base repository.
Super class
ravepipeline::RAVESerializable -> RAVESubjectRepository
Public fields
@restoredinternal flag indicating whether the repository is restored from serialization. Repositories restored from serialization will behave differently (slightly) for performance considerations
repository_idrepository identifier, typically generated with random string
quietwhether to suppress update warning messages, when requested electrodes are not fully processed or excluded
Active bindings
auto_excludewhether to automatically discard channels that are marked as "excluded" (such as bad channels or channels that should not be analyzed); default is often true
meta_infolist of meta information
needs_updatewrite-only attribute when subject needs to be reloaded from the disk and reference table needs to be updated, use
repo$needs_update <- TRUEprojectproject instance, see
RAVEProjectsubjectsubject instance, see
RAVESubjectelectrode_listinteger vector of electrodes included
electrode_tablethe entire electrode table
electrode_signal_typesmore accurate name should be "channel" signal types: currently returns
'LFP','Auxiliary', or'Spike', for each channelelectrode_instanceselectrode channel instance helpers for loading electrode data
reference_namename of reference table
reference_tablereference table
references_lista vector of reference channel names, used together with
reference_instancesreference_instancesinstances of reference channels, for referencing on the fly, used for
electrode_instancesdigest_keya list of repository data used to generate repository signature
signaturesignature of the repository, two repositories might share the same signature if their contents are the same (even with different identifiers); generated from
digest_key
Methods
Inherited methods
RAVESubjectRepository$new()
constructor
Usage
RAVESubjectRepository$new(
subject,
electrodes = NULL,
reference_name = NULL,
...,
auto_exclude = TRUE,
quiet = TRUE,
repository_id = NULL,
strict = TRUE,
.class = NULL
)Arguments
subject'RAVE' subject
electrodesstring or integers indicating electrodes to load
reference_namename of the reference table
...reserved, currently ignored
auto_excludewhether to automatically discard bad channels
quietsee field
quietrepository_idsee field
repository_idstrictwhether the mode should be strict; default is true and errors out when subject is missing
.classinternally used, do not set, even if you know what this is
RAVESubjectRepository$get_electrode_coordinate()
Get loaded electrode coordinates by type
Usage
RAVESubjectRepository$get_electrode_coordinate(
type = "LFP",
electrodes = KEY_MISSING,
strict = TRUE
)Arguments
typelength of one or more, electrode channel (signal) type; see constant
SIGNAL_TYPES. Default is'LFP'electrodeselectrodes to subset, default is a missing key, which uses all the loaded electrodes to subset
strictwhether the returned table must not be empty; default is true, which will raise errors when no electrode matches
Returns
Filtered table; see load_meta2 with meta type
'electrodes'. Besides the mandatory columns, the returned table
also contains 'LabelPrefix', used by YAEL to store surgical
labels to group channels by electrode device; 'LeadChannel'
(logical) to indicate whether the channel is a leading channel in this
group, typically the inner-most channel; and 'ShortLabel' for
short electrode label.