Provides a quick summary of dataset statistics, including:
Number of subjects
Number of sessions (if applicable)
Available tasks and the number of runs per task
Total number of runs
Value
A list with summary information:
n_subjects: number of participantsn_sessions: number of sessions (if any), otherwise NULLtasks: a tibble with columnstaskandn_runs, wheren_runsis the total number of runs of that task across all subjects and sessionstotal_runs: total number of runs across the dataset (the sum oftasks$n_runs)
Details
A run is one raw BOLD acquisition (*_bold.nii[.gz]), identified by its
subject, session, task, acq, ce, rec, dir, and run entities.
Multi-echo or magnitude/phase files from the same acquisition count as one
run. Derivatives, events files, and sidecars are not counted.
Examples
# \donttest{
tryCatch({
ds001_path <- get_example_bids_dataset("ds001")
proj <- bids_project(ds001_path)
summary <- bids_summary(proj)
}, error = function(e) {
message("Example requires internet connection: ", e$message)
})
# }