Skip to content

Commit

Permalink
Backmerge: #2615 - Export to three letter amino acid codes cause conv…
Browse files Browse the repository at this point in the history
…ert error (#2626)
  • Loading branch information
AliaksandrDziarkach authored Nov 11, 2024
1 parent 77b534f commit f37b576
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/wasm/indigo-ketcher/indigo-ketcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,10 @@ namespace indigo
input_format = it->second;

bool use_document = false;
if ((input_format == "ket" || input_format == "application/json") && outputFormat.size() > 0 &&
(outputFormat == "sequence" || outputFormat == "chemical/x-sequence" || "chemical/x-peptide-sequence-3-letter" || outputFormat == "fasta" ||
outputFormat == "chemical/x-fasta" || outputFormat == "idt" || outputFormat == "chemical/x-idt" || outputFormat == "helm" ||
outputFormat == "chemical/x-helm"))
static const std::set<std::string> document_formats{
"sequence", "chemical/x-sequence", "chemical/x-peptide-sequence-3-letter", "fasta", "chemical/x-fasta", "idt", "chemical/x-idt",
"helm", "chemical/x-helm"};
if ((input_format == "ket" || input_format == "application/json") && outputFormat.size() > 0 && document_formats.count(outputFormat) > 0)
use_document = true;
IndigoKetcherObject iko = loadMoleculeOrReaction(data, options_copy, library, use_document);

Expand Down

0 comments on commit f37b576

Please sign in to comment.