chemical terms hCount does not equal atomCount("1"

User 8688ffe688

18-05-2010 18:59:17

How come hCount and atomCount("1") are not equal in chemical terms?


 


Below are environment settings:


Oracle environment:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production

JChem Server environment:
Java VM vendor: Sun Microsystems Inc.
Java version: 1.6.0_12
Java VM version: 11.2-b01
JChem version: 5.2.5.1
JChem Index version: 5020400
JDBC driver version: 11.1.0.7.0-Production

ChemAxon a3d59b832c

18-05-2010 21:00:57

Hi,


I moved this question over to the Chemical Terms part of the forum. My colleagues will answer soon.


BR,


Szabolcs

ChemAxon e08c317633

21-05-2010 13:24:08

hCount returns the hydrogen count of an atom.


Example:


$ evaluate -e "hCount(0)" "CCO"
3

$ evaluate -e "hCount(1)" "CCO"
2

$ evaluate -e "hCount(2)" "CCO"
1

$ evaluate -e "hCount()" "CCO"
3

Documentation: http://www.chemaxon.com/marvin/help/chemicalterms/EvaluatorFunctions.html#hcount


The description does not mention that this function applies to an atom; we will fix it (anyway, it is mentioned in the example).


hCount() is equivalent with hCount(0).


 


atomCount("1") returns the number of hydrogens in the input molecule.


$ evaluate -e "atomCount('1')" "CCO"
6

Zsolt