Repository navigation
Plugin Elemental Analysis
Hiromichi Yokoyama edited this page Oct 23, 2026
·
6 revisions
Elemental Analysis calculates the theoretical elemental composition (mass %) of the current molecule in MoleditPy, with optional solvate, and formats the "Anal. Calcd for" line used when reporting combustion (CHN) analysis in publications.
Note
This plugin gives calculated (theoretical) values only. It does not take measured ("found") values or compare them against the calculated ones.
| Repository | Bundled in moleditpy-plugins (plugins/Elemental_Analysis) |
| Author | HiroYokoyama |
| Supported OS | Windows, macOS, Linux, WSL |
| Supported Python | >=3.9, <3.15 |
| Supported MoleditPy | >=5.0.0, <6.0.0 |
| First-party plugin license | LGPL-3.0-or-later |
| Menu location | Analysis ▸ Elemental Analysis |
| Extra dependencies | None (uses RDKit and PySide6 from the MoleditPy environment) |
See Official Plugins for the full catalogue.
- Formula from the molecule: The molecular formula is taken from the structure in the main window, hydrogens included. With Sync with Main Window on, it follows your edits live; Use 2D molecule reads the 2D drawing so no 3D conversion is needed. Typing a formula yourself turns sync off.
-
Formula input: Parentheses with multipliers are accepted (e.g.
(CH3)2SO), and charge signs are ignored. -
Solvates: Add an amount (0–20, in steps of 0.25) of a common solvent (water, CH2Cl2, CHCl3, MeOH, EtOH, MeCN, Et2O, EtOAc, acetone, THF, hexane, pentane, benzene, toluene, DMSO, DMF, HCl). Solvate notation can also be typed directly, e.g.
C8H10N4O2·0.5H2O. - Results: The formula (Hill order, solvate included), the molecular weight, and the exact (monoisotopic) mass of the compound itself, without the solvate. A table lists each element's count and mass %.
- Atomic weights: Standard atomic weights from RDKit's periodic table; deuterium (D) and tritium (T) are supported.
-
"Anal. Calcd for" line: e.g.
Anal. Calcd for C8H10N4O2·0.5H2O: C, 47.29; H, 5.46; N, 27.57.It lists C, H and N, plus S when the compound contains sulfur. - Copy & paste: Copy copies the "Anal. Calcd for" line; Copy Table copies the whole composition table as tab-separated text, which pastes into Excel or Word as cells. Ctrl+C in the table copies just the selected cells, and the mass values can be selected with the mouse.
- Export: A CSV of the composition, or a PDF report with the parameters, the structure, the composition table and the "Anal. Calcd for" line.
-
Standalone use: The plugin file can also be run on its own without MoleditPy:
python elemental_analysis.py C8H10N4O2.
Formula and solvate calculations include explicit isotopes. Solvate coefficients must be finite and positive. Input errors identify invalid formulas, isotopes or composition counts.
- Official Plugins — the full plugin catalogue
- Plugin: MS Spectrum Simulation Neo — molecular-ion isotope pattern simulation
- Plugin: Compound Info Report — comprehensive molecular property reporting
This page documents Elemental Analysis v2026.10.24, and was last updated on 2026-10-24. See REGISTRY/plugins.json for the current version.