MolConverter: SDF to multiple PNG Batch converting issue

User 86138bd6fa

23-10-2014 12:03:45

Dear developers, could you advise how to convert one SDF to multiple PNG (SVG) files. Using the command "molconvert png in.sdf -m > out.png", "molconvert png in.sdf -m out.png" i just received only one output file. Thanks in advance!

ChemAxon e49cf225c6

27-10-2014 09:58:26

Hi,


This should work:


 molconvert png in.sdf -m -o out.png


 


You can specify the output file through the -o option.

User 274d5eac9e

22-08-2016 21:55:30

























I would like to thank you for software package which you provide. I just recently obtained academic licence and I loved your product.


I am have one small issue regarding naming the chemical structures by using molconverter. I am using molconvert to convert SDF files into separate image files with chemical names. My aim is to name each image file with the IUPAC name which is written on SDF file near chemical structure (in the second row). Here is what we tried so far:


C:\Program Files (x86)\ChemAxon\MarvinBeans\bin>molconvert png:w400,h200,#00ffffff formulas.sdf -o rez.png -m


In a rezult I get the image files named rez1.png,  rez2.png and so on. 

However, I want that each file would be named according the chemical formula with IUPAC name. 



I also looked in your forum regarding this problem




However, I could not figure out how to implement T ar -T syntax.



Please advise me how I could achieve this by using command line. I would like to avoid programming in java.


Kind regards




























Sans Serif

https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png) center center no-repeat;">









https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -84px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png) center center no-repeat;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: 0px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -21px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -42px 0px;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -105px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png) center center no-repeat;">









https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -273px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png) center center no-repeat;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -168px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -189px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -210px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -231px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -252px 0px;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -336px 0px;">





https://ssl.gstatic.com/ui/v1/icons/mail/down_pointer.png);">




 

















Send








https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png) 0px -524px no-repeat;">
 













https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png) 0px -394px no-repeat;">
 








https://ssl.gstatic.com/mail/sprites/general-3a1c625ca63295cb1bc1a10c43c0173d.png) 0px -602px no-repeat;">
 








https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png) 0px -128px no-repeat;">
 








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -147px 0px;">
 








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -357px 0px;">
 







 







https://ssl.gstatic.com/mail/sprites/general-3a1c625ca63295cb1bc1a10c43c0173d.png) 0px -144px no-repeat;">











ChemAxon cfb2ce1d3d

31-08-2016 09:26:12
















Hello,

My apologies for the delay in answering. Unfortunately I see no direct way to do that. I'll try to get some expert get involved, but till then I guess your best bet is scripted solution:


molconvert name XXX.sdf -o names.txt


names = read(“names.txt”): 


foreach (name:names) {


      molconvert png -s name -o name.png


 





Regards


Zsolt





















Sans Serif

https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png); background-position: 50% 50%; background-repeat: no-repeat no-repeat;">









https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -84px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png); background-position: 50% 50%; background-repeat: no-repeat no-repeat;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: 0px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -21px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -42px 0px;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -105px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png); background-position: 50% 50%; background-repeat: no-repeat no-repeat;">









https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -273px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png); background-position: 50% 50%; background-repeat: no-repeat no-repeat;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -168px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -189px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -210px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -231px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -252px 0px;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -336px 0px;">





https://ssl.gstatic.com/ui/v1/icons/mail/down_pointer.png);">




 

















Send

 


 








https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png); background-position: 0px -524px; background-repeat: no-repeat no-repeat;">
 












https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png); background-position: 0px -394px; background-repeat: no-repeat no-repeat;">
 








https://ssl.gstatic.com/mail/sprites/general-3a1c625ca63295cb1bc1a10c43c0173d.png); background-position: 0px -602px; background-repeat: no-repeat no-repeat;">
 








https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png); background-position: 0px -128px; background-repeat: no-repeat no-repeat;">
 








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -147px 0px;">
 








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -357px 0px;">
 







 







https://ssl.gstatic.com/mail/sprites/general-3a1c625ca63295cb1bc1a10c43c0173d.png); background-position: 0px -144px; background-repeat: no-repeat no-repeat;">




















VDranginis wrote:

























I would like to thank you for software package which you provide. I just recently obtained academic licence and I loved your product.


I am have one small issue regarding naming the chemical structures by using molconverter. I am using molconvert to convert SDF files into separate image files with chemical names. My aim is to name each image file with the IUPAC name which is written on SDF file near chemical structure (in the second row). Here is what we tried so far:


C:\Program Files (x86)\ChemAxon\MarvinBeans\bin>molconvert png:w400,h200,#00ffffff formulas.sdf -o rez.png -m


In a rezult I get the image files named rez1.png,  rez2.png and so on. 

However, I want that each file would be named according the chemical formula with IUPAC name. 



I also looked in your forum regarding this problem




However, I could not figure out how to implement T ar -T syntax.



Please advise me how I could achieve this by using command line. I would like to avoid programming in java.


Kind regards




























Sans Serif

https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png) center center no-repeat;">









https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -84px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png) center center no-repeat;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: 0px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -21px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -42px 0px;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -105px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png) center center no-repeat;">









https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -273px 0px;">


https://ssl.gstatic.com/ui/v1/disclosure/small-grey-disclosure-arrow-down.png) center center no-repeat;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -168px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -189px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -210px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -231px 0px;">







https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -252px 0px;">








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -336px 0px;">





https://ssl.gstatic.com/ui/v1/icons/mail/down_pointer.png);">




 

















Send








https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png) 0px -524px no-repeat;">
 













https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png) 0px -394px no-repeat;">
 








https://ssl.gstatic.com/mail/sprites/general-3a1c625ca63295cb1bc1a10c43c0173d.png) 0px -602px no-repeat;">
 








https://ssl.gstatic.com/mail/sprites/compose-28e1860af47052bc9ce7a152b803c105.png) 0px -128px no-repeat;">
 








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -147px 0px;">
 








https://ssl.gstatic.com/ui/v1/icons/mail/html_editor.png); background-position: -357px 0px;">
 







 







https://ssl.gstatic.com/mail/sprites/general-3a1c625ca63295cb1bc1a10c43c0173d.png) 0px -144px no-repeat;">












User 55aaaa012b

31-08-2016 10:29:28

@zkuti


In what scripting language this is written?

ChemAxon cfb2ce1d3d

31-08-2016 11:24:36










vinkas wrote:

@zkuti


In what scripting language this is written?



Sorry. After some editing it was just left out from the post that this is a meta-language "script". The logic is to be implemented in your choice of scripting language.


 


Regards


Zsolt