Icon

Count an Element in Molecule

This workflow counts the number of atoms in a molecule for an element of choice.


This is done in three steps:

1. The molecular formula is created.

2. The rows are split based on the presence of the element of choice (e.g. O for Oxygen) using regex.

3.The number of atoms for the element of choice are extracted from the molecular formula with the Column Expression node.

Annotations and comments
  • Count an Elements in a Molecule (Number of Atoms) This workflow counts the number of atoms in a molecule for an element of choice. This is done by first getting the molecular formula and using regex to extract the number of atoms.
  • doesn't exist => count = 0
  • RegEx & Col Name
  • Chemical Symbol
  • get molecular formula
  • split based on the presence of selected element

Nodes

Extensions

Links