How to validate a σ-profile file before you trust it
Seven one-minute checks that catch most bad σ-profile files, from the content hash and convergence flag to units, charge balance and raw versus averaged σ.
Updated November 28, 2026
A σ-profile file deserves seven checks before it enters a model, a report or a filing. Recompute the hash. Read the convergence flag. Confirm the identity is the molecule you meant. Confirm the method matches a recipe you accept. Check that units and magnitudes are sane. Check that the screening charges balance the molecular charge. And decide whether the σ you hold is raw or averaged, because the two are not interchangeable. Scripted, the list takes about a minute and catches most of the ways a sigma profile file goes wrong.
Check one, the content hash matches
Recompute the SHA-256 over the content the file format says it covers and compare it with the digest stored in the file. Then compare both with the digest you recorded when you received the file. The first comparison catches corruption. The second catches substitution. A .mfsig file carries a content SHA-256, and the anatomy page documents its fields. If the digests disagree, stop. Content hashing for scientific files covers the traps, text mode and reformatting among them.
Check two, the convergence flag
A σ-profile from a geometry that stopped at an iteration limit is a different object from one at a minimum. Read the geometry convergence flag and treat false as a reason to re-run rather than a footnote. MFsig writes no file at all when the SCF does not converge, so a file's existence tells you the density converged, but the geometry flag is a separate statement and must be read. Files converted from other sources through the converter carry whatever their origin recorded, so read the flag there too.
Check three, the identity is the molecule you meant
Compare the SMILES as written in the file with the one you sent, character for character. Then read the three decisions the pipeline made for you. How many fragments were dropped, how many stereocentres were unassigned, and whether protonation was taken as written. A file for a hydrochloride salt that shows one fragment dropped describes the free base or the cation, not the salt. A file with one unassigned stereocentre describes one arbitrary isomer. Neither is an error, but both must be known before comparing with a measurement. Salts and multi-fragment SMILES explains the fragment rule in detail.
Check four, the method matches a recipe you accept
Read the method block and the recipe version. Confirm the functional, basis set, auxiliary basis, effective core potential policy, dielectric constant, radii, scaling factor, point count and discretisation are the ones you expect. If you are combining files from several sources or several years, confirm they share one recipe version. MFsig's production recipe is v1.0.0, and the frozen atlas recipe v0.91.1 used UFF geometries and no effective core potential, so profiles from the two must not sit in one dataset without that being said. The recipes page holds both definitions.
Check five, units and magnitudes are sane
Read the declared units, then test the numbers against them. Total area should be tens to a few hundred Ų for a small organic molecule. The σ values of a neutral molecule should span a few hundredths of an e/Ų. If every area is small and every σ is small by the same factor of about 3.57, the file is in bohr under ångström labels. The bohr and ångström trap tells the full story of that error and how a self-describing schema prevents it.
Check six, the screening charges balance the molecular charge
A conductor-like surface around a molecule of charge Q carries a total screening charge close to minus Q scaled by the dielectric factor of the model. For C-PCM in most implementations that factor is (ε − 1)/ε, which at ε = 80 is 0.9875. Summing σ times area over all segments should therefore give close to zero for a neutral molecule and close to minus 0.9875 times Q for an ion. Small deviations arise from electron density that leaks outside the cavity. A large deviation means the segments are incomplete, the σ and area columns disagree in units, or the file has been truncated.
f_eps = (80 - 1) / 80 # C-PCM factor at eps = 80
total_charge = sum(s * a for s, a in zip(sigma, area))
expected = -f_eps * molecular_charge
print(total_charge, expected, abs(total_charge - expected))The tolerance you accept is a judgement, but a mismatch of a tenth of an electron for a neutral molecule is not noise.
Check seven, raw or averaged
The σ written in a .mfsig file is the raw screening charge per segment divided by segment area. It has not been averaged over neighbouring segments. COSMO-RS and COSMO-SAC parameterisations were fitted to averaged σ-profiles and expect them as input. Feeding raw σ into either method as if it were averaged gives wrong interaction energies. This is a check on your intent, not on the file. Decide which σ your next step needs. If it needs averaged σ, perform and record the averaging step. σ-averaging in COSMO-RS explains what the step does and why the parameterisations depend on it.
A worked example, validating a file for acetic acid
A data scientist receives a .mfsig file for acetic acid, SMILES CC(=O)O, before adding it to a training set. The hash recomputes and matches the value in her ingestion log. The geometry flag reads converged. The SMILES matches, zero fragments dropped, zero stereocentres unassigned, protonation as written, which means the neutral acid and not acetate. The method block names recipe v1.0.0, like the rest of her set. The declared units are Ų and e/Ų, the total area is in the expected range for eight atoms, and the σ values span both signs out to a few hundredths. The charge sum is close to zero. She notes in the dataset schema that the σ column is raw, so that nobody downstream feeds it to a COSMO-SAC model without averaging. The file goes in.
Key points
- Recompute the content hash first, and stop if it does not match the file and your own record.
- Read the geometry convergence flag, the SMILES as written, fragments dropped and stereocentres unassigned.
- Confirm the recipe version, and never mix v0.91.1 and v1.0.0 profiles in one dataset without saying so.
- Test units by area and σ magnitude, and test consistency by summing σ times area against the scaled molecular charge.
- Decide whether your next step needs raw or averaged σ, because a .mfsig file holds raw σ.
Questions people ask
- How do I check that a σ-profile file has not been altered?
- Recompute the content hash and compare it with the value stored in the file and with the value recorded where you first received it. A .mfsig file carries a content SHA-256. If the digests match, the identity, method block, versions and numbers are the ones that were written. If not, do not use the file.
- What is the charge balance check for a σ-profile?
- The screening charges on a continuum cavity sum to approximately minus the molecular charge scaled by the dielectric factor of the model, which for C-PCM in most implementations is (ε − 1)/ε. Summing σ times area over all segments should give close to zero for a neutral molecule and close to minus 0.9875 times the charge for an ion at ε = 80. A large deviation points to a broken file or a unit mismatch between σ and area.
- Can I feed a validated .mfsig file directly into COSMO-RS or COSMO-SAC?
- No. The σ in a .mfsig file is the raw screening charge density per segment, in e/Ų, and it is not averaged. COSMO-RS and COSMO-SAC parameterisations expect the averaged σ-profile. Validating the file confirms it is intact and consistent, not that it is the right input for those methods without an averaging step.
- What should I do if the convergence flag is false?
- Treat the file as not trustworthy for quantitative use. MFsig writes no file when the SCF fails, so a false flag refers to the geometry step, and a geometry that did not converge can distort the σ-profile. Re-run with a different conformer strategy or check the input before relying on the result.
Further reading
In practice: Each .mfsig file records the method, the package versions read at run time, the geometry convergence flag and a content SHA-256, and no file is written when the SCF does not converge. The lineage and audit pages describe the record in full.
Generate a σ-profile from your SMILES
Free converter for a profile you already have, a reference-grade DFT run with its provenance record when it has to be defensible.