Repository navigation
feat: add C-terminal amidation recommendation to presynth QC module - #36
Merged
Merged
Conversation
~70% of natural helical AMPs are C-terminally amidated. Amidation adds ~+0.5–1.0 net charge, improves carboxypeptidase resistance (serum stability), and enhances membrane binding at no synthesis cost (specify CONH₂ in order). Logic: recommend when C-terminal residue is NOT K or R (neutral) AND charge_pH7.4 < 3.0. The flag is informational — the synthesis vendor just needs CONH₂ specified in the order form. Primary beneficiary: SEED-004 variants (charge_pH7.4 ≈ 0.8, ends in L); amidation would push them above the LOW_CHARGE threshold and improve the Stage 3 (serum stability) outlook. - presynth_check.py: add c_amidation_recommended (bool) + c_amidation_reason (str) to SynthQC dataclass; populate in check_sequence(); emit C_AMIDATION_RECOMMENDED flag in flags list; expose both in to_dict() - tests/test_presynth_qc.py: 11 new tests in TestCTerminalAmidation covering low-charge/neutral-cterm, K/R C-term exclusions, flag presence, to_dict() key coverage, and empty-sequence safety
Merged
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
c_amidation_recommended(bool) andc_amidation_reason(str) added toSynthQCdataclass andto_dict()output.check_sequence()now evaluates whether C-terminal amidation would benefit the candidate and populates aC_AMIDATION_RECOMMENDEDflag in theflagslist.TestCTerminalAmidationcovering all recommendation cases.Scientific rationale
~70% of natural helical AMPs that reach clinical trials are synthesized with C-terminal amidation (CONH₂ instead of COOH). The modification:
Impact on pilot panel
Primary beneficiary: SEED-004 variants (sequence ALPFIGRVLSGIL + variants):
Other sequences ending in G, A, L, I, V, M, F, W with charge < 3.0 also flagged.
Recommendation logic
Test plan
pytest tests/test_presynth_qc.py— 74/74 passc_amidation_recommended=Truec_amidation_recommended=Falsec_amidation_recommended=Falseto_dict()exposes bothc_amidation_recommendedandc_amidation_reason