patlak
patlak
¶
Patlak pharmacokinetic model (OSIPI: M.IC1.006).
This module implements the Patlak graphical analysis model for DCE-MRI, which assumes unidirectional transfer from plasma to tissue.
GPU/CPU agnostic using the xp array module pattern. NO scipy dependency - uses xp.linalg operations.
References
.. [1] OSIPI CAPLEX, https://osipi.github.io/OSIPI_CAPLEX/ .. [2] Dickie BR et al. MRM 2024. doi:10.1002/mrm.30101 .. [3] Patlak CS et al. J Cereb Blood Flow Metab 1983;3(1):1-7.
PatlakParams
dataclass
¶
Bases: ModelParameters
Parameters for Patlak model (OSIPI: M.IC1.006).
| ATTRIBUTE | DESCRIPTION |
|---|---|
ktrans |
Volume transfer constant (OSIPI: Q.PH1.008) in 1/min. Represents unidirectional influx rate.
TYPE:
|
vp |
Plasma volume fraction (OSIPI: Q.PH1.001), mL/100mL.
TYPE:
|
PatlakModel
¶
Bases: BasePerfusionModel[PatlakParams]
Patlak graphical analysis model (OSIPI: M.IC1.006).
Implements the Patlak model for indicator concentration in tissue assuming unidirectional transfer from blood to tissue.
| ATTRIBUTE | DESCRIPTION |
|---|---|
Ktrans |
Volume transfer constant (OSIPI: Q.PH1.008), 1/min.
TYPE:
|
vp |
Plasma volume fraction (OSIPI: Q.PH1.001), mL/100mL.
TYPE:
|
Notes
Model equation: Ct(t) = vp*Cp(t) + Ktrans * integral_0^t Cp(tau) dtau
Assumptions: - No backflux from tissue to plasma (kep = 0) - Valid for early time points only - Linear accumulation over time
GPU/CPU agnostic - operates on same device as input arrays.
References
.. [1] OSIPI CAPLEX, https://osipi.github.io/OSIPI_CAPLEX/ .. [2] Dickie BR et al. MRM 2024. doi:10.1002/mrm.30101 .. [3] Patlak CS et al. J Cereb Blood Flow Metab 1983;3(1):1-7.
get_initial_guess_batch
¶
Compute vectorized initial guesses using Patlak graphical analysis.
Falls back to the base class per-voxel loop since the graphical analysis involves per-voxel valid-point masks that are difficult to vectorize efficiently.
| PARAMETER | DESCRIPTION |
|---|---|
ct_batch
|
Tissue concentration curves, shape (n_timepoints, n_voxels).
TYPE:
|
aif
|
Arterial input function, shape (n_timepoints,).
TYPE:
|
t
|
Time points in seconds, shape (n_timepoints,).
TYPE:
|
xp
|
Array module (numpy or cupy).
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
NDArray[floating]
|
Initial parameter guesses, shape (2, n_voxels). |
get_initial_guess
¶
Compute initial parameter guess using graphical analysis.
GPU/CPU agnostic - converts to numpy for scalar extraction.
| PARAMETER | DESCRIPTION |
|---|---|
ct
|
Tissue concentration curve.
TYPE:
|
aif
|
Arterial input function.
TYPE:
|
t
|
Time points in seconds.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
PatlakParams
|
Initial parameter estimates. |