ChemogeneticRMA
rma_kinetics.models.ChemogeneticRMA
Chemogenetic activated RMA expression model.
Attributes:
| Name | Type | Description |
|---|---|---|
rma_prod_rate |
float
|
RMA production rate (concentration/time). |
rma_rt_rate |
float
|
RMA reverse transcytosis rate (1/time). |
rma_deg_rate |
float
|
RMA degradation rate (1/time). |
dox_model_config |
DoxPKConfig
|
Dox PK model configuration. |
dox_kd |
float
|
Dox dissocation constant. |
tta_prod_rate |
float
|
tTA production rate. |
tta_deg_rate |
float
|
tTA degradation rate. |
tta_kd |
float
|
tTA-TetO operator dissocation constant. |
cno_model_config |
CnoPKConfig
|
CNO PK model configuration. |
cno_t0 |
float
|
CNO administration time. |
cno_ec50 |
float
|
CNO EC50. |
clz_ec50 |
float
|
CLZ EC50. |
dq_prod_rate |
float
|
hM3Dq production rate. |
dq_deg_rate |
float
|
hM3Dq degradation rate. |
dq_ec50 |
float
|
hM3Dq EC50. |
leaky_rma_prod_rate |
float
|
Leaky RMA production rate (Default = 0.0). |
leaky_tta_prod_rate |
float
|
Leaky tTA production rate (Default = 0.0). |
tta_coop |
int
|
tTA cooperativity (Default = 2). |
cno_coop |
int
|
CNO cooperativity (Default = 1). |
clz_coop |
int
|
CLZ cooperativity (Default = 1). |
dq_coop |
int
|
hM3Dq cooperativity (Default = 1). |
time_units |
Time
|
Time units (Default = Time.hours). |
conc_units |
Concentration
|
Concentration units (Default = Concentration.nanomolar). |
Source code in src/rma_kinetics/models/chemogenetic.py
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 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | |
simulate(t0: float, t1: float, y0: PyTree[float], dt0: float | None = None, sampling_rate: float = 1, stepsize_controller: AbstractStepSizeController = PIDController(rtol=1e-05, atol=1e-05), max_steps: int = 4096, solver: AbstractSolver = Kvaerno3(), adjoint: AbstractAdjoint = RecursiveCheckpointAdjoint(), throw: bool = True, progress_meter: AbstractProgressMeter = NoProgressMeter())
Simulate chemogenetic activated RMA.
This method differs from other models by splitting the integration in up to two parts if needed depending on the time of CNO administration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t0
|
float
|
Start time of integration. |
required |
t1
|
float
|
Stop time of integration. |
required |
y0
|
PyTree[float]
|
Tuple of initial conditions. |
required |
dt0
|
float | None`
|
Initial step size if using adaptive step sizes, or size of all steps if using constant stepsize. |
None
|
sampling_rate
|
float
|
Sampling rate for saving solution. |
1
|
stepsize_controller
|
AbstractStepSizeController`
|
Determines how to change step size during integration. |
PIDController(rtol=1e-05, atol=1e-05)
|
max_steps
|
int
|
Max number of steps before stopping. |
4096
|
solver
|
AbstractSolver
|
Differential equation solver. |
Kvaerno3()
|
adjoint
|
AbstractAdjoint
|
How to differentiate. |
RecursiveCheckpointAdjoint()
|
throw
|
bool
|
Raise an exception if integration fails. |
True
|
progress_meter
|
AbstractProgressMeter
|
Progress meter. |
NoProgressMeter()
|
Returns:
| Name | Type | Description |
|---|---|---|
solution |
Solution
|
A solution object (parent of diffrax.Solution) with added plotting methods. |
Source code in src/rma_kinetics/models/chemogenetic.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | |
_tet_rma_model(t: float, y: PyTree[float]) -> PyTree[float]
Tet induced RMA expression compartments.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t
|
float
|
Time points. |
required |
y
|
PyTree[float]
|
Concentrations of plasma/brain RMA, transcriptional activator, plasma/brain dox. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dydt |
PyTree[float]
|
Brain/plasma RMA and dox concentrations. |
Source code in src/rma_kinetics/models/tet_induced.py
_model(t: float, y: PyTree[float], args=None) -> PyTree[float]
Full ODE model implementation.
Model Equations
Note that this model assumes constitutive expression of hM3Dq.
The designer receptir can be activated by CNO (or CLZ which is produced from reverse-metabolism of CNO).
Production of the tetracycline-transcriptional activator (tTA) is then dependent on the level of active hM3Dq and modified for leaky expression,
The remaining equations for doxycycline and RMA dynamics are the same as the TetRMA model.
| Parameters | Description | Units (Example) |
|---|---|---|
| \(k_{Dq}\) | hM3Dq production rate | Concentration/Time (nM/hr) |
| \(\gamma_{Dq}\) | hM3Dq degradation rate | 1/Time (1/hr) |
| \(EC_{50_{CNO}}\) | CNO EC50 | Concentration (nM) |
| \(EC_{50_{CLZ}}\) | CLZ EC50 | Concentration (nM) |
| \(EC_{50_{Dq}}\) | hM3Dq EC50 | Concentration (nM) |
| \(n_{Dq}\) | hM3Dq cooperativity | Unitless |
| \(k_{tTA}\) | tTA production rate | Concentration/Time (nM/hr) |
| \(\gamma_{tTA}\) | tTA degradation rate | 1/Time (1/hr) |
| \([CNO]\) | Brain CNO concentration | Concentration (nM) |
| \([CLZ]\) | Brain CLZ concentration | Concentration (nM) |
| \([Dq]\) | Brain hM3Dq concentration | Concentration (nM) |
| \([tTA]\) | Brain tTA concentration | Concentration (nM) |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
t
|
float
|
Time point. |
required |
y
|
PyTree[float]
|
Concentration of brain/plasma RMA (along with all other species). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dydt |
PyTree[float]
|
Change in brain/plasma RMA (along with all other species). |
Source code in src/rma_kinetics/models/chemogenetic.py
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 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |
Example
from rma_kinetics.models import ChemogeneticRMA, DoxPKConfig, CnoPKConfig
# add dox feeding at 30 mg/kg from time 0 oto 48 hours using the default rates.
dox_model_config = DoxPKConfig(dose=30, t0=0, t1=48)
# inject 1mg/kg CNO (assuming 30 g mouse).
# we'll also use the default rates here.
mouse_weight = 0.03
cno_model_config = CnoPKConfig(dose=1*mouse_weight)
model = ChemogeneticRMA(
rma_prod_rate=7e-3,
rma_rt_rate=0.6,
rma_deg_rate=7e-3,
dox_model_config=dox_model_config,
dox_kd=10,
tta_prod_rate=8e-3,
tta_deg_rate=8e-3,
tta_kd=1,
cno_model_config=cno_model_config,
cno_t0=48
)
y0 = (
0, 0, 0,
dox_model_config.brain_dox_ss, dox_model_config.plasma_dox_ss,
0, 0, 0, 0, 0
)
solution = model.simulate(0, 96, y0)