Returns the subject IDs present in a dataset snapshot without downloading any data. This is a metadata-only query using the OpenNeuro GraphQL API.
Value
A tibble with columns:
- dataset_id
The dataset identifier
- subject_id
Subject identifier (e.g., "sub-01")
- n_sessions
Number of sessions in the dataset (same for all rows)
- n_files
Estimated files per subject (same for all rows)
Returns an empty tibble with the same column structure if the dataset has no BIDS subjects (e.g., non-BIDS datasets).
Details
Subject IDs are returned in natural sort order, so "sub-10" comes after "sub-9" rather than after "sub-1".
The n_sessions and n_files columns provide dataset-level context. Per-subject session and file counts are not available from the OpenNeuro API.
See also
on_files() to list files, on_download() to download data