MolBasis
unitsbohrangstromdescriptor-filesreproducibility5 min read

The bohr versus ångström units trap in descriptor files

A field named aa2 held bohr² values. One bohr² is 0.2800 Ų, so an area read as Ų is 3.57 times too large. How to detect it and what it changes.

Updated November 28, 2026

In the v0.91.1 mfsig files the kernels were fitted on, the field cavity_area_aa2 holds values in bohr², although its name says Ų. One bohr² is 0.2800 Ų, so an area read as Ų is 3.571 times too large. The screening charge density σ is in e/bohr² in the same files, so sigma_variance is off by 12.75 if read in ångström units. This guide gives the factors, lists which descriptors move, explains why the error was invisible inside one dataset and shows how to detect it.

The factors, derived once

Quantum-chemistry codes work in atomic units. The unit of length is the bohr, and one bohr is 0.529177 Å. Squaring gives the area factor. 0.529177 × 0.529177 = 0.28003, so one bohr² is 0.2800 Ų. The inverse is 1 / 0.2800 = 3.571.

A charge density is a charge divided by an area. Charge in units of e is the same in both systems, so σ in e/Ų = σ in e/bohr² × 3.571. A variance is the square of a charge density, so it scales by 3.571² = 12.75. Skewness and kurtosis are ratios of moments with matching powers, so the factor cancels and they do not change.

BOHR_TO_AA = 0.529177
AA2_PER_BOHR2 = BOHR_TO_AA**2          # 0.2800
SIGMA_FACTOR = 1.0 / AA2_PER_BOHR2     # 3.571
VAR_FACTOR = SIGMA_FACTOR**2           # 12.75

area_aa2 = area_bohr2 * AA2_PER_BOHR2
sigma_aa = sigma_bohr * SIGMA_FACTOR
var_aa = var_bohr * VAR_FACTOR

Which of the nine descriptors move

  • cavity_area_aa2 moves by 0.2800. A stored value of 1000 bohr² is 280.0 Ų.
  • sigma_variance moves by 12.75. A stored value of 5 × 10⁻⁵ (e/bohr²)² is 6.4 × 10⁻⁴ (e/Ų)².
  • sigma_skewness and sigma_kurtosis do not move.
  • n_segments is a count and does not move.
  • dipole_debye is in debye in both files and does not move.
  • g_polar_kcal is in kcal/mol and does not move.
  • hb_donor_mass and hb_acceptor_mass are surface quantities. If they are stored as areas they share the area factor. The docs page states each field's unit, and a reader should check it rather than assume.

The mfsig guide on units and unit errors in descriptor files covers the same ground from the file producer's side, including what the current recipe v1.0.0 writes. That recipe writes ångström units.

Why the error was invisible inside one dataset

A kernel term is a descriptor raised to an exponent p, then z-scored. Suppose every value of the descriptor f is multiplied by a constant c. The term becomes c^p × f^p. z-scoring subtracts the mean and divides by the standard deviation, and both scale by c^p. The standardised column is identical. The fitted coefficient, the Pearson r, the MAE lift and the calibration slope are all identical. A dataset that is consistently in bohr² gives the same kernel as one consistently in Ų.

This is why the kernel figures themselves did not change when the error was found. What changed is the description of what the descriptor is, and the ability to apply the fit elsewhere. The findings page records the correction as a correction of labels and units, not of figures.

Where the error does real damage

Three situations break.

  1. Applying a v0.91.1 fit to a v1.0.0 file. The z-score parameters from the fit expect bohr² means and standard deviations. An ångström value is 3.571 times smaller than expected, so after the power and the z-score it lands far outside the training range, and the prediction is wrong by an amount that depends on the exponent.
  2. Mixing files. A training set with half the molecules in bohr² and half in Ų has a size descriptor that is bimodal for a reason unrelated to chemistry. A search will find a spurious structure in it.
  3. Comparing against literature. A cavity area of 1000 reported as Ų for a small molecule is wrong by a factor that a careful reviewer will notice, and that a reader of a table will not.

The guide on applying a kernel to a new molecule shows where the unit check belongs in that workflow, and the guide on versioning models and publishing corrections explains why a recipe version should travel with every figure.

A detection recipe that needs no reference data

The most reliable test uses an independent estimate of the same quantity. RDKit computes a Labute approximate surface area in Ų from the 2D structure. It is not the same surface as a C-PCM cavity, but it is in the right range. Compute it for ten molecules, divide the file's cavity_area_aa2 by it and look at the ratio. Near 1, the file is in Ų. Near 3.6, the file is in bohr². In between, something else is wrong.

A cruder bound also works. A single carbon sphere at 1.2 times the Bondi radius has a radius of 2.04 Å and an area of 4π × 2.04² = 52.3 Ų. No molecule can have a cavity smaller than one of its atoms. A file in which methane shows an area near 190 is in bohr², because 52.3 / 0.2800 = 187.

For σ, check the variance of a hydrocarbon. It should be small in either unit, but a value that is 12.75 times what another file gives for the same molecule tells the story on its own.

What this means for the datasets guide

Property data has its own unit traps. Log units, kcal against kJ and natural against decimal logarithms appear in the guide on units and conversions in property data. The descriptor-side trap described here has the same cure. Carry the unit in the field name, carry the recipe version in the file and test one known molecule before fitting anything.

Key points

  • One bohr² is 0.2800 Ų. Areas scale by 0.2800, σ by 3.571, σ variance by 12.75. Skewness and kurtosis do not change.
  • In v0.91.1 files cavity_area_aa2 is in bohr² despite the name. The current mfsig recipe writes ångström.
  • z-scoring hides a consistent unit error inside one dataset, so the kernel figures did not change.
  • Applying a fit across units or mixing files breaks predictions silently.
  • Detect the trap with an independent area estimate or with a single-sphere lower bound.

Questions people ask

What is the conversion between bohr² and Ų?
One bohr is 0.529177 Å, so one bohr² is 0.529177² = 0.2800 Ų. To convert an area from bohr² to Ų, multiply by 0.2800 or divide by 3.571. To convert a charge density from e/bohr² to e/Ų, multiply by 3.571.
Which mfsig descriptors are affected by the bohr units error?
In the v0.91.1 files, cavity_area_aa2 is in bohr² despite its name, and σ is in e/bohr², so sigma_variance is in (e/bohr²)². Skewness, kurtosis, n_segments, dipole_debye and g_polar_kcal are unaffected. Any other field that is an area shares the problem.
Does a units error change a fitted kernel?
Not within one dataset. Every term is z-scored, and z-scoring removes a constant factor, including a factor raised to the term's exponent. The error breaks the application of a fit to a file in a different unit, and it breaks any dataset that mixes the two.
How do I detect bohr² values in a file labelled Ų?
Compute an independent area estimate for the same molecule, such as RDKit's Labute approximate surface area, and take the ratio. A ratio near 1 means Ų. A ratio near 3.6 means bohr². A single sphere of radius 2.04 Å has an area of 52.3 Ų, which no molecule should fall far below.

Further reading

In practice: The docs page lists the nine descriptors as they are stored, including the bohr² areas under an Ų name and the donor descriptor that the production code returns as zero. The files themselves come from mfsig.

See the kernels themselves

Every kernel is shown with its held-out result, the number of molecules it rests on and what it cannot be trusted for.