Giter Club home page Giter Club logo

ddsm's Introduction

Dirichlet Diffusion Score Model

This repo contains the official implementation for the paper Dirichlet diffusion score model for biological sequence generation.

Dirichlet Diffusion Score Model (DDSM) is a continuous-time diffusion framework designed specificaly for modeling discrete data such as biological sequences. We introduce a diffusion process defined in probability simplex space with stationary distribution being the Dirichlet distribution. This makes diffusion in continuous space natural for modeling discrete data. DDSM is the first approach for discrete data modeling with continuous-time stochastic differential equation (SDE) diffusion in probability simplex space.

The Jax version of the code will be published soon.

Installation instructions

Please create a new conda or pip environment specifically for running DDSM.

DDSM requires Python packages PyTorch (>=1.0). You can follow PyTorch installation steps here.

If you plan to run promoter designer model, DDSM requires Selene (>=0.5.0). You can follow Selene installation steps here.

Input data for sudoku and promoter designer experiment as well as model weights with the best performance can be downloaded from Zenodo

Tutorial

An example notebook containing code for applying a toy model to binarized MNIST dataset is here.

Usage.md contains detailed information how to use other scripts provided in the repository.

Benchmarks

The evaluation is based on comparing generated sequences and human genome promoter sequences (ground truth) on the test chromosomes. The metric SP-MSE is the MSE between the predicted promoter activity of generated sequences and human genome sequences (lower is better). Our model trained with DDSM outperforms models trained with other approaches:

Model SP-MSE $\downarrow$
DDSM (time dilation 4x) 0.0334
DDSM (time dilation 2x) 0.0348
DDSM (time dilation 1x) 0.0363
D3PM-uniform / Multinomial Diffusion 0.0375
Bit Diffusion (one-hot encoding) 0.0395
Bit Diffusion (bit-encoding) 0.0414

One can find more benchmarks on various datasets in the paper (see Publications)

License

DDSM is distributed under a BSD-3-Clause license. See the LICENSE file for details.

Credits

DDSM is developed in Jian Zhou's lab at UTSW.

  • Pavel Avdeyev
  • Chenlai Shi
  • Yuhao Tan
  • Kseniia Dudnyk
  • Jian Zhou

Publications

Pavel Avdeyev, Chenlai Shi, Yuhao Tan, Kseniia Dudnyk and Jian Zhou. "Dirichlet diffusion score model for biological sequence generation".

How to get help

The preferred way of asking questions about DDSM is the discussions tab. Before posting an question, consider to look through the existing threads - it is possible that your question has already been answered. For report any bugs, please use the issues tracker.

In case you prefer personal communication, please contact Pavel at Pavel.Avdeev(at)UTSouthwestern.edu or Jian at Jian.Zhou(at)UTSouthwestern.edu.

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.