Skip to content

Add EU numbering for human IgG CH Chain Analysis - #5

Merged
dcroote merged 2 commits into
mainfrom
cursor/ch-eu-numbering-f6df
Jul 10, 2026
Merged

Add EU numbering for human IgG CH Chain Analysis#5
dcroote merged 2 commits into
mainfrom
cursor/ch-eu-numbering-f6df

Conversation

@dcroote

@dcroote dcroote commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

Adds an EU numbering row above the raw residue ruler in CH Chain Analysis when the constant region is human IgG (IGHG1–4). Numbering is applied only after isotype determination, using isotype-specific Edelman/EU maps from the IMGT Hu_IGHGnber correspondence table.

Behavior

  • Human IGHG1–4: show EU: ruler (decades, same right-align style as the raw ruler) above the existing 1-based alignment ruler
  • Non-IgG CH, mouse CH, and CL: unchanged (no EU row)
  • Hinge Eu indices differ by isotype (IgG1 continuous 216–230; IgG2/IgG4 skips; IgG3 mostly unnumbered outside H1/H4)
  • IgG2 CH2 omits Eu 233 (IMGT codon 1.4 deletion)

API

  • LAMBS.getHumanIgGEuNumbers(isotype)
  • LAMBS.mapEuOntoConstantAlignment(aligned2, species, isotype)

Tests

Provenance-backed coverage against real therapeutics and structures:

  • Trastuzumab (KEGG D03257) — N297, C226/C229, L234
  • Pembrolizumab (PDB 5DK3) / nivolumab (DDInter/DrugBank) — IgG4 S228P
  • Panitumumab (PDB 5SX4) — IgG2 hinge / missing Eu 233
  • Rituximab (PDB 2OSL), adalimumab (PDB 3WD5), b12 (PDB 1HZH), Fc 4X4M

node test.js: 779 passed, 0 failed

Open in Web Open in Cursor 

cursoragent and others added 2 commits July 10, 2026 01:28
Show Edelman/EU indices above the raw ruler in CH Chain Analysis after
isotype determination, using IMGT Hu_IGHGnber maps that differ by IGHG1–4
hinge and the IgG2 CH2 deletion. Cover maps and therapeutics (trastuzumab,
pembrolizumab, nivolumab, panitumumab, rituximab, adalimumab, b12) with
provenance-backed tests.

Co-authored-by: Derek Croote <dcroote@users.noreply.github.com>
Drop the IMGT link, bolding, and Edelman/EU definition from the
constant-region feature bullet.

Co-authored-by: Derek Croote <dcroote@users.noreply.github.com>
@cursor

cursor Bot commented Jul 10, 2026

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@dcroote
dcroote merged commit bea6425 into main Jul 10, 2026
2 checks passed
dcroote added a commit that referenced this pull request Jul 11, 2026
* Add EU numbering row for human IgG CH alignments

Show Edelman/EU indices above the raw ruler in CH Chain Analysis after
isotype determination, using IMGT Hu_IGHGnber maps that differ by IGHG1–4
hinge and the IgG2 CH2 deletion. Cover maps and therapeutics (trastuzumab,
pembrolizumab, nivolumab, panitumumab, rituximab, adalimumab, b12) with
provenance-backed tests.

Co-authored-by: Derek Croote <dcroote@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants