molconvert structure to image - but only the first structure

User 60b60eaf80

01-07-2009 11:47:40

Hi,


is there a way to tell the molconverter to only produce an image from specific structures of a file? I only need e.g. the 1st image of the structure file.


 


Greetings


Martin

ChemAxon 7c2d26e5cf

02-07-2009 12:04:14

If you convert an SD file that includes several record into image format with molconvert, only the first record will be processed.


molconvert jpeg moremols.sdf -o first.jpeg

User 60b60eaf80

03-07-2009 10:26:24

but is it reading the whole file first? because i'm using this as a thumbnailer in my gnome desktop environment and it takes ages for big sd files.

ChemAxon 7c2d26e5cf

03-07-2009 11:48:59

I recommend to write a simple batch script that cuts the first record from the SD file and feed molconvert with its output.


There is another solution too. With the MolImporter API you can write your own application where you can control import/export more flexible.


Please see the SimpleConverter example in the Marvin Beans package (examples/beans/converter) it converts the first record of a structure file into the given format.

User 60b60eaf80

06-07-2009 09:18:39

thank you very much