Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get.atom.index

Get the index of an atom in a molecule. Acces the index of an atom in the context of an IAtomContainer. Indexing starts from 0. If the index is not known, -1 is returned.


Description

Get the index of an atom in a molecule.

Acces the index of an atom in the context of an IAtomContainer. Indexing starts from 0. If the index is not known, -1 is returned.

Usage

get.atom.index(atom, mol)

Arguments

atom

The atom object

mol

The 'IAtomContainer' object containing the atom

Value

An integer representing the atom index.

Author(s)

Rajarshi Guha (rajarshi.guha@gmail.com)

See Also


rcdk

Interface to the 'CDK' Libraries

v3.5.0
LGPL
Authors
Rajarshi Guha [aut, cph], Zachary Charlop-Powers [cre], Emma Schymanski [ctb]
Initial release
2020-03-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.