TACAnalysisStepMixin ============================================================ .. py:class:: petpal.pipelines.kinetic_modeling_steps.TACAnalysisStepMixin(input_tac_path: str, roi_tacs_dir: str, output_directory: str, output_prefix: str, is_ref_tac_based_model: bool, **kwargs) Bases: :py:obj:`petpal.pipelines.steps_base.StepsAPI` A mixin class for TAC analysis steps. This class manages initialization and properties related to TAC paths, directories, and output configurations. It provides methods to infer output paths and prefixes based on input TAC paths. :ivar input_tac_path: Path to the input TAC file. Doubles as the path to a reference tac if appropriate. :vartype input_tac_path: str :ivar roi_tacs_dir: Directory containing the ROI TAC files to be analyzed. :vartype roi_tacs_dir: str :ivar output_directory: Directory where output files will be saved. :vartype output_directory: str :ivar output_prefix: Prefix for the output files. :vartype output_prefix: str :ivar is_ref_tac_based_model: Indicates if the model is reference TAC-based. :vartype is_ref_tac_based_model: bool Initializes the TACAnalysisStepMixin with specified parameters. :param input_tac_path: Path to the input TAC file. :type input_tac_path: str :param roi_tacs_dir: Directory containing the ROI TAC files. :type roi_tacs_dir: str :param output_directory: Directory where output files will be saved. :type output_directory: str :param output_prefix: Prefix for the output files. :type output_prefix: str :param is_ref_tac_based_model: Indicates if the model is reference TAC-based. :type is_ref_tac_based_model: bool :param \*\*kwargs: Additional keyword arguments to be included in initialization. .. py:property:: input_tac_path :type: str Gets the path to the input TAC file. :returns: *str* -- Path to the input TAC file. .. py:property:: reference_tac_path :type: str Gets the path to the reference TAC file. :returns: *str* -- Path to the reference TAC file. .. py:property:: tacs_dir :type: str Gets the directory containing the TAC files to be analyzed. :returns: *str* -- Directory containing the TAC files to be analyzed. .. py:property:: roi_tacs_dir :type: str Gets the directory containing the ROI TAC files to be analyzed. :returns: *str* -- Directory containing the ROI TAC files to be analyzed. .. py:property:: output_directory :type: str Gets the directory where output files will be saved. :returns: *str* -- Directory where output files will be saved. .. py:property:: output_prefix :type: str Gets the prefix for the output files. Usually something like ``sub-XXXX_ses-XX`` if BIDS compliant output. :returns: *str* -- Prefix for the output files. .. py:property:: out_path_and_prefix Gets the tuple of output directory and prefix. :returns: *tuple* -- A tuple containing output directory and prefix. .. py:method:: infer_prefix_from_input_tac_path() Infers the output prefix based on the input/reference TAC file path. Gets the subject and session from the path if possible. .. seealso:: :func:`parse_path_to_get_subject_and_session_id` .. py:method:: infer_output_directory_from_input_tac_path(out_dir: str, der_type: str = 'km') Infers the output directory based on the input/reference TAC file path. Gets the subject and session from the path is possible. :param out_dir: Root output directory. :type out_dir: str :param der_type: Type of derivatives. Defaults to 'km'. :type der_type: str .. seealso:: :func:`parse_path_to_get_subject_and_session_id` :func:`gen_bids_like_dir_path` .. py:method:: infer_outputs_from_inputs(out_dir: str, der_type, suffix=None, ext=None, **extra_desc) Infers the output directory and prefix based on the input/reference TAC file path. Gets the subject and session from the path is possible. :param out_dir: Root output directory. :type out_dir: str :param der_type: Type of derivatives. :type der_type: str :param suffix: Suffix for the output files. :type suffix: str, optional :param ext: Extension for the output files. :type ext: str, optional :param \*\*extra_desc: Additional descriptive parameters. .. py:method:: set_input_as_output_from(*sending_steps) -> None Sets the input parameters based on the output from a specified sending step. :param sending_step: The step from which to derive the input parameters. :type sending_step: PreprocStepType .. py:method:: execute(*args, **kwargs) :abstractmethod: .. py:method:: __call__(*args, **kwargs)