Skip to content

BinDuan/DeepCRISPR

 
 

Repository files navigation

DeepCRISPR

Introduction

DeepCRISPR is a deep learning based prediction model for sgRNA on-target knockout efficacy and genome-wide off-target cleavage profile prediction.

This model is based on a carefully designed hybrid deep neural network for model training and prediction.

Current version focuses on conventional NGG-based sgRNA design for SpCas9 in human species, for it is widely used in related experiments.

Online version of DeepCRISPR is also maintained.

Requirement

  • python == 3.6
  • tensorflow == 1.3.0
  • sonnet == 1.9

Usage

  1. Digitalize sgRNA using the following sgRNA Coding Schema. Epigenetics features can be found in ENCODE.
  2. Load models from model directories (untar them first!) in trained_models.
  3. Perform prediction.

sgRNA Coding Schema

...
import tensorflow as tf
from deepcrispr import DCModel
# Digitalization
x_on_target = ...      # [batch_size, 8, 1, 23]
x_sg_off_target = ...  # [batch_size, 8, 1, 23]
x_ot_off_target = ...  # [batch_size, 8, 1, 23]

# Loading model
sess = tf.InteractiveSession()
on_target_model_dir = '...'
off_target_model_dir = '...'
dcmodel = DCModel(sess, on_target_model_dir, off_target_model_dir)

# Prediction
predicted_on_target = dcmodel.ontar_predict(x_on_target)
predicted_off_target = dcmodel.offtar_predict(x_sg_off_target, x_ot_off_target)

Citation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%