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'

[Open Babel] OBConformerSearch -> turn off logging

2013-11-22 Thread beginner_
Hi all, when using OBConformerSearch I get a ton of logging messages and I do not see an option how to turn them off. Where Can I turn these messages off? Thank you. -- View this message in context: http://forums.openbabel.org/OBConformerSearch-turn-off-logging-tp4656922.html Sent from the Ge

Re: [Open Babel] Using obabel to filter ligands by number of rotatable bonds

2013-11-22 Thread Noel O'Boyle
According to Google, this has come up on the list before: http://www.mail-archive.com/openbabel-discuss@lists.sourceforge.net/msg02727.html HTH, - Noel On 22 November 2013 09:32, Pascal Muller wrote: > Hi, > > > > >> I have some multi-molecule SDF files from ZINC and simply want to filter >> t

Re: [Open Babel] Using obabel to filter ligands by number of rotatable bonds

2013-11-22 Thread Pascal Muller
Hi, I have some multi-molecule SDF files from ZINC and simply want to filter > them down to keep only those with a molecular weight < 1000 and rotatable > bonds < 20. > I use a python script for this. If it suits you, adjust for the file name and file format you are using: #!/usr/bin/python im

Re: [Open Babel] Adding Property to molecule and write to sd-file

2013-11-22 Thread beginner_
Thanks! that worked. -- View this message in context: http://forums.openbabel.org/Adding-Property-to-molecule-and-write-to-sd-file-tp4656905p4656919.html Sent from the General discussion mailing list archive at Nabble.com. ---