Re: [OpenBabel-scripting] level of MNA descriptors

2011-05-07 Thread Noel O'Boyle
Plugins are best called directly on a molecule with something like: gen2d = OBOp.FindType("gen2d") # Looks up the plugin and returns it gen2d.Do(mymol) # Calls the plugin on your molecule - Noel On 6 May 2011 23:22, dave.nunn wrote: > Did anyone get a Perl version that works? I've been attempti

Re: [OpenBabel-scripting] level of MNA descriptors

2011-05-06 Thread dave.nunn
Did anyone get a Perl version that works? I've been attempting something analogous using: $OBConversion->SetOutFormat('sdf'); $OBConversion->AddOption('gen2d', $Chemistry::OpenBabel::OBConversion::GENOPTIONS); but $OBConversion->WriteString($OBMol) warns about missing coords and gives me all 0.000

Re: [OpenBabel-scripting] level of MNA descriptors

2011-04-26 Thread Igor Filippov
Noel, Good call, this works! Thank you, Igor On Tue, 2011-04-26 at 15:55 +0100, Noel O'Boyle wrote: > In Python, I have either: > >conv.SetOptions("L\"0\"", conv.OUTOPTIONS) > or >conv.SetOptions('L"1"', conv.OUTOPTIONS) > > In other words, if you use double quotation marks, you need

Re: [OpenBabel-scripting] level of MNA descriptors

2011-04-26 Thread Noel O'Boyle
In Python, I have either: conv.SetOptions("L\"0\"", conv.OUTOPTIONS) or conv.SetOptions('L"1"', conv.OUTOPTIONS) In other words, if you use double quotation marks, you need to escape the inner double quotation marks. - Noel On 26 April 2011 15:43, Igor Filippov wrote: > Noel, > > Hmmm, I

Re: [OpenBabel-scripting] level of MNA descriptors

2011-04-26 Thread Igor Filippov
Noel, Hmmm, I'm not sure how to parse this into Perl. Is it different from what I've tried (I put the line from my script in the previous email)? Igor On Mon, 2011-04-25 at 10:44 +0100, Noel O'Boyle wrote: > The API docs say: > SetOptions: Set several single character options of specified ty

Re: [OpenBabel-scripting] level of MNA descriptors

2011-04-25 Thread Chris Morley
The function you need is AddOption Chris On 23/04/2011 04:40, Igor Filippov wrote: > Can anybody advise how to set up the level of MNA descriptors in Perl? > > I tried > $obconversion->SetOptions('L3', > $Chemistry::OpenBabel::OBConversion::OUTOPTIONS); > > It doesn't seem to do the trick. > > Re

Re: [OpenBabel-scripting] level of MNA descriptors

2011-04-25 Thread Noel O'Boyle
The API docs say: SetOptions: Set several single character options of specified type from string like ab"btext"c"ctext". Have you tried this? - Noel On 23 April 2011 04:40, Igor Filippov wrote: > Can anybody advise how to set up the level of MNA descriptors in Perl? > > I tried > $obconvers

[OpenBabel-scripting] level of MNA descriptors

2011-04-25 Thread Igor Filippov
Can anybody advise how to set up the level of MNA descriptors in Perl? I tried $obconversion->SetOptions('L3', $Chemistry::OpenBabel::OBConversion::OUTOPTIONS); It doesn't seem to do the trick. Regards, Igor -- Fulfill