gen_bids_like_filename ============================================== .. py:function:: petpal.utils.bids_utils.gen_bids_like_filename(sub_id: str, ses_id: str, suffix: str = 'pet', ext: str = '.nii.gz', **extra_desc) -> str Generates a filename following BIDS convention including subject and session information. The function constructs filenames by appending additional descriptors and file suffix with extension. :param sub_id: The subject identifier. :type sub_id: str :param ses_id: The session identifier. :type ses_id: str :param suffix: The suffix indicating the data type. Defaults to 'pet'. :type suffix: str, optional :param ext: The file extension. Defaults to '.nii.gz'. :type ext: str, optional :param \*\*extra_desc: Additional keyword arguments for any extra descriptors. :returns: *str* -- A BIDS-like formatted filename.