mfsig.com
converterlegacy-filescosmomigration5 min read

Converting a legacy COSMO file into a .mfsig file

The free converter wraps a legacy vendor σ-profile in the .mfsig format so your tools read one schema. It recomputes nothing, and the recipe stays the old one.

Updated November 28, 2026

The free converter takes a legacy vendor σ-profile or COSMO output and writes it into the .mfsig schema, so that your scripts, your LIMS and your plots read one format. It does not recompute anything. The functional, basis set, cavity and dielectric constant remain whatever the original program used, and the method block of the converted file is where you find out what that was. This guide explains what a legacy file holds, what conversion preserves, and the two traps, raw versus averaged σ and units.

What a legacy COSMO file contains

A COSMO calculation in the tradition of Klamt and Schüürmann produces, for a molecule in a conductor-like continuum, a cavity made of segments. For each segment the program writes its position, its area and its screening charge, and from these the σ of each segment follows as charge over area. Programs differ in how they write this. Some write a segment table with coordinates in bohr and areas in bohr squared, some in ångström, some write charge and others write charge density.

A second kind of legacy file holds no segments at all, only the finished sigma profile as two columns, σ and the area in each bin, typically on the grid from -0.03 to +0.03 e/Ų. This is usually an averaged profile, smoothed over neighbouring segments according to the author's parameterisation.

What the converter does, and what it leaves alone

The converter reads what the source file provides and writes it into the fields of the .mfsig schema, producing a file that opens with the same Python as any other. It computes nothing new about the molecule. There is no DFT run, no new geometry and no new cavity. The recipe described in the method block is the one the source used, and if the source does not say, the method block cannot invent it. Open the file and read that block before you do anything else. Check the exact key names on the anatomy page.

The point of converting is uniformity of tooling, one validator, one plotting script and one database table, not equivalence of results. A converted file and an MFsig-computed file for the same molecule describe different calculations and will not agree. If your question needs the current reference recipe, the try page is the way to get it, and free converter or reference-grade run helps decide which you need.

Raw segments versus an averaged profile, know which you have

This is the trap that matters most. MFsig-computed files carry the raw screening charge density per segment, in e/Ų, not averaged. A legacy segment table is also raw, and a histogram built from it is comparable in kind to one built from an MFsig file, recipe differences aside. A legacy two-column profile is usually averaged. Its peaks are lower and closer to zero than a raw histogram of the same molecule would show, because averaging pulls extreme segments towards their neighbours.

Mixing the two kinds in one plot or one distance calculation measures the averaging step rather than the chemistry. Label every converted file with its kind, raw or averaged, in your own metadata, and compare only like with like. The σ-averaging guide explains the procedure and why COSMO-RS applies it. In the other direction, remember that raw σ values from any source are not what COSMO-RS or COSMO-SAC parameterisations expect, and must not be passed to them as if they were averaged.

Units and signs, the two smaller traps

Units first. A segment table in atomic units gives areas in bohr squared and charge densities in e per bohr squared. One bohr is about 0.529 Å, so one bohr squared is about 0.280 Ų, and a charge density in e per bohr squared is numerically about 3.57 times larger than the same density in e/Ų. The units guide lists the conversions. After conversion, sum the segment areas and compare with the surface area the original program reported, and check that the σ values of a neutral molecule fall mostly within ±0.03 e/Ų.

Sign second. The COSMO convention puts donor hydrogens at negative σ and acceptor atoms at positive σ, because σ is the screening charge, which is opposite in sign to the molecular charge underneath. Some programs write the molecular surface charge instead. Water is the quickest test. Its oxygen side must appear at positive σ. If it appears at negative σ, the source used the opposite sign and every profile from that source must be flipped. The sign convention guide has the details.

A migration plan for a folder of old files

  1. Sort the folder by source program and by kind, segment table or finished profile.
  2. Convert one file of each kind and read its method block and its segment or profile block by eye.
  3. Run the unit and sign checks above on that file, with water or methanol if you have them.
  4. Convert the rest, and record for each file the source program, the kind and the recipe as you understand it.
  5. Store the converted files with the recipe clearly marked as legacy, in the same table as any new files.
  6. Decide, molecule by molecule, which ones need recomputing with the current recipe.
import json, glob
import numpy as np

for path in sorted(glob.glob("converted/*.mfsig")):
    with open(path, encoding="utf-8") as fh:
        doc = json.load(fh)
    seg = doc[SEGMENT_KEY]                        # names: see /anatomy
    sigma = np.array([s[SIGMA_KEY] for s in seg])
    area = np.array([s[AREA_KEY] for s in seg])
    inside = area[np.abs(sigma) <= 0.03].sum() / area.sum()
    print(path, doc[METHOD_KEY], f"area {area.sum():.1f}",
          f"within ±0.03: {inside:.3f}")

A file whose fraction within ±0.03 e/Ų is far below one, for a neutral molecule, has a unit problem. A file whose summed area is far from the source program's number has a different cavity or a unit problem. Both are caught before the file enters a dataset.

Key points

  • The converter writes a legacy σ-profile or COSMO output into the .mfsig schema. It recomputes nothing, and the recipe stays the source's.
  • Read the method block of each converted file to learn what the source recorded about itself.
  • Know whether a legacy file is raw segments or an averaged profile, and never mix the two kinds in one comparison.
  • Check units, bohr versus ångström, by summing areas, and check the sign with water's oxygen side at positive σ.
  • Keep converted files marked as legacy and recompute with the current recipe where the question requires it.

Questions people ask

Does the converter recompute the σ-profile with DFT?
No. It reads the segments or the profile in your legacy file and writes them into the .mfsig schema. The chemistry, the functional, the basis set and the cavity are whatever the original program used. A reference-grade run with the MFsig recipe is a separate order.
Can I mix converted files and MFsig-computed files in one dataset?
Only with a recipe flag. The method block of each file says how it was produced. Histograms from different recipes shift against each other, and a raw per-segment profile is not comparable with an averaged one. Keep them apart or model the difference.
What should I check in a converted file before trusting it?
That the surface area matches what the original program reported, that the σ values are in e/Ų and not e/nm² or atomic units, that the sign convention is the one you expect, and that the method block describes the source. Open the file and look before you plot.

Further reading

In practice: A .mfsig file is JSON and reads with the standard library. Ordering is done on the site or through the API described in the docs, and AI agents can read the published samples through the MCP server at /mcp.

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.