Chemical reaction files

Hi,

using the chemical reaction components in PP I want to do the following one:

R-OH ---> R-SO3H

so sulfonation from hydroxyl functional groups.

It is clear that this reaction does not come by default with PP library.

Does somebody know where can one find it or how can one design new ones ?

Thanks

WS
Answers 16
JB
JB 2009-06-26
Hi Werner,

If you want to design new reactions, you have different ways to do it.

You can use a drawing approach using ex-Isis draw or Chemdraw and create an rxn file. (or other softwares). The information do it should be available on the help of the program. (I attached a file, it is zipped because the forum doesn't accept the rxn format)

Another option is to write a SMIRKS (similar to SMARTS but for reaction).
Examples

For your query, in SMIRKS it may look like:
[*:1][OH]>> [*:1]S(=O)(=O)[OH]
* represents every atom and the :1 is to specified hat the atom is the same before and after (mapping).
It is easier to draw a reaction but SMIRKS allow more flexibility (using SMARTS pattern).

I hope this can help you.

Cheers,

Jeremy
comment imagecomment image
HP
HP 2009-07-02
Salut Jeremy,

thanks a lot. I tried your RXN example and seems to work perfectly.

I also tried to make a SMIRKS file, in my case:

[*:1][O:2](-[H:3])>>[*:1][S:2](=[O:3])(=[O:4])(=[O:5])-[O:6]

So in the output in pipeline pilot, in the 2D HTML molecular table, everything seems to be ok, but if I have a look to the resulting mol2 file, the SO4 group is wrong: I see no "S" on the file, and the new "O" oxygen atoms are placed at coordinates 0.0 0.0 0.0. (I save to mol2 using the mol2 writer after the reaction component)

what can be wrong here?



quote:
Originally posted by Jérémy:
Hi Werner,

If you want to design new reactions, you have different ways to do it.

You can use a drawing approach using ex-Isis draw or Chemdraw and create an rxn file. (or other softwares). The information do it should be available on the help of the program. (I attached a file, it is zipped because the forum doesn't accept the rxn format)

Another option is to write a SMIRKS (similar to SMARTS but for reaction).
Examples

For your query, in SMIRKS it may look like:
[*:1][OH]>> [*:1]S(=O)(=O)[OH]
* represents every atom and the :1 is to specified hat the atom is the same before and after (mapping).
It is easier to draw a reaction but SMIRKS allow more flexibility (using SMARTS pattern).

I hope this can help you.

Cheers,

Jeremy
JB
JB 2009-07-02
re,

I notice that my SMIRKS has an error, there is a space after the >> so it doesn't work.

For the coordinates all to zero, you need to use the component "2D Coords" (or 3D) before writing to the file, it will recreate a normal file.

I don't know why you don't have a S in your file. I use your SMIRKS and I get this if I transform propanol:

@MOLECULE
Unnamed
7 6 1 0 0
SMALL
FORMAL_CHARGES
@ATOM
1 C1 0.2606 0.1503 0.0000 C.3 1 **** 0
2 C2 1.3000 0.7500 0.0000 C.3 1 **** 0
3 C3 2.6000 0.0000 0.0000 C.3 1 **** 0
4 S1 3.9000 0.7500 0.0000 S.O2 1 **** 0
5 O1 4.9394 0.1503 0.0000 O.2 1 **** 0
6 O2 3.9000 1.9500 0.0000 O.2 1 **** 0
7 O3 4.9391 1.3502 0.0000 O.3 1 **** 0
@BOND
1 1 2 1
2 2 3 1
3 3 4 1
4 4 5 2
5 4 6 2
6 4 7 1
@SUBSTRUCTURE
1 **** 1


And if I read this file using mol2 reader I get the SO3H group. Actually I'm missing an oxygen

Edit: I now have 4 O, the problem comes from the hydrogen mapping, I don't really know why but this works:
[*:1][O:2](-[H])>>[*:1][S:2](=[O])(=[O:4])(=[O:5])-[O:6]

Jeremy
JB
JB 2009-07-07
Hi,

I don't usually work with mol2 file.
But for the writer in the parameters there is an option "IntegerFormalCharges" which by default is False. You can try with True.
Concerning the reader, I don't know.

Cheers,

Jeremy
HP
HP 2009-07-07
Hi,

I realize now, that working in this way, whether with RXN or smirks files, I lost the charges of the original mol2 file!

Is there any way to not to lost them?

Thanks
AA
AA 2009-07-08
Werner,

I don't think it is a good idea to maintain partial charges across a reaction transformation. For one thing you won't have partial charges for any atoms that are introduced. You will lose the partial charges for any atoms that are destroyed. This means the net charge on the molecule is undefinable. This is sufficiently ambiguous to make any preserved charges meaningless. Even without taking into account the difference in electron donating/withdrawing characteristics of the old and new groups.

Having said that, it is possible to make this happen in Pipeline Pilot. When a reaction is applied atoms which are mapped are converted. Atoms in the reactant which are not mapped are deleted. Atoms which are not mapped in the product are created. So in a reaction defined as
[C:1](=[O:2])[O:3]>>[C:1](=[O:2])[N:3]
The oxygen is changed into a nitrogen whereas if you defined it as
[C:1](=[O:2])O>>[C:1](=[O:2])N
the oxygen is deleted and a new, nitrogen, atom is created.

If no atoms are created or destroyed in the transformation as defined Pipeline Pilot maintains the partial charges.

In a RXN file all atom mappings must be in pairs. Strictly speaking this is also true for the SMIRKS format but Pipeline Pilot allows transformations such as
[C:1](=[O:2])[O:3]>>[C:1](=[O:2])[O:3][C:4]
in this case a new carbon is added. It doesn't actually map to anything despite the number. However this does trick Pipeline Pilot into thinking that the atom has not been destroyed so the charges are maintained. Personally, I think this behaviour is incorrect and I would not rely on it.

The other, more complex, option would be to use two Atom Properties components to store the Partial Charges in an array and restore them. It would be your responsibility to resize the array to match the new molecule and add or remove any partial charges for new atoms.

I'm sorry this is rather long-winded. I believe the most important point is that the current behaviour is usually what is wanted. The charges are no longer valid after the transformation so it is safer to remove them than maintain them.,
HP
HP 2009-07-08
Hi Malcoln,

thanks a lot for your answer, i think you are right, and I should then recalculate again the partial charges after the "reaction".

What I do not see clear now is why my molecules get smaller after the RXN reaction file from Jeremy.

Thanks a lot

WS

quote:
Originally posted by Malcolm Baird (Accelrys):
Werner,

I don't think it is a good idea to maintain partial charges across a reaction transformation. For one thing you won't have partial charges for any atoms that are introduced. You will lose the partial charges for any atoms that are destroyed. This means the net charge on the molecule is undefinable. This is sufficiently ambiguous to make any preserved charges meaningless. Even without taking into account the difference in electron donating/withdrawing characteristics of the old and new groups.

Having said that, it is possible to make this happen in Pipeline Pilot. When a reaction is applied atoms which are mapped are converted. Atoms in the reactant which are not mapped are deleted. Atoms which are not mapped in the product are created. So in a reaction defined as
[C:1](=[O:2])[O:3]>>[C:1](=[O:2])[N:3]
The oxygen is changed into a nitrogen whereas if you defined it as
[C:1](=[O:2])O>>[C:1](=[O:2])N
the oxygen is deleted and a new, nitrogen, atom is created.

If no atoms are created or destroyed in the transformation as defined Pipeline Pilot maintains the partial charges.

In a RXN file all atom mappings must be in pairs. Strictly speaking this is also true for the SMIRKS format but Pipeline Pilot allows transformations such as
[C:1](=[O:2])[O:3]>>[C:1](=[O:2])[O:3][C:4]
in this case a new carbon is added. It doesn't actually map to anything despite the number. However this does trick Pipeline Pilot into thinking that the atom has not been destroyed so the charges are maintained. Personally, I think this behaviour is incorrect and I would not rely on it.

The other, more complex, option would be to use two Atom Properties components to store the Partial Charges in an array and restore them. It would be your responsibility to resize the array to match the new molecule and add or remove any partial charges for new atoms.

I'm sorry this is rather long-winded. I believe the most important point is that the current behaviour is usually what is wanted. The charges are no longer valid after the transformation so it is safer to remove them than maintain them.,
HP
HP 2009-07-08
Hi Jeremy,

after checking the results with you rxn file, I see some strange: the molecules in the resulting mol2 files get smaller, half size approximately! is it normal?

Could please the people from accelrys post some protocol or example where a input with a set of mol2 molecules get processed in a reaction and they are written out as mol2 files without losing the initial charges?

Thanks

quote:
Originally posted by Jérémy:
Hi Werner,

If you want to design new reactions, you have different ways to do it.

You can use a drawing approach using ex-Isis draw or Chemdraw and create an rxn file. (or other softwares). The information do it should be available on the help of the program. (I attached a file, it is zipped because the forum doesn't accept the rxn format)

Another option is to write a SMIRKS (similar to SMARTS but for reaction).
Examples

For your query, in SMIRKS it may look like:
[*:1][OH]>> [*:1]S(=O)(=O)[OH]
* represents every atom and the :1 is to specified hat the atom is the same before and after (mapping).
It is easier to draw a reaction but SMIRKS allow more flexibility (using SMARTS pattern).

I hope this can help you.

Cheers,

Jeremy
HP
HP 2009-07-08
Hi Jeremy,

thanks for the suggestion, but i lost anyway the charges ...

quote:
Originally posted by Jérémy:
Hi,

I don't usually work with mol2 file.
But for the writer in the parameters there is an option "IntegerFormalCharges" which by default is False. You can try with True.
Concerning the reader, I don't know.

Cheers,

Jeremy
JB
JB 2009-07-09
Hi,

Thank you Malcon for the charge explanation, and mapping, I was also surprised that a new atom on the right with a mapping was correct.

Werner, what do you mean by your molecule are smaller? I don't have a problem with using the RXN, although it is not a very good one (it transforms all the OH in SO3H, even carboxlic acid).

I attached a small example, it reads the asinex file, keeps some molecules, performs the reaction, writes a mol2, reads mol2. I don't see an issue. Is it possible for you to share a some of the molecules with problem? (may be by removing some atoms so there is no IP problem)

Edit: after Malcon post: I did not think about this type of size (I thought that the molecule was loosing some atoms...)
comment imagecomment image
AA
AA 2009-07-09
Werner,

Without specific examples of input and output riles I can only guess at the causes of smaller molecules.

If you mean smaller file-sizes it could be because of trailing "whitespace" in the input file, or possibly the settings of the MOL2 reader or writer, particularly the Keep Properties, Read Properties and Write Properties settings.

If you mean the structural (angstrom) dimensions of the molecule then, depending on the precise transformation being used it is possible that there are no co-ordinates generated for the added molecules so an addition 2D Coords component may be needed. Equally if you already have a 2D Coords or 3D Coords component then the structure will be being scaled to a "standard" bond length which will give different coordinates from the input file.

I hope one of these suggestions helps explain what you are seeing.

Malcolm
JB
JB 2009-07-14
Hi Werner,

Ah, ok, I know what you mean now. I had the same problem of size actually when I wanted to use openeye (the molecule in the sdf from Pipeline were small, so I used OMEGA instead).

I tried to use the 3D conformation componenent and then write to the mol2, the molecule is bigger and looks to be the same size as the other but I'm not convinced by the conformation and repatibility.

I don't know how you can tweak the reaction component to keep the size. It is above my knowledge.

Cheers,

Jeremy
HP
HP 2009-07-14
Hi,

thanks for the information.

Sorry for my vague explanation, I was referring to the second possibility. So the size of my input molecules changes after the chemical reactions. I think it should not be like this. Could you please tell me how could I perform a chemical reaction in a input set of mol2 molecules so the non-changing atoms stay in the same position and only the new ones added get, of course, new coordinates, and according to the original size of the input molecule?

Attached you can find an example where I generated mol2 files for the NCI drugs that come with PP. I use them as input for the reaction, and the resulting molecules have different size that the original ones.

Regards

Werner
comment imagecomment image
HP
HP 2009-07-15
yes exactly, that i what i mean, that the chemical reaction component does not work well with mol2 molecules
HP
HP 2009-07-16
Hi Malcolm,

I posted an example in a few posts after you.

Regards

WS

quote:
Originally posted by Malcolm Baird (Accelrys):
Werner,

Without specific examples of input and output riles I can only guess at the causes of smaller molecules.

If you mean smaller file-sizes it could be because of trailing "whitespace" in the input file, or possibly the settings of the MOL2 reader or writer, particularly the Keep Properties, Read Properties and Write Properties settings.

If you mean the structural (angstrom) dimensions of the molecule then, depending on the precise transformation being used it is possible that there are no co-ordinates generated for the added molecules so an addition 2D Coords component may be needed. Equally if you already have a 2D Coords or 3D Coords component then the structure will be being scaled to a "standard" bond length which will give different coordinates from the input file.

I hope one of these suggestions helps explain what you are seeing.

Malcolm
AA
AA 2009-07-17
Werner,

As far as I can see the coordinates of the unchanged atoms are unchanged, however the coordinates of any introduced atoms will be arbitary, probably 0,0,0. Since changes are likely to be at the edges of the molecules then this could, potentially reduce the overall size.

You could do a complete 2D coord or 3D coord rebuild but I don't know of any way to limit that to just the new atoms.

Malcolm