Skip to content

#6092 - Antisense creating doesn't work if ambiguous peptide present in the chain selection#9563

Open
mariam-khutuashvili wants to merge 3 commits intomasterfrom
6092-antisense-creating-doesn't-work-if-ambiguous-peptide-present-in-the-chain-selection
Open

#6092 - Antisense creating doesn't work if ambiguous peptide present in the chain selection#9563
mariam-khutuashvili wants to merge 3 commits intomasterfrom
6092-antisense-creating-doesn't-work-if-ambiguous-peptide-present-in-the-chain-selection

Conversation

@mariam-khutuashvili
Copy link
Copy Markdown
Collaborator

@mariam-khutuashvili mariam-khutuashvili commented Mar 27, 2026

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)

  • Fix TypeError: Cannot read properties of undefined (reading 'map') crash when clicking "Create Antisense Strand" with an ambiguous peptide connected to an RNA chain
  • Root cause: in createAntisenseChain(), non-RNA nodes are cloned via this.addMonomer(monomer.monomerItem, ...). For AmbiguousMonomer, monomer.monomerItem is a synthetic MonomerItemType from the BaseMonomer super() call — it has isAmbiguous: true but no monomers array. When addMonomer detects isAmbiguous, it calls new AmbiguousMonomer(syntheticItem), whose constructor calls getAttachmentPoints(syntheticItem.monomers) → undefined.map() → crash
  • Fix: use monomer.variantMonomerItem (the real ambiguous template with the monomers array) instead of the synthetic monomerItem when the monomer is an AmbiguousMonomer

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

an AmbiguousMonomer during antisense strand creation, so the
AmbiguousMonomer constructor receives the real template with its
monomers array instead of the BaseMonomer synthetic item that lacks it.
@mariam-khutuashvili mariam-khutuashvili force-pushed the 6092-antisense-creating-doesn't-work-if-ambiguous-peptide-present-in-the-chain-selection branch from 2680c51 to 3eddb94 Compare April 6, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Antisense creating doesn't work if ambiguous peptide present in the chain selection

1 participant