API Reference
average_efficiency(coords_donor, coords_acceptor, r0=50.0)
Compute ensemble-averaged FRET efficiency.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords_donor
|
Float[Array, 'M 3']
|
(M, 3) donor coordinates for M frames. |
required |
coords_acceptor
|
Float[Array, 'M 3']
|
(M, 3) acceptor coordinates for M frames. |
required |
r0
|
float
|
Förster distance. |
50.0
|
Returns:
| Type | Description |
|---|---|
Float[Array, '']
|
Scalar averaged efficiency |
Source code in diff_fret/kernels.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |
distance_distribution(donor_coords, acceptor_coords)
Compute donor-acceptor distances.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
donor_coords
|
Float[Array, '*batch 3']
|
(*batch, 3) coordinates of donor(s). |
required |
acceptor_coords
|
Float[Array, '*batch 3']
|
(*batch, 3) coordinates of acceptor(s). |
required |
Returns:
| Type | Description |
|---|---|
Float[Array, '*batch']
|
Distances (*batch,). |
Source code in diff_fret/kernels.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
fret_efficiency(r, r0=50.0)
Compute FRET efficiency using Förster theory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
r
|
Float[Array, '*batch']
|
Distance(s) in Angstroms. |
required |
r0
|
float
|
Förster distance in Angstroms (default 50.0). |
50.0
|
Returns:
| Type | Description |
|---|---|
Float[Array, '*batch']
|
FRET efficiency E in [0, 1]. |
Source code in diff_fret/kernels.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | |
fret_efficiency_av(attachment_donor, attachment_acceptor, key, radius_donor=10.0, radius_acceptor=10.0, n_samples=50, r0=50.0)
Differentiable Accessible Volume (AV) simulation for FRET. Models the dye as a Gaussian spatial distribution around its attachment point.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
attachment_donor
|
Float[Array, 3]
|
(3,) attachment point for donor. |
required |
attachment_acceptor
|
Float[Array, 3]
|
(3,) attachment point for acceptor. |
required |
key
|
Array
|
JAX PRNG key. |
required |
radius_donor
|
float
|
Characteristic radius (standard deviation) of donor dye distribution (default 10.0). |
10.0
|
radius_acceptor
|
float
|
Characteristic radius (standard deviation) of acceptor dye distribution (default 10.0). |
10.0
|
n_samples
|
int
|
Number of samples to use for the Monte Carlo integration (default 50). |
50
|
r0
|
float
|
Förster distance in Angstroms (default 50.0). |
50.0
|
Returns:
| Type | Description |
|---|---|
Float[Array, '']
|
Averaged efficiency |
Source code in diff_fret/kernels.py
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 | |
kappa_squared_bounds(anisotropy_donor, anisotropy_acceptor)
Calculate the bounds of the orientation factor kappa^2 based on Dale-Eisinger-Blumberg (1979) theory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
anisotropy_donor
|
float
|
Measured steady-state anisotropy of donor. |
required |
anisotropy_acceptor
|
float
|
Measured steady-state anisotropy of acceptor. |
required |
Returns:
| Type | Description |
|---|---|
Float[Array, 2]
|
(min_kappa2, max_kappa2) array. |
Source code in diff_fret/kernels.py
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 | |