Hi NAJI,
> Thank very much for your advice : sh convert.sh yourOriginalFile.smi
> phCorrectedFile.smi. Now, I can transform my original file to
> pHcorrectedfile but in the transformations I don't manage to convert C
> (=NH)(-NH2)(-NH-) to C(=NH2+)(-NH2)(-NH-) ( a guanidium group found
> for example in the arginine )
As you can see at the bottom of this page
http://www-ra.informatik.uni-tuebingen.de/software/joelib/tutorial/functionalities/mol-smarts.html
1. you should only apply one change at time.
2. I can't see any vector binding in your pattern, it should be
something like this, but please remember that not all imaginable
rules are implementetd in the basic transformer class, so try and
check, e.g.:
[N:1](-NH2)(-NH) >> [N+:1](-NH2)(-NH)
> I have another question : Have you got some ideas how I could make in
> order to count the total number of hydrogen of a molecule from a smiles
> string.
Explicit or implicite hydrogens ?
Try:
numHAtoms=atom.getImplicitValence() + atom.getValence()
Kind regards, Joerg
--
Dipl. Chem. Joerg K. Wegner
Center of Bioinformatics Tuebingen (ZBIT)
Department of Computer Architecture
Univ. Tuebingen, Sand 1, D-72076 Tuebingen, Germany
Phone: (+49/0) 7071 29 78970
Fax: (+49/0) 7071 29 5091
E-Mail: mailto:we...@in...
WWW: http://www-ra.informatik.uni-tuebingen.de
--
Never mistake motion for action.
(E. Hemingway)
Never mistake action for meaningful action.
(Hugo Kubinyi,2004)
|