bids_subject {bidsr} | R Documentation |
'BIDS' subject class
Description
'BIDS' subject class
Usage
BIDSSubject(project, subject_code, ..., strict = "raw")
bids_subject(project, subject_code, ..., strict = "raw")
Arguments
project |
'BIDS' project instance, see |
subject_code |
character, subject code with or without the leading
|
... |
passed to the constructor of |
strict |
whether to check if the subject folders exist, can be
logical or characters; when |
Value
A 'BIDS' subject instance.
Author(s)
Zhengjia Wang
Examples
# Run `download_bids_examples()` first
examples <- download_bids_examples(test = TRUE)
if(!isFALSE(examples)) {
project_path <- file.path(examples, "ieeg_epilepsy_ecog")
project <- BIDSProject(
path = project_path,
raw_data_relpath = ".",
derivative_data_relpath = "derivatives"
)
subject <- BIDSSubject(project = project, subject_code = "ecog01",
strict = FALSE)
storage_root <- resolve_bids_path(subject, storage = "raw")
query_bids(subject, "ieeg")
}
[Package bidsr version 0.1.1 Index]