Git Product home page Git Product logo

zf_binding's Introduction

Zinc fingers binding and position weight matrices prediction

A slightly modified version of the code from https://github.com/OrensteinLab/DeepZF/, with a few additional files.

Prerequisites

The code requires protein-bert, and works on python 3.6.8 with keras 2.6.0 and tensorflow 2.6.2

Binding predictions

Assemble the pretrained model model.p for BindZFpredictor by concatenating its splits in the folder BindZF_predictor/code/

cat x?? > model.p

Call BindZFpredictor on a csv file containing (a description of) the zinc fingers (and their context) and get the predictions in a tsv file with the following commands (the first one for the human ZFs, the second one for the mouse ZFs) :

python3  BindZF_predictor/code/main_bindzfpredictor_predict.py -in Zkscan3_exps/Zkscan3_ZFs_df_human_for_binding_predictions.csv -out Zkscan3_exps/Zkscan3_binding_preds_human.tsv -m BindZF_predictor/code/model.p -e BindZF_predictor/code/encoder.p -r 1
python3  BindZF_predictor/code/main_bindzfpredictor_predict.py -in Zkscan3_exps/Zkscan3_ZFs_df_mouse_for_binding_predictions.csv -out Zkscan3_exps/Zkscan3_binding_preds_mouse.tsv -m BindZF_predictor/code/model.p -e BindZF_predictor/code/encoder.p -r 1

The file turn_sequence_into_csv_for_binding_pred.py can help you create csv files in the correct format.

Position weight matrix predictions

Predict the PWM from csv files containing descriptions of the zinc fingers in the right format (first line for the human ZFs, second one for the mouse ZFs):

python3.6 PWMpredictor/code/main_PWMprecictor.py -in Zkscan3_exps/Zkscan3_ZFs_df_human_for_PWM.csv -out Zkscan3_exps/predictions_Zkscan3_human_156_model.txt -m Zkscan3_exps/transfer_model_final.h5
python3.6 PWMpredictor/code/main_PWMprecictor.py -in Zkscan3_exps/Zkscan3_ZFs_df_mouse_for_PWM.csv -out Zkscan3_exps/predictions_Zkscan3_mouse_156_model.txt -m Zkscan3_exps/transfer_model_final.h5

The file prepare_sequence_for_PWM_prediction.py can help you create the csv files in the correct format.

zf_binding's People

Contributors

charlesarnal avatar

Stargazers

 avatar  avatar

Watchers

 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.