So, when Nina asked me about exposing the QSAR model building functionality of OpenTox in Bioclipse, I had a look at it. Because I had not hacked on the Bioclipse-OpenTox code much recently, I set out to add a few more unit tests. These are automatically run by the Jenkins installation. The number of unit tests doubled to some 52 tests, but the new tests also uncovered two regression. One problem was the listCompounds() was not working anymore, and the other was addMolecules(List<IMolecule>) was incorrectly names in the implementation, causing one to not be able to call that method. Both are fixed now.

However, at the end of last night, I was feeling comfortable with the code again, and hacked up a function to be able to create QSAR models with OpenTox:

When I tested this on Nina's AMBIT installation (doi:10.1186/1758-2946-3-18) this, it nicely created this model:

The opentox.createModel() method takes four parameters. The first one is the regression method to use, the second the data set to use as training data. The third parameters refer to the features to be used as independent variables (x data), while the last parameter is the feature with the dependent variable (y data).

No comments:

Post a Comment

Search This Blog

This blog deals with chemblaics in the broader sense. Chemblaics (pronounced chem-bla-ics) is the science that uses computers to solve problems in chemistry, biochemistry and related fields. The big difference between chemblaics and areas such as chem(o)?informatics, chemometrics, computational chemistry, etc, is that chemblaics only uses open source software, open data, and open standards, making experimental results reproducible and validatable. And this is a big difference!

Cookies

In the EU there is a directive upcoming requiring websites to warn people about HTTP cookies. This website uses the Blogger.com platform, Google Adsense (not that is it actually paying anything significantly), and a few scripts to count how often a blog post was tweeted, using Topsy and LinkedIn. These services undoubtedly make use of cookies, which you can disallow in your browser.