Repository navigation
Commit 0b7956f
committed
fix: address code review issues from PR #47 — charge model consistency, imports, defaults
- presynth_check.py: move selectivity_proxy imports to module level (was deferred;
deferred imports are justified only to break circular dependencies, which do not
exist here). Use physchem.net_charge_at_ph74() for consistency with compute_features()
so the selectivity_proxy value is identical in both the feature dict and QC report.
The old _net_charge_at_ph() included terminal groups/Cys/Tyr producing a ~0.2 offset
that would give divergent cytotox verdicts for the same sequence.
- SynthQC.selectivity_proxy default changed from 1.0 to 0.0 (conservative: assume
cytotoxic until check_sequence() fills the field; 1.0 = safe default is misleading
for a risk field)
- physchem.py docstring: "optimum: +3 to +7" → "+2 to +7" (code awards full score
starting at charge=2.0; the prior text contradicted the implementation and the test)
- test_selectivity_proxy.py: add boundary test (selectivity_proxy=0.50 exactly must NOT
trigger cytotox_risk since predicate is strict <0.5)
- Makefile: update echo to "1081-test suite" → "1082-test suite" (38 new tests total)1 parent a7fd2c0 commit 0b7956f
4 files changed
Lines changed: 23 additions & 9 deletions
File tree
- src/openamp_foundry
- features
- qc
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
127 | | - | |
128 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
| |||
261 | 266 | | |
262 | 267 | | |
263 | 268 | | |
264 | | - | |
265 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
266 | 275 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 276 | + | |
270 | 277 | | |
271 | 278 | | |
272 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
112 | 119 | | |
113 | 120 | | |
114 | 121 | | |
| |||
0 commit comments