resources
OptimalTx
OptimalTx(dof_ext: ndarray = None, zshift1: ndarray = None, zshift2: ndarray = None, max_z_value: float = 1.0, number_of_coordinates: int = 3)
Identifies the translation(s) that optimally satisfies two overlapping translational spaces
Parameters:
-
dof_ext
(ndarray
, default:None
) –The degrees of freedom that are external to the two translational spaces
-
zshift1
(ndarray
, default:None
) –The translational shift of the first space
-
zshift2
(ndarray
, default:None
) –The translational shift of the second space
-
max_z_value
(float
, default:1.0
) –The largest z-value considered acceptable
-
number_of_coordinates
(int
, default:3
) –The dimension of the search
Source code in symdesign/resources/__init__.py
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 |
|
dof_convert9
dof_convert9()
Convert input degrees of freedom to 9-dim arrays. Repeat DOF ext for each set of 3 coordinates (3 sets)
Source code in symdesign/resources/__init__.py
71 72 73 74 75 76 77 78 79 80 81 |
|
solve_optimal_shift
solve_optimal_shift(coords1: ndarray, coords2: ndarray, coords_rmsd_reference: float) -> ndarray | None
This routine solves the optimal shift problem for overlapping a pair of coordinates and comparing to a reference RMSD to compute an error
Parameters:
-
coords1
(ndarray
) –A 3 x 3 array with cartesian coordinates
-
coords2
(ndarray
) –A 3 x 3 array with cartesian coordinates
-
coords_rmsd_reference
(float
) –The reference deviation to compare to the coords1 and coords2 error
Returns: Returns the optimal translation or None if error is too large. Optimal translation has external dof first, followed by internal tx dof
Source code in symdesign/resources/__init__.py
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 |
|
solve_optimal_shifts
solve_optimal_shifts(coords1: ndarray, coords2: ndarray, coords_rmsd_reference: ndarray) -> ndarray
This routine solves the optimal shift problem for overlapping a pair of coordinates and comparing to a reference RMSD to compute an error
Parameters:
-
coords1
(ndarray
) –A N x 3 x 3 array with cartesian coordinates
-
coords2
(ndarray
) –A N x 3 x 3 array with cartesian coordinates
-
coords_rmsd_reference
(ndarray
) –Array with length N with reference deviation to compare to the coords1 and coords2 error
Returns: Returns the optimal translations with shape (N, number_degrees_of_freedom) if the translation is less than the calculated error. Axis 1 has degrees of freedom with external first, then internal dof
Source code in symdesign/resources/__init__.py
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 |
|