dear all,
i made an interesting experiment this morning:
build a mol file containing only a single Carbon atom, pass it through an sd reader, calculate MW & Formula: what you will get is :
| Molecule | MW | Molecular_Formula |
| 16.042 | CH4 |
i was surprised by the addition of Hydrogens, but assumed that somehow all the valences were being filled (i'd prefere that to be an option btw)
i then added an explicit Remove_Hydrogens component before the calculators: the result was still the same, with MW = 16.042 and Formula = CH4
my questions:
- does it feel right to you?
- do you know of other cases where this kind of behaviour is observed?
- how would you get rid of the hydrogens in order to perform the calculations on the entities that are being passed through the workflow, rather than on the objects that are perceived as molecules (and therefore on which apparently some manipulations are performed)
thanks in advance!
SCF

That's the expected behavior. The idea is to get exactly the same behavior for molecules with and without explicit Hydrogens in all the Chemistry components. As Malcomn described in his reply, there are ways you can distinguish between implicit and explicit Hydrogens if you really need to.
Cheers,
Moises
This is exactly the behaviour I would expect. Most 2D molfiles only contain heavy atoms, or possibly hydrogens that are required to define stereochemistry.
Pipeline Pilot interprets these as valid molecules and calculates molecular properties based on the presence of implicit hydrogens.
The total number of hydrogens and the number of explicit hydrogens are both calculable properties so you could get the number of implicit hydrogens by substracting these eg
num_implicithydrogens := num_hydrogens - num_explicithydrogens ;
You could then calculate a molecular weight for the explicit atoms by either substracting this from the real molecular weight or by looping over the atoms using the molecular toolkt ie
num_implicithydrogens := num_hydrogens - num_explicithydrogens ;
expl_mw := molecular_weight - 1.008 * num_implicithydrogens ;
OR
#nat := molnumatoms() ;
expl_mw := 0.0 ;
for #iat in 1 .. #nat loop
expl_mw := expl_mw + AtomWeight(#iat) ;
End Loop ;
However, I can't for the moment think of a situation where the properties of these substructures would be more useful than those of the molecules.
Malcolm