bids.reports.utils

Generate publication-quality data acquisition methods section from BIDS dataset.

Utilities to generate the MRI data acquisition portion of a methods section from a BIDS dataset.

Functions

get_seqstr(config, metadata)

Extract and reformat imaging sequence(s) and variant(s) into pretty strings.

get_sizestr(img)

Extract and reformat voxel size, matrix size, field of view, and number of slices into pretty strings.

get_slice_info(slice_times)

Extract slice order from slice timing info.

list_to_str(lst)

Turn a list into a comma- and/or and-separated string.

num_to_str(num)

Convert an int or float to a nice string. E.g., 21 -> '21' 2.500 -> '2.5' 3. -> '3'.

reminder()

Remind users about things they need to do after generating the report.

remove_duplicates(seq)

Return unique elements from list while preserving order.