PyMAIA_create_subset script#

Generates and saves a subset, given a dataset. The subset data are extracted from the original dataset according to the provided classes. A JSON file mapping each subject to the corresponding class is needed ( data_class_file). An optional parameter max_size can be specified to limit the size of the subset.

usage: PyMAIA_create_subset [-h] --data-folder DATA_FOLDER --output-folder
                            OUTPUT_FOLDER --data-class-file DATA_CLASS_FILE
                            --subclasses SUBCLASSES [SUBCLASSES ...]
                            [--max-size MAX_SIZE] [-v | -q]

Named Arguments#

--data-folder

Input dataset folder

--output-folder

Output subset folder

--data-class-file

JSON file including the class label for each volume in the dataset.

--subclasses

List of classes from where to select the subset data.

--max-size

Maximum size of the generated subset. Default None`: no size limit is set.

-v, --verbose

Enable verbose output in terminal. Add multiple times to increase verbosity.

-q, --silent

Suppress most log outputs in terminal.