gen_bids_like_filepath ============================================== .. py:function:: petpal.utils.bids_utils.gen_bids_like_filepath(sub_id: str, ses_id: str, bids_dir: str = '../', modality: str = 'pet', suffix: str = 'pet', ext='.nii.gz', **extra_desc) -> str Creates a full file path using BIDS-like conventions for both directory structure and filename. It combines directory and file generation to provide an organized output path. :param sub_id: The subject identifier. :type sub_id: str :param ses_id: The session identifier. :type ses_id: str :param bids_dir: Base directory for BIDS data. Defaults to '../'. :type bids_dir: str, optional :param modality: The type of modality. Defaults to 'pet'. :type modality: str, optional :param suffix: Suffix indicating the 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* -- Full file path in BIDS-like structure. .. seealso:: - :func:`gen_bids_like_filename` - :func:`gen_bids_like_dir_path`