Skip to content

Commit

Permalink
update model train, valid, and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Muyiyuan committed Apr 9, 2023
1 parent 767082f commit 21f97f6
Show file tree
Hide file tree
Showing 16 changed files with 114,832 additions and 113,334 deletions.
641 changes: 641 additions & 0 deletions ABEdeepoff.ipynb

Large diffs are not rendered by default.

641 changes: 641 additions & 0 deletions CBEdeepoff.ipynb

Large diffs are not rendered by default.

55,774 changes: 0 additions & 55,774 deletions Data/ABEdeepoff.txt

This file was deleted.

56,804 changes: 0 additions & 56,804 deletions Data/CBEdeepoff.txt

This file was deleted.

21 changes: 0 additions & 21 deletions Example/CRISPRitz_Output_Example.txt

This file was deleted.

15 changes: 0 additions & 15 deletions Example/Cas-Offinder_Output_Example.txt

This file was deleted.

Binary file removed Models/ABEdeepoff.pt
Binary file not shown.
Binary file removed Models/CBEdeepoff.pt
Binary file not shown.
65 changes: 30 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,38 @@
### System requirements
The code were tesed on Linux and Mac OS systems.

The required software/packages are:
* python>=3.6.5
* numpy=1.19.1
* Pytorch=1.11.0
* scikit-learn
* biopython=1.79
* pandas
* pkbar
The code were tesed on Linux and Mac OS systems. The required software/packages are:

- python==3.10.8
- matplotlib==3.7.0
- logging==0.5.1.2
- pkbar==0.5
- torch==1.13.1
- numpy==1.23.5
- pandas==1.4.3
- Bio==1.78
- sklearn==1.1.1

### Help
- training.py Off-target models training for ABEmax and AncBE4max
It is worth noting that when the computing environment(e.g, the version of tensorflow or biopython) changes, the prediction results might change slightly, but the main conclusion won't be affected.

-b {ABE,CBE} Set base editor model training
- bedeepoff.py Off-target models for ABEmax and AncBE4max
### Installation Guide

-b {ABE,CBE} Set base editor model

-i INPUT_FILE Set input tsv file
### Example Call
- Off-target ABE/CBE model training:
```bash
python training.py -b ABE
python training.py -b CBE
```
- Off-target ABE prediction for Cas-OFFinder output:
```bash
python bedeepoff.py -b ABE -i ./cas-offinder/Cas-Offinder_Output_Example.txt
```
- Off-target ABE prediction for CRISPRitz output:
```bash
python bedeepoff.py -b ABE -i ./cas-offinder/CRISPRitz_Output_Example.txt
```shell
conda create -n pytorch python=3.10.8 ipykernel matplotlib=3.7.0 logging=0.5.1.2 pkbar=0.5 torch=1.13.1 numpy=1.23.5 pandas=1.4.3 Bio=1.78 sklearn=1.1.1
ipython kernel install --user --name crispr --display-name "Python3(pytorch)"
```

Installation time depends on your own network environment.

### Files description
* [bedeepoff.py](https://github.com/izhangcd/BEdeep/blob/main/bedeepoff.py) contains the contains the core code of prediction module for the website [www.DeepHF.com](http://www.deephf.com).
* [training.py](https://github.com/izhangcd/BEdeep/blob/main/training.py) contains the code for ABEdeepoff and CBEdeepoff model training.
* [Data/ABEdeepoff.txt](https://github.com/izhangcd/BEdeep/blob/main/Data/ABEdeepoff.txt) contains the raw data for ABEdeepoff model training.
* [Data/CBEdeepoff.txt](https://github.com/izhangcd/BEdeep/blob/main/Data/CBEdeepoff.txt) contains the raw data for CBEdeepoff model training.
* [Models/ABEdeepoff.pt](https://github.com/izhangcd/BEdeep/blob/main/Models/ABEdeepoff.pt) the final model file of ABEdeepoff used in the DeepHF wibsite.
* [Models/CBEdeepoff.pt](https://github.com/izhangcd/BEdeep/blob/main/Models/CBEdeepoff.pt) the final model file of CBEdeepoff used in the DeepHF wibsite.

[ABEdeepoff.ipynb](https://github.com/izhangcd/DeepHF/blob/master/ABEdeepoff.ipynb) provides the code for training model in your own computing environment for ABE.

[CBEdeepoff.ipynb](https://github.com/izhangcd/DeepHF/blob/master/CBEdeepoff.ipynb) provides the code for training model in your own computing environment for CBE.

[data/ABEdeepoff.txt](https://github.com/izhangcd/DeepHF/blob/master/data/ABEdeepoff.txt) experimental edit efficiency data for ABE. It can be used to train the model.

[data/CBEdeepoff.txt](https://github.com/izhangcd/DeepHF/blob/master/data/CBEdeepoff.txt) experimental edit efficiency data for CBE. It can be used to train the model.

[data/ABE_Off_endo.txt](https://github.com/izhangcd/DeepHF/blob/master/data/ABE_Off_endo.txt) experimental edit efficiency data from independent publication dataset. It can be used to test the model.

[data/CBE_Off_endo.txt](https://github.com/izhangcd/DeepHF/blob/master/data/CBE_Off_endo.txt) experimental edit efficiency data from independent publication dataset. It can be used to test the model.
277 changes: 0 additions & 277 deletions bedeepoff.py

This file was deleted.

Loading

0 comments on commit 21f97f6

Please sign in to comment.