Skip to content

Commit

Permalink
#1723 convert Daylight SMILES using indigo api
Browse files Browse the repository at this point in the history
Ketcher started using API call /convert to convert ket format to Daylight SMILES because Indigo supports reagents
  • Loading branch information
LadaYudovina committed Sep 14, 2022
1 parent bf260ae commit 786fed0
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ import {
KetSerializer,
MolSerializer,
MolSerializerOptions,
SmiSerializer
} from 'domain/serializers'
import { StructService, StructServiceOptions } from 'domain/services'

import { KetFormatter } from './ketFormatter'
import { MolfileV2000Formatter } from './molfileV2000Formatter'
import { RxnFormatter } from './rxnFormatter'
import { ServerFormatter } from './serverFormatter'
import { SmilesFormatter } from './smilesFormatter'

export class FormatterFactory {
#structService: StructService
Expand Down Expand Up @@ -85,24 +83,12 @@ export class FormatterFactory {
formatter = new RxnFormatter(new MolSerializer(molSerializerOptions))
break

case 'smiles':
formatter = new SmilesFormatter(
new SmiSerializer(),

// only for ServerFormatter, because 'getStructureFromStringAsync' is delegated to it

this.#structService,
new KetSerializer(),
format,
structServiceOptions
)
break

case 'cml':
case 'inChIAuxInfo':
case 'inChI':
case 'molV3000':
case 'rxnV3000':
case 'smiles':
case 'smilesExt':
case 'smarts':
case 'cdxml':
Expand Down

0 comments on commit 786fed0

Please sign in to comment.