Background
It needs to have an ability to save/open ket and molv3000 files through ketcher API. It should be available in global "ketcher" variable similar as for micromolecules.
The following API methods should be changed/implemented:
[x] Implement getKet for Macromolecules
[x] Implement getMol for Macromolecules
[x] Implement setMolecule for Macromolecules
[x] Implement addFragment for Macromolecules
[x] layout should throw an Error 'layout is not available' in macro mode
[x] recognize should throw an Error 'recognize is not available' in macro mode
[x] generateImage should work with macromolecules; Most likely, output will be different from molecules drawn in Ketcher
[x] setSettings – when executed does nothing, as there are no settings for macro mode yet (may affect preview for monomers)
[x] containsReaction – no actual changes in functionality; returns true if structure has a reaction in micro mode
[x] getSmiles, getCdx, ... and other formats, except getKet and getMolfile – throw Error
Background It needs to have an ability to save/open ket and molv3000 files through ketcher API. It should be available in global "ketcher" variable similar as for micromolecules.
The following API methods should be changed/implemented:
getKet
for MacromoleculesgetMol
for MacromoleculessetMolecule
for MacromoleculesaddFragment
for Macromoleculeslayout
should throw an Error 'layout is not available' in macro moderecognize
should throw an Error 'recognize is not available' in macro modegenerateImage
should work with macromolecules; Most likely, output will be different from molecules drawn in KetchersetSettings
– when executed does nothing, as there are no settings for macro mode yet (may affect preview for monomers)containsReaction
– no actual changes in functionality; returnstrue
if structure has a reaction in micro modegetSmiles
,getCdx
, ... and other formats, exceptgetKet
andgetMolfile
– throw Error