Re: [Open Babel] Conversion of 2D SDF to 3D SDF in Perl

2013-11-22 Thread Geoffrey Hutchison
> Thank you for the speedy replies. I attached an example 2D SDF file. Well, you can verify for yourself that 3D generation works, e.g.: % obabel ~/Desktop/CHEMBL100358.sdf --gen3d -O CHEMBL.sdf # waiting.. .. .. % cat CHEMBL.sdf It works fine from the command-line. Hope that helps, -Geoff -

Re: [Open Babel] Conversion of 2D SDF to 3D SDF in Perl

2013-11-22 Thread Wallace Chan
Geoff and Noel, Thank you for the speedy replies. I attached an example 2D SDF file. Wallace On Fri, Nov 22, 2013 at 4:28 PM, Geoffrey Hutchison < geoff.hutchi...@gmail.com> wrote: > > my $filename = $id . '.sdf'; > > open (OUT, ">temp.sdf"); > >

Re: [Open Babel] Conversion of 2D SDF to 3D SDF in Perl

2013-11-22 Thread Geoffrey Hutchison
> my $filename = $id . '.sdf'; > open (OUT, ">temp.sdf"); > print OUT @sdfdata; > close OUT; > $obConversion->ReadFile($obMol, "temp.sdf”); This just seems weird. Even if you have a bunch of data, you don’t need to sa

Re: [Open Babel] Conversion of 2D SDF to 3D SDF in Perl

2013-11-22 Thread Noel O'Boyle
Hi Wallace, I'm not much good with Perl, but for those folks who are, could you provide a complete Perl script that reproduces the problem. The smaller the script the better. For example, at the moment I can easily blame everything on what everything is in @sdfdata. Also please note that ReadFile

[Open Babel] Conversion of 2D SDF to 3D SDF in Perl

2013-11-22 Thread Wallace Chan
Dear All, Once again, I apologize for my utter lack of experience, but I was hoping y'all could help me out with a problem I've been having. Using OpenBabel in Perl, I have been trying to convert several 2D SDF files to 3D. The process appears to be stuck somewhere between the 'Do' and 'WriteFile'