Relaxation API
relaxation
Functions
spectral_density(omega, tau_m, s2, tau_f=0.0)
Calculate Spectral Density J(w) using Lipari-Szabo Model-Free formalism.
EDUCATIONAL NOTE - BPP Theory & Spectral Density:
In NMR, relaxation is caused by local magnetic fields that "flicker" due to molecular tumbling. Spectral Density J(w) is essentially a measure of the POWER of these fluctuations at a specific frequency (w).
- BPP Theory (Bloembergen-Purcell-Pound) shows that relaxation is most efficient when the frequency of motion (1/tau_m) matches the Larmor frequency of the nuclei.
- If a protein tumbles too fast (small tau_m), the fluctuations are too high-frequency to cause efficient relaxation (Extreme Narrowing Limit).
- If it tumbles too slow (large tau_m), the energy is concentrated at low frequencies, leading to fast T2 relaxation and broad lines.
Model-Free Analysis (Lipari-Szabo) separates this into Global Tumbling (tau_m) and fast Local Motion (tau_f), weighted by the Order Parameter (S^2).
Formula: J(w) = (2/5) * [ S^2 * tm / (1 + (wtm)^2) + (1-S^2) * te / (1 + (wte)^2) ]
where te (tau_e) is the effective internal correlation time: 1/te = 1/tm + 1/tf Usually for simple MF, we assume fast motion tf << tm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
omega
|
float
|
Frequency (rad/s). Must be numeric. |
required |
tau_m
|
float
|
Global rotational correlation time (seconds). Must be numeric and positive. |
required |
s2
|
float
|
Generalized order parameter (0.0 to 1.0). Must be numeric and within this range. |
required |
tau_f
|
float
|
Fast internal correlation time (seconds). Must be numeric and non-negative. If 0 (default), internal motion is considered infinitely fast/negligible, and the function simplifies to a one-time scale model-free. |
0.0
|
Source code in synth_nmr/relaxation.py
predict_order_parameters(structure)
Predict Generalized Order Parameters (S2) based on secondary structure, termini effects, and solvent accessible surface area (SASA).
EDUCATIONAL NOTE - Lipari-Szabo Model Free:
The Order Parameter (S2) describes the amplitude of internal motion: - S2 = 1.0: Completely rigid (no internal motion relative to tumbling). - S2 = 0.0: Completely disordered (isotropic internal motion).
Typical values in proteins: - Alpha Helices / Beta Sheets: S2 ~ 0.85 (Very rigid H-bond network) - Loops / Turns: S2 ~ 0.60 - 0.70 (Flexible) - Termini (N/C): S2 ~ 0.40 - 0.50 (Fraying)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
structure
|
AtomArray
|
The biotite.structure.AtomArray containing the protein. |
required |
Returns:
| Type | Description |
|---|---|
Dict[int, float]
|
A dictionary mapping each residue ID to its predicted S2 value. |
Raises:
| Type | Description |
|---|---|
TypeError
|
If the input is not a biotite.structure.AtomArray. |
Source code in synth_nmr/relaxation.py
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 | |
calculate_relaxation_rates(structure, field_mhz=600.0, tau_m_ns=10.0, s2_map=None)
Calculate R1, R2, and Heteronuclear NOE for all backbone Amides (N-H).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
structure
|
AtomArray
|
biotite.structure.AtomArray containing the protein. |
required |
field_mhz
|
float
|
Proton Larmor frequency in MHz (e.g., 600.0). |
600.0
|
tau_m_ns
|
float
|
Global rotational correlation time in nanoseconds. |
10.0
|
s2_map
|
Optional[Dict[int, float]]
|
Optional dictionary of pre-calculated Order Parameters (S2). |
None
|
Returns:
| Type | Description |
|---|---|
Dict[int, Dict[str, float]]
|
Dict keyed by Residue ID -> {R1, R2, NOE, S2}. |
Source code in synth_nmr/relaxation.py
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | |