osipi.tofts¶
Tofts model as defined by Tofts and Kermode (1991)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
t |
ndarray
|
array of time points in units of sec. [OSIPI code Q.GE1.004] |
required |
ca |
ndarray
|
Arterial concentrations in mM for each time point in t. [OSIPI code Q.IC1.001] |
required |
Ktrans |
float
|
Volume transfer constant in units of 1/min. [OSIPI code Q.PH1.008] |
required |
ve |
float
|
Relative volume fraction of the extracellular extravascular compartment (e). [OSIPI code Q.PH1.001.[e]] |
required |
Ta |
float
|
Arterial delay time, i.e., difference in onset time between tissue curve and AIF in units of sec. Defaults to 30 seconds. [OSIPI code Q.PH1.007] |
30.0
|
discretization_method |
str
|
Defines the discretization method. Options include – 'conv': Numerical convolution (default) [OSIPI code G.DI1.001] – 'exp': Exponential convolution [OSIPI code G.DI1.006] |
'conv'
|
Returns:
Type | Description |
---|---|
ndarray
|
np.ndarray: Tissue concentrations in mM for each time point in t. |
See Also
extended_tofts
References
- Lexicon url: https://osipi.github.io/OSIPI_CAPLEX/perfusionModels/#indicator-kinetic-models
- Lexicon code: M.IC1.004
- OSIPI name: Tofts Model
- Adapted from contributions by: LEK_UoEdinburgh_UK, ST_USyd_AUS, MJT_UoEdinburgh_UK
Create an array of time points covering 6 min in steps of 1 sec,
calculate the Parker AIF at these time points, calculate tissue concentrations
using the Tofts model and plot the results.
Import packages:
>>> import matplotlib.pyplot as plt
>>> import osipi
>>> import numpy
Calculate AIF:
>>> t = np.arange(0, 6 * 60, 1)
>>> ca = osipi.aif_parker(t)
Calculate tissue concentrations and plot:
>>> Ktrans = 0.6 # in units of 1/min
>>> ve = 0.2 # takes values from 0 to 1
>>> ct = osipi.tofts(t, ca, Ktrans, ve)
>>> plt.plot(t, ca, "r", t, ct, "b")
Source code in src/osipi/_tissue.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|