Never mind.  Figured it out.  For future questioners,
StructureDiagramGenerator with a call to "generateCoordinates" works
wonders.


pdanese wrote:
> 
> 
> Hi,
> 
> let's say that I have a smiles string that i'd like to parse and then
> write out as a mol file.
> 
> taken from the javadocs I have the following code:
> 
>     SmilesParser sp = new
> SmilesParser(DefaultChemObjectBuilder.getInstance());
>     FileWriter w = new FileWriter("C:\\benz.mol");
>     IMolecule m = sp.parseSmiles("c1ccccc1");
>        
>     MDLWriter mw = new MDLWriter(w);
>       
>             
>     mw.write(m);
>     mw.close();
> 
> ******************************************************
> this code parses the smiles string properly and generates a molfile that
> is *more or less** correct.
> 
> ***HOWEVER***, when viewing the molfile in a 2-D editor (MDL Draw or
> whatever), ALL OF THE ATOMS ARE PILED ON TOP OF EACH OTHER.
> 
> Is there a way to 'prettify' the output (or at least make the atoms
> non-overlapping?
> 
> TIA!!!!
> 

-- 
View this message in context: 
http://www.nabble.com/pretty-parsing-of-smiles-strings-tp16851071p16895866.html
Sent from the cdk-user mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to