convert_ctab_to_dseg ================================================== .. py:function:: petpal.utils.useful_functions.convert_ctab_to_dseg(ctab_path: str, dseg_path: str, column_names: list[str] = None) Convert a FreeSurfer compatible color table into a BIDS compatible label map ``dseg.tsv``. :param ctab_path: Path to FreeSurfer compatible color table. :type ctab_path: str :param dseg_path: Path to ``dseg.tsv`` label mapfile to save. :type dseg_path: str :param column_names: List of columns present in color table. Must include 'mapping' and 'name'. :type column_names: list[str]