From a883c935a984531ec406ddaa3d29e1997adad0f5 Mon Sep 17 00:00:00 2001 From: Roman Rodionov Date: Tue, 26 Nov 2024 14:44:47 +0100 Subject: [PATCH] #5972 - Export to three letter amino acid codes cause convert error --- .../src/infrastructure/services/struct/indigoWorker.types.ts | 1 + .../infrastructure/services/struct/standaloneStructService.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/packages/ketcher-standalone/src/infrastructure/services/struct/indigoWorker.types.ts b/packages/ketcher-standalone/src/infrastructure/services/struct/indigoWorker.types.ts index 3717ef3dbd..71b32d2fc8 100644 --- a/packages/ketcher-standalone/src/infrastructure/services/struct/indigoWorker.types.ts +++ b/packages/ketcher-standalone/src/infrastructure/services/struct/indigoWorker.types.ts @@ -66,6 +66,7 @@ export enum SupportedFormat { SDF = 'sdf', FASTA = 'fasta', SEQUENCE = 'sequence', + SEQUENCE_3_LETTER = 'peptide-sequence-3-letter', IDT = 'idt', HELM = 'helm', RDF = 'rdf', diff --git a/packages/ketcher-standalone/src/infrastructure/services/struct/standaloneStructService.ts b/packages/ketcher-standalone/src/infrastructure/services/struct/standaloneStructService.ts index 71a6d7844e..6b09669edd 100644 --- a/packages/ketcher-standalone/src/infrastructure/services/struct/standaloneStructService.ts +++ b/packages/ketcher-standalone/src/infrastructure/services/struct/standaloneStructService.ts @@ -143,6 +143,10 @@ function convertMimeTypeToOutputFormat( format = SupportedFormat.SEQUENCE; break; } + case ChemicalMimeType.PeptideSequenceThreeLetter: { + format = SupportedFormat.SEQUENCE_3_LETTER; + break; + } case ChemicalMimeType.IDT: { format = SupportedFormat.IDT; break;