Re: [Open Babel] stereo config question

2013-12-05 Thread Yoel
is it right that you don't support R and S? I'm new to openbabel like two days old only but I have already seen that facade.GetTetrahedralStereo(atom.GetId()) will return OBTetrahedralConfig (java) wich contain a Config structure/object with a winding property that has two possible values:

Re: [Open Babel] stereo config question

2013-12-05 Thread Noel O'Boyle
...and in relation to this, I've just checked and I'm afraid that access to the stereo object is missing in the Java bindings. I will add it to my TODO list. - Noel On 3 December 2013 19:15, Yoel yoe...@gmail.com wrote: Thank Noel, I found the docs pretty clear. My problem isn’t with open

Re: [Open Babel] stereo config question

2013-12-05 Thread Tim Vandermeersch
Yes, this is due to the fact that SWIG doesn't expose nested classes. I've fixed this for python so this should hopefully also be possible for java. On Thu, Dec 5, 2013 at 10:15 PM, Yoel yoe...@gmail.com wrote: Thanks Noel On 5 December 2013 16:12, Noel O'Boyle baoille...@gmail.com wrote:

Re: [Open Babel] stereo config question

2013-12-04 Thread Yoel
Thanks Noel, Sure I agree and thanks for answering the original question. For Dimitri and I that are looking for assigning R and S your original answer was also the correct one since this winding property bears no relation to R/S because there are no guarantees that atom 1 is the smallest in

Re: [Open Babel] stereo config question

2013-12-04 Thread Craig James
On Wed, Dec 4, 2013 at 5:27 AM, Yoel yoe...@gmail.com wrote: Thanks Noel, Sure I agree and thanks for answering the original question. For Dimitri and I that are looking for assigning R and S your original answer was also the correct one since this winding property bears no relation to R/S

Re: [Open Babel] stereo config question

2013-12-04 Thread Dimitri Maziuk
On 2013-12-03 22:28, Geoffrey Hutchison wrote: Craig's point is not that CIP is impossible, but rather from a practical implementation side, it's easier to use other local stereo designations. I might be wrong, but the codes that I can think of with CIP implementations are all commercial, and as

Re: [Open Babel] stereo config question

2013-12-04 Thread Ana Teixeira
Hi all, Interesting discussion. I have been facing this problem recently and I did not know that RDKit could do it. I developed an algorithm to classify stereocenters as R/S and double bonds as E/Z using CIP rules and the information provided by openbabel. There is only one CIP rule that for

Re: [Open Babel] stereo config question

2013-12-04 Thread Tim Vandermeersch
The ability to determine CIP rules is a nice feature to have but not really necessary for most cheminformatics applications. If someone donates this code it would certainly be considered a valuable addition. I rewrote most of the sterochemistry code for OB a few years ago and never got around to

Re: [Open Babel] stereo config question

2013-12-03 Thread Noel O'Boyle
We don't support generation of R and S labels. However, we do store the stereochemistry. It's all stored in that config object. Clockwise and Anticlockwise are with respect to the stereo refs in the config. It should be clear enough from the docs (googling openbabel stereochemistry):

Re: [Open Babel] stereo config question

2013-12-03 Thread Dimitri Maziuk
On 12/03/2013 12:54 PM, Noel O'Boyle wrote: We don't support generation of R and S labels. However, we do store the stereochemistry. It's all stored in that config object. Clockwise and Anticlockwise are with respect to the stereo refs in the config. It should be clear enough from the docs

Re: [Open Babel] stereo config question

2013-12-03 Thread Yoel
Thank Noel, I found the docs pretty clear. My problem isn’t with open babel directly but with understanding how to, for example, use standard out to write my object using the java bindings… the lit example: converting this std::cout facade.GetTetrahedralStereo(atom-GetId()) std::endl; to this

Re: [Open Babel] stereo config question

2013-12-03 Thread Yoel
Dimitri, In this case you do know which way you are looking. For brevity let's consider a tetrahedral carbon atom with four different substituents... the first thing you do is to assign them priorities based on there atomic numbers then you place the smallest priority backward... this gives you

Re: [Open Babel] stereo config question

2013-12-03 Thread Dimitri Maziuk
On 12/03/2013 01:28 PM, Yoel wrote: Dimitri, In this case you do know which way you are looking. For brevity let's consider a tetrahedral carbon atom with four different substituents... the first thing you do is to assign them priorities based on there atomic numbers then you place the

Re: [Open Babel] stereo config question

2013-12-03 Thread Yoel
It shouldn't be any different to CIP since those are the rules I was talking about however I was being super short! There very interesting research papers on the topic that I came across quite sometime ago. I am sure that with time I could get one for you. However, the local connectivity should

Re: [Open Babel] stereo config question

2013-12-03 Thread Yoel
I find you one of the most interesting paper I know regarding this topic http://pubs.acs.org/doi/abs/10.1021/ci990090v The principle author P. Matos has several other papers on implementing CIP algorithms I have never tackle this problem myself but she is quite convinced that the CIP are a most

Re: [Open Babel] stereo config question

2013-12-03 Thread Craig James
On Tue, Dec 3, 2013 at 11:43 AM, Dimitri Maziuk dmaz...@bmrb.wisc.eduwrote: On 12/03/2013 01:28 PM, Yoel wrote: Dimitri, In this case you do know which way you are looking. For brevity let's consider a tetrahedral carbon atom with four different substituents... the first thing you do

Re: [Open Babel] stereo config question

2013-12-03 Thread Dimitri Maziuk
On 12/03/2013 03:11 PM, Yoel wrote: Craig, Thanks a lot for this. I do not know the smile notation in details however as a chemist I’m pretty sure I understand chirality. If I understood your article I see that explains how chirality is represented in smile notations but I still don’t see

Re: [Open Babel] stereo config question

2013-12-03 Thread Craig James
On Tue, Dec 3, 2013 at 1:11 PM, Yoel yoe...@gmail.com wrote: Craig, Thanks a lot for this. I do not know the smile notation in details however as a chemist I’m pretty sure I understand chirality. If I understood your article I see that explains how chirality is represented in smile

Re: [Open Babel] stereo config question

2013-12-03 Thread Yoel
Hum! I’m pretty confident with what I know but the issue here is that you answer isn’t contributing to clarifying the question. The question is how to we determine the chirality of a centre regardless of how you may choose to represent it at a later point. And this problem inevitable will come

Re: [Open Babel] stereo config question

2013-12-03 Thread Geoffrey Hutchison
inevitable will come down to applying the CIP rules. Do you disagree with that? No, I disagree. Yes, there are implementations of the CIP rules in code. Generally these are used when generating IUPAC names, and that's about it. If I take a structure to a colleague to synthesize, I only need

Re: [Open Babel] stereo config question

2013-12-03 Thread Yoel
Indeed it is hard but I have to STRONGLY disagree that we chemists assign R and S configuration in any other way that by applying the CIP rules… and for those molecules that are more complex we usually take more time. Neither during my PhD years or my postgrad years I saw any organic chemist that

Re: [Open Babel] stereo config question

2013-11-19 Thread Dimitri Maziuk
On 2013-11-19 03:09, Noel O'Boyle wrote: We neither have R/S perception nor E/Z. OK, thanks. Dima -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech