gen_bids_like_filepath#
- 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.
- Parameters:
sub_id (str) – The subject identifier.
ses_id (str) – The session identifier.
bids_dir (str, optional) – Base directory for BIDS data. Defaults to ‘../’.
modality (str, optional) – The type of modality. Defaults to ‘pet’.
suffix (str, optional) – Suffix indicating the type. Defaults to ‘pet’.
ext (str, optional) – The file extension. Defaults to ‘.nii.gz’.
**extra_desc – Additional keyword arguments for any extra descriptors.
- Returns:
str – Full file path in BIDS-like structure.