> And, I got this error: "Can't locate object method "new" via package > "Chemistry::Openbabel::OBOp" (perhaps you forgot to load > "Chemistry::Openbabel::OBOp"?) at convert_iuphar.pl line 30." This is the > same way I call OBConversion and OBMol, so I'm not sure why it's not working. > Either I'm doing it wrong, or the class wasn't included in the module. Any > help would be greatly appreciated!
That’s not actually how you load an OBOp. But incidentally, what version of Open Babel are you using? As Noel mentioned, you want something like this (sorry, my Perl is rusty): my $genOp = Chemistry::OpenBabel::OBOp::FindType(“gen3d”) my $success = $genOp->Do(myOBMol) Hope that helps, -Geoff ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss