Guides / Identifiers and formats

saltsparent-compoundstandardisationrdkit

Salts, hydrates and parent compounds in drug data

Drug records often describe a salt or hydrate, not the active molecule. How to strip counter-ions and water to the parent, and when stripping is wrong.

Updated 5 min read

Most drug records that come from a label, a formulary or a catalogue describe a salt, a hydrate or both, while the molecule that binds the target is the parent compound inside them. Imatinib mesylate, metformin hydrochloride and atorvastatin calcium trihydrate are what patients take. Imatinib, metformin and atorvastatin are what the pharmacology is about. Strip the counter-ions and water to the parent before computing properties, searching for similar compounds or joining datasets, and keep the salt form on record because the dose, the solubility and the patent often refer to it.

Why drugs are sold as salts

A free base or free acid is often an oil, a hygroscopic solid or a poorly soluble powder. Pairing it with a counter-ion gives a crystalline solid that dissolves faster, stores better and can be weighed accurately. Hydrochlorides dominate for basic drugs, sodium and potassium salts for acidic ones, and mesylates, besylates, tartrates and maleates appear when the simple choices crystallise badly. Water of crystallisation gets built into the lattice in a fixed ratio, which is where hydrates come from. Atorvastatin calcium is a 2:1 salt of the acid with calcium that crystallises with three waters.

None of this changes the molecule that reaches the receptor. Once the tablet dissolves, the counter-ion and the water go their own way.

What changes between salt and parent

The molecular weight changes, and with it every property derived from it. Imatinib has a molecular weight of about 493.6 grams per mole and imatinib mesylate about 589.7. Metformin is about 129.2 and metformin hydrochloride about 165.6. A dose stated as 400 mg of the salt is less than 400 mg of the active molecule, and a molar concentration computed with the wrong mass is wrong by the same ratio.

Computed descriptors go wrong in a less obvious way. If you pass a salt SMILES to a property calculator, the chloride or the mesylate contributes atoms, hydrogen-bond acceptors, a charge and often a formal violation of a rule that the parent compound would pass. Lipinski's rule of five was written for parent compounds, and the guide on molecular weight and heavy-atom count explains why the mass threshold refers to the parent. Fingerprints change too, so a similarity search on the salt and on the parent return different neighbours.

How salts appear in files

In SMILES, disconnected fragments are separated by a dot. Imatinib mesylate is the imatinib string followed by .CS(=O)(=O)O, and metformin hydrochloride is CN(C)C(=N)NC(=N)N.Cl. Nothing in the format marks which fragment is the drug. The stoichiometry is written out by repetition, so a 2:1 salt should list the parent twice, and depositors often write it 1:1 by habit. In SDF files a salt may arrive as one record with several fragments or as separate records, and the data fields may carry the formula of the salt while the structure block holds only the parent.

Charges can be drawn either way. Diclofenac sodium may be [O-] with [Na+], or a neutral acid with a bare sodium atom, and both are common.

Stripping to the parent, with a helper you can name

RDKit's standardisation module does the work. FragmentParent removes recognised salt and solvent fragments, keeps the largest remaining organic fragment and neutralises it where a proton can be added or removed. Wrapping it in a function with an honest name makes the step visible in a notebook.

from rdkit import Chem
from rdkit.Chem import Descriptors
from rdkit.Chem.MolStandardize import rdMolStandardize

def strip_to_parent(smiles: str) -> str:
    """Return the canonical SMILES of the neutral parent compound."""
    mol = Chem.MolFromSmiles(smiles)
    parent = rdMolStandardize.FragmentParent(mol)
    return Chem.MolToSmiles(parent)

salt = "CN(C)C(=N)NC(=N)N.Cl"          # metformin hydrochloride
parent = strip_to_parent(salt)
print(parent)                           # the metformin base, no chloride
print(round(Descriptors.MolWt(Chem.MolFromSmiles(salt)), 1))    # 165.6
print(round(Descriptors.MolWt(Chem.MolFromSmiles(parent)), 1))  # 129.2

Run the helper over a whole table and store the result in a new column named for what it is, such as parent_smiles, next to the original. Then canonicalise and deduplicate on the parent column. The guide on tautomers and protonation states covers the tautomer step that belongs in the same pipeline.

When stripping is the wrong thing to do

The largest-fragment rule assumes the drug is the big organic piece and the counter-ion is a small inorganic one. That assumption fails in a few well-known places.

Check the output of any stripping step against a list of such cases before trusting it on a new dataset.

Keep both identifiers

The parent is the right key for chemistry and the salt is the right key for pharmacy. DrugCentral and similar catalogs record the active ingredient and list the marketed salts and dosage forms beneath it, and the guide on DrugCentral explains that structure. In your own tables, keep a parent identifier and a salt identifier as two columns, and resolve names with care, since a trade name usually points to the salt while an INN points to the parent. The guide on PubChem CIDs versus names covers that resolution.

Key points

Questions people ask

What is the parent compound of a drug salt?
The parent is the active molecule once the counter-ion and any water of crystallisation are removed. For imatinib mesylate the parent is imatinib, and for metformin hydrochloride it is metformin. Pharmacology, descriptors and similarity searches refer to the parent.
Why does the molecular weight of a drug differ between sources?
One source reports the parent compound and another reports the marketed salt or hydrate. Imatinib is about 493.6 grams per mole and imatinib mesylate about 589.7, and the difference is the methanesulfonic acid. Check which form a record describes before comparing masses.
How do I remove salts from a SMILES with RDKit?
Use rdMolStandardize.FragmentParent, which removes recognised salt and solvent fragments, keeps the largest organic fragment and neutralises it. Wrap it in a helper such as strip_to_parent and store the result in its own column next to the original.
When should I not strip a salt to its largest fragment?
When the metal is the drug, as in lithium carbonate or cisplatin, when both fragments are active ingredients, or when the salt form itself is the subject of the study, as in formulation and patent datasets. Quaternary ammonium drugs keep a permanent charge after stripping, which is correct.

Further reading

In practice: The ADMET dashboard resolves a name, a PubChem CID or a SMILES to one compound and shows the identifiers side by side, so a mismatch is visible before anything is computed.

← All guides