Hi Gonzalo, I shamelessly only have an example using PBF. Forgive the slightly dirty C++ coding, but you can get the idea of descriptor calculation.
using namespace std; using namespace RDKit; int main(int argc, char *argv[]){ string fileName = argv[1]; SDMolSupplier reader(fileName,false, false); fileName = fileName.substr(0,fileName.size()-4); fileName += "_Scored_PBF.sdf"; SDWriter *writer = new SDWriter(fileName); while(!reader.atEnd()){ ROMol *m=reader.next(); //MolOps::removeHs(*m); if(!m) continue; double dpbf=PBFRD(*m); m->setProp("PBF_Score", dpbf); writer->write(*m); delete m; } writer->flush(); writer->close(); return 0; } I hope that is helpful. Best, Nick Nicholas C. Firth | PhD Student | Cancer Therapeutics The Institute of Cancer Research | 15 Cotswold Road | Belmont | Sutton | Surrey | SM2 5NG T 020 8722 4033 | E nicholas.fi...@icr.ac.uk<mailto:nicholas.fi...@icr.ac.uk> | W www.icr.ac.uk<http://www.icr.ac.uk/> | Twitter @ICRnews<https://twitter.com/ICRnews> Facebook www.facebook.com/theinstituteofcancerresearch<http://www.facebook.com/theinstituteofcancerresearch> Making the discoveries that defeat cancer [cid:image001.gif@01CE053D.51D3C4E0] On 27 Aug 2013, at 15:05, Gonzalo Colmenarejo-Sanchez <gonzalo.2.colmenar...@gsk.com<mailto:gonzalo.2.colmenar...@gsk.com>> wrote: Hi, I’m trying to calculate molecular descriptors in C++ with the RDKit. Does anyone have a code example that could help in this case? Thanks a lot, Gonzalo Colmenarejo ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net<mailto:Rdkit-discuss@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/rdkit-discuss The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
<<inline: image001.gif>>
------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss