clinicaio.dataset.BIDSDataset#
- class clinicaio.dataset.BIDSDataset(bids_path: str | pathlib.Path, description: clinicaio.dataset_description.BIDSDatasetDescription)#
A BIDS dataset. See the general organisation of the library.
Examples
Creates a new BIDS dataset. Useful when you want to write a new dataset to the filesystem.
See also
- Parameters:
bids_path (str | pathlib.Path)
description (clinicaio.dataset_description.BIDSDatasetDescription)
- bids_path: pathlib.Path#
Methods#
|
Retrieves from this dataset the given subject by its ID. |
|
Retrieves all the subjects that are part of this dataset. |
|
Retrieves the number of subjects that are part of this dataset. |
|
Retrieves all the sessions that this dataset's subjects are part of. |
|
Retrieves all the images present in this dataset. |
|
Populates the subjects information from the given dataframe. |
|
Read a BIDS dataset from the given BIDS directory. |
|
Adds a new subject to this dataset. |
|
Creates the dataset folder, writes the dataset description JSON and readme, creates the subjects and sessions |
|
Creates and opens for writing the given file at the root of the dataset, eventually in "binary" mode |
|
Returns all the images matching the query. |
|
Convenience function that only returns the NIFTI image paths instead of the images themselves. |
|
Convenience function that only returns the companion image paths with the given file extension |