Replace Atoms

This action replaces chemical element with other chemical element.

  • Allow valence error on replace: Atom exchange occurs even if it causes valence error on the relevant atom.

Example :

Action

Input

Output

Replace Atom N to O
(replaceatoms:queryatom=N:replaceatom=O)

images/download/attachments/45332705/replaceatoms_in.png
Replace atoms input

images/download/attachments/45332705/replaceatoms_out.png
Replace atoms output

Replace Atom N to O
(replaceatoms:queryatom=N:replaceatom=O:allowValenceError=true)

images/download/attachments/45332705/replaceatoms_in.png
Replace atoms input

images/download/attachments/45332705/replaceatoms2_out.png
Replace atoms output 2

Note : Action replaces atoms inside abbreviated groups; the affected group will be ungrouped.