This algorithm uses CASPER's indexes from Seq-Finder to find and score potential off-target sites for input gRNAs.
- Open terminal
- Run the following command:
sudo apt-get install sqlite3
- Download sqlite3 source code
- Open terminal
- CD to sqlite3 source code folder
- Build using the following command:
gcc -c sqlite3.c
- The build command should generate a .o file that will be used with compiling OT.
- Copy the .o file to the OT source code folder
- Download sqlite3 source code
- Open "Developer Command Prompt for VS 2017"
- CD to sqlite3 source code folder
- Build the library files by running the following command:
lib /DEF:sqlite3.def /OUT:sqlite3.lib /MACHINE:x64
- Download OT source code for Linux (in Repository)
- Open terminal
- CD to OT source code folder
- Run Command to compile OT:
g++ -std=c++11 *.cpp -pthread -lsqlite3 -o OT
Mac and Linux (if you manually built sqlite3 .o file, make sure sqlite3 .o file is in same folder as OT source code):
- Download OT source code for Mac or Linux (in Repository)
- Open terminal
- CD to OT source code folder
- Run command to compile OT:
g++ -std=c++11 *.cpp -pthread sqlite3.o -o OT
- Download OT source for Windows (in Repository)
- Open Visual Studio 2017
- Create a New Project
- Import the OT source code files
- Go to Project->Properties and do the following:
- Set Configuration to "All Configurations"
- Set Platform to "All Platforms"
- In Configuration Properties->VC++ Directories add
C:\Path\To\sqlite3;
to "Include Directories" - In Configuration Properties->VC++ Directories add
C:\Path\To\sqlite;
to "Include Libraries" - In C/C++->General add
C:\Path\To\sqlite3;
to "Additional Include Directories" and "Additional #using Directories" - In Linker->General add
C:\Path\To\sqlite;
to "Additional Library Directories" - In Linker->Input add
C:\Path\To\sqlite\sqlite3.lib;
in "Additonaly Dependencies - Make sure when you add these paths that there are ';' seperating all paths/object in the line.
- For debugging, make sure Debug and x64 are selected before running
- If debugging, make sure you set the debugging command arguments. See "How to run OT" below.
- For compiling, make sure Release and x64 are selected before running
-
CD to the directory containing the OT executable
- The command line arguments for OT are as follows:
query_file_path endonuclease cspr_file_path db_file_path output_file_path CASPERinfo_file_path max_num_mismatches threshold detailed_output_bool avg_output_bool hsu_matrix_name
- The command line arguments for OT are as follows:
-
Example command:
./OT query.txt asCas12 myfile_asCas12.cspr myfile_asCas12_repeats.db output.txt CASPERinfo 5 0.05 TRUE FALSE "MATRIX:HSU MATRIX-asCas12-2016"