GithubHelp home page GithubHelp logo

aspirincode / similaritybenchmark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nextmovesoftware/similaritybenchmark

0.0 2.0 0.0 38.77 MB

Structural similarity benchmark

License: BSD 2-Clause "Simplified" License

Python 100.00%

similaritybenchmark's Introduction

The dataset

Unzip the data

The data has been compressed with 7zip. It can be unzipped with p7zip on Linux, or 7zip on Windows.

Description

The benchmark data will be placed in the dataset subdirectories of the SingleAssay and MultiAssay directories. There are 1000 files corresponding to the 1000 repetitions. Each file contains several thousand lines of CHEMBL IDs, where the first ID is the reference molecule, and the other four are molecules are increasing distance (decreasing similarity) to the reference.

How to reproduce the results

Requirements

  1. Python 2.7
  2. NumPy
  3. SciPy
  4. RDKit (2015.09.2)

Optional but needed to generate the graph depictions

  1. dot (provided by GraphViz)

Get ChEMBL

  1. Download ChEMBL20 as an SDF file
  2. Convert it to a SMILES file where the title field is the numeric portion of the CHEMBLID. The details are left to the reader. Once done, the file should look something like this:
    Cc1cc(cn1C)c2csc(n2)N=C(N)N	153534
    COc1cc(ccc1OC(=O)C23CC4CC(C2)CC(C4)C3)CC=C	265174
    Cc1cccc(c1)N2CCN(CC2)CCCON3C(=O)c4ccccc4C3=O	264472
    c1ccc2c(c1)n(c(=N)s2)CCN3CCC(CC3)c4ccc(cc4)F	405225
  1. Name this file chembl_20.smi and place it in the benchlib directory.

Run and analyse the benchmark

  1. python 1-Similarities.py
  2. python 2-Correlations.py
  3. python 3-AnalyseResults.py
  4. dot SingleAssay\graph.gv -T png > singleassay.png
  5. dot MultiAssay\graph.gv -T png > multiassay.png

Notes

  1. Running the Python scripts on one CPU may take some time. To speed things up, you may wish to parallelise the main loops. This is left to the reader.

similaritybenchmark's People

Contributors

baoilleach avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.