From 4151794b4ac192afd30d676e25d008faf9b1884f 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;