Save disconnected molecules separately in MarvinSketch

User 8717ac71bd

29-01-2009 21:38:19

Hi -





Is there a way to save multiple molecules drawn on the same page in MarvinSketch as separate molecules in any format?  (SDF is preferred but MRV is fine.)  This is the standard functionality of ChemDraw when saving as SDF.





As an example, in the attached image I would like the three fragments in the window to be saved as 3 separate molecules not as one large molecule.  To test, my preference (or option) would be opening the MRV or SDF from MarvinSketch in MarvinView would give three separate entries not one entry with an image contain the 3 fragments.








To get around the fact that MarvinSketch saves everything as one molecule with disconnected pieces, I have to feed the open thru OpenBabel and use the "Output disconnected fragments separately" functionality.








Any help would be appreciated.





Thanks.





David

ChemAxon a3d59b832c

06-02-2009 22:19:53

Hi David,





Sorry for the delayed answer.











Unfortunately, this is not currently possible in MarvinSketch. We do have Java methods to break a molecule into its separate fragments, but it is not accessible from MarvinSketch GUI.








We will consider this feature for future development. Thank you for drawing our attention to it.








Best regards,





Szabolcs

User 8717ac71bd

16-02-2009 17:09:59

If the Java methods are available (which I assumed because the calculators can treat the individual pieces as fragments) does that mean it would be possible for me to write a plugin that uses them to save files the way I would like?





I have started looking into creating my own plugins and am comfortable enough to try something like this unless you expect to be able to offer this option in the 5.2 release this quarter?








Thanks.





David

ChemAxon 909aee4527

18-02-2009 19:23:45

Hi David,





some of my colleagues are on holiday now, they will answer when they are back next week.





Kind regards,


Judit

ChemAxon 990acf0dec

24-02-2009 17:48:54

Hi David,





5.2 is going to be released in a week, so we have no time to implement this feature. In addition, I cannot promise it to happen very soon either. The other way round (to import the separate structure records in an SDFile to the same canvas) is already under development, and scheduled to be available in 5.2.1, but the export will come only later.





Thank you for your understanding.








Best regards,





Akos

ChemAxon 990acf0dec

24-02-2009 18:07:11

Hi David,





I forget to answer the section related to the creation of a calculator plugin doing this job. As far as I know it is possible: you probably need to create a plugin which brings up a MarvinView where the fragments are in different cells, and then you can save it to any multimolecular format.





Alternatively, if it is not important to have this functionality form the MarvinSketch GUI, in 5.2 there will be a new Chemical Terms function named "fragments()" will be available, which returns the fragments of a molecule as separate molecules.








Best regards,





Akos

User 8717ac71bd

25-02-2009 22:39:33

Hi Akos -





Thanks.  I appreciate that you can't get this functionality into a short term release.





I will look into the new chemical terms feature because that should do what I need.  However,  not having to leave the GUI would be preferential so I may try to implement it as a GUI plugin anyway.





David

ChemAxon 990acf0dec

26-02-2009 07:35:23

Hi David,





If you have any difficulties when creating the plugin, just drop a message here, and our expert will help you.





Best regards,





Akos

User 8717ac71bd

29-09-2009 15:48:05

Has any further consideration been given to this feature?  It would still be useful to me to be able to draw multiple molecules and have them save as separate disconnected molecules in the output file.


 


Thanks.


David

ChemAxon 990acf0dec

05-10-2009 10:01:33

Hi,


Unfortunately, we still had no capacity for this. On the other hand, it is a useful feature, so we will take it into account when planning version 5.4.


Best regards,


Akos

User 228f658451

23-02-2012 10:25:05










akospapp wrote:

Hi,


Unfortunately, we still had no capacity for this. On the other hand, it is a useful feature, so we will take it into account when planning version 5.4.


Best regards,


Akos



Hi,


 


We have now version 5.8. Is it now possible to save disconected molecules as separated entries in sdf or mrv?


Best regards,


Ania

ChemAxon f052bdfe3c

23-02-2012 16:08:26

Sorry. We are planning to implement it in the version 5.10.

User 870ab5b546

24-02-2012 15:32:13

Maybe you could add a getFragments() method to chemaxon.marvin.beans.MarvinPane so that it can be called by Javascript?

ChemAxon 5433b8e56b

28-02-2012 12:16:20

Hi Bob,


yes we can do this, but what should this method return to the javascript side? The source with multiple molecules crated from fragments in a given format can be suitable for you?


Regards,
Istvan

User 870ab5b546

28-02-2012 12:49:29

I would return an array of Strings containing the MRV for each individual molecule.

ChemAxon 5433b8e56b

28-02-2012 12:57:23

All right, that's fine for us. I have added this request to the issue in our issue tracker, and they will be developed together for 5.10 then.