> I am using OpenBabels C++ API to minimize ligands and I was wondering if 
> there's a possibility to minimize hydrogens only?

Not directly, but it's a nice idea. You could do this right now by freezing 
every heavy atom:

  OBForceField* pFF = OBForceField::FindForceField("MMFF94");
    if (!pFF->Setup(mol)) {
        // error 
    }
   FOR_ATOMS_OF_MOL(a, mol)
   {
        if (!a->IsHydrogen())
            pFF->SetFixAtom(a->GetIdx()); // Fix the geometry of the heavy atom
   }
  // do what you want

Hope that helps,
-Geoff
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to