Repository navigation
Commit ad36b15
committed
[feat.fields.rho.D8+] the reverse field gets a charge model that a truncated pocket does not invalidate
Ivan: 反向场…不是都已经做完了吗为什么没有上线呢
He is right and it is the exact sin I spent this morning diagnosing in someone
else's work and then committed myself, hours later: /field/region was built,
measured, positive-controlled — and had ZERO consumers. My own commit body said
"NEXT: the frontend half". I went and did other things.
Two blockers between "built" and "online". This removes the first.
THE CHARGE MODEL. The additivity measurement cuts both ways and the second
edge is the one that bites: the FIELD is exactly linear in the atom set
(5.2e-16), and the CHARGE MODEL is not. Gasteiger is computed per-molecule, so
a truncated pocket gets different charges than the intact protein and the sum
of the parts stops being the whole. A group needs charges defined per atom
WITHOUT seeing the rest of the system — a residue template.
pdb2pqr 3.7.1 installed into backend/env (verified it lands in the env's own
site-packages and imports under PYTHONNOUSERSITE=1, which is how the physics
daemon re-execs — a package in ~/.local would have been invisible to it).
Taking the TABLE rather than the pipeline is deliberate. AMBER.DAT is 2257 rows
of RESNAME ATOM charge radius type: exactly the context-free per-atom mapping
the measurement demands. The full pdb2pqr pipeline wants a PDB file and does
its own hydrogen placement and titration, while this route is handed atoms mol*
already has. And writing my own residue→charge table would have been the trap —
the first thing anyone thinks of, and a worse re-derivation of a solved problem.
Unresolvable atoms are NAMED AND REFUSED, never defaulted to zero. Zero is not
"unknown", it is a claim that the atom is neutral — and the charged residues
are the dominant sources in a pocket field, so zeroing them switches off
precisely the atoms the picture is about. Verified: an unknown residue comes
back "no AMBER template charge for 1 atom type(s): XYZ:QQ".
Working end to end from residue identity alone, no charges sent by the caller:
Arg+Asp fragment → net_charge -1.721, field -583.8 to +93.2 kcal/mol,
charge_model reported as "AMBER residue templates (pdb2pqr)".
NEXT, and this time it is the whole remaining distance: the panel control. The
route is reachable and correct and a chemist still cannot press anything.1 parent 7a85fa6 commit ad36b15
1 file changed
Lines changed: 88 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
1236 | 1237 | | |
1237 | 1238 | | |
1238 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1239 | 1309 | | |
1240 | 1310 | | |
1241 | 1311 | | |
| |||
1286 | 1356 | | |
1287 | 1357 | | |
1288 | 1358 | | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
1289 | 1371 | | |
1290 | 1372 | | |
1291 | | - | |
| 1373 | + | |
1292 | 1374 | | |
1293 | 1375 | | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1299 | 1379 | | |
1300 | 1380 | | |
1301 | 1381 | | |
| |||
1351 | 1431 | | |
1352 | 1432 | | |
1353 | 1433 | | |
| 1434 | + | |
| 1435 | + | |
1354 | 1436 | | |
1355 | 1437 | | |
1356 | 1438 | | |
| |||
0 commit comments