Repository navigation
feat: synthesis-order CLI — vendor-ready order CSV + checklist - #45
Merged
Merged
Conversation
…om panel QC Adds synthesis-order subcommand and qc/order_generator.py module. Reads a panel CSV, runs presynth QC on every candidate, auto-fills N-terminal modification (Ac- when trypsin sites present), C-terminal modification (NH2 when c_amidation_recommended), purity spec (>95% HPLC), quantity (2× for HIGH-difficulty peptides), and condensed special-handling notes. Outputs synthesis_order.csv (GenScript- compatible) and synthesis_checklist.md (human-facing pre-order brief with per-candidate handling notes and Wave 2 D-amino guide). 54 new tests; 1036 total passing.
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
synthesis-order(make synthesis-order)src/openamp_foundry/qc/order_generator.pyWhat it does
Reads a confident panel CSV, runs pre-synthesis QC on every candidate, and outputs two files:
synthesis_order.csv— GenScript-compatible order form with:pilot_rank,candidate_id,sequence,length,mol_weight_dan_modification—Ac-when interior trypsin sites exist (N-terminal acetylation),Freeotherwisec_modification—NH2whenc_amidation_recommended,OHotherwisepurity_spec— always>95% HPLCquantity_mg— 2× for HIGH-difficulty, default (5 mg) for LOW/MODERATEsynthesis_difficulty,special_handling(condensed, vendor-readable notes)synthesis_checklist.md— human-facing per-candidate brief with:Downstream changes
cli.py: addedsynthesis-ordersubparser +_run_synthesis_order()handler with file-not-found guardMakefile: addedsynthesis-ordertarget (depends onconfident_panel.csv)Test plan
tests/test_order_generator.py_extract_handlingflag-to-note mapping (11 tests)write_order_csv— creates files, roundtrip, parent dir creationwrite_synthesis_checklist— content checks, disclaimer, Wave 2 sectionpython3 -m pytest tests/ -q→ 1036 passed🤖 Generated with Claude Code