Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/test_presynth_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,17 @@ def test_seed009_pilot_sequences_get_flag(self):
qc = check_sequence("s9", seq)
assert any("PROLINE_RICH" in f for f in qc.flags), f"missing flag for {seq}"

def test_seed009_var033_gets_met_and_proline_flags_simultaneously(self):
# VAR_033 (RRLPRPGYMPRP) is the only SEED-009 pilot with Met at position 9.
# Both MET×1 (Nle recommendation) and PROLINE_RICH_INTRACELLULAR must fire together.
# Regression guard for WET_LAB_HANDOFF correction in PR #106.
qc = check_sequence("SEED-009_VAR_033", "RRLPRPGYMPRP")
flag_texts = " ".join(qc.flags)
assert "MET" in flag_texts, "VAR_033 must carry Met oxidation flag"
assert "Nle" in flag_texts, "VAR_033 Met flag must recommend Nle substitution"
assert "PROLINE_RICH" in flag_texts, "VAR_033 must carry PROLINE_RICH_INTRACELLULAR flag"
assert qc.methionine_count == 1


# ---------------------------------------------------------------------------
# LONG_PEPTIDE flag (> 30 AA)
Expand Down
Loading