ABOUT
CRISPR-offinder.pl - A perl script used for designing CRISPR guide RNA and
searching off-targets for user-defined protospacer adjacent motif(PAM)

CRISPR-offinder requires an OpenCL-enabled device (CPU, GPU, or etc..) and corresponding 
runtime driver pre-installed to run properly.

Please download and install the latest driver below:
1.Intel (Download 'OpenCL runtime' in the middle of the page): 
http://software.intel.com/en-us/vcsource/tools/opencl-sdk
2.NVidia: http://www.nvidia.com/Download/index.aspx
3.AMD: http://support.amd.com/en-us/download
4.Perl; Python >=2.7 or greater
5.Python package: Scipy,Biopython and Sci-kit learn, you can install by commond:
    sudo pip install BioPython
    sudo pip install sklearn
    sudo pip install scipy

Before installing CRISPR-offinder, please check whether your device is an OpenCL-supported one.

Supported OS
1.Linux (with proprietary drivers installed)
2.Max OS X (Snow leopard or higher)

VERSION
         Version: 1.2
         Aug 17, 2017

SYNOPSIS
         $ perl ./CRISPR-offinder_1.2.pl <option>
         For help information, type 'perl CRISPR-offinder_1.2.pl'

DESCRIPTION
        Given an input FASTA file of the target sites and queries the reference genome as well 
	as a CRISPR system with a defined spacer length and PAM sequence, this standalone tool 
	will identify putative sites and assign a predicted activity based on support vector 
	machine model which conducted by sgRNA Scorer 2.0. In addition, sgRNAs with minimal 
	off-target activity were predicted by Cas-OFFinder, and score with Off-Target Cutting 
	Frequency Determination (CFD). 

AUTHOR
         Shengsong Xie
         E-mail: ssxie@mail.hzau.edu.cn

Homepage
         www.biootools.com

LICENSE
         Free for research and educational users.
		 
CRISPR-offinder.pl version 1.2
==============================

Usage:

    CRISPR-offinder_1.2.pl <option>
    -input        [s] Input file in FASTA format <required>
    -pamseq       [s] PAM sequence <required>
    -pamori       [s] PAM orientation. Value must either be 5'or 3' (enter 5 or 3)  <deafult: 3>
    -pamlen       [i] Length of protospacer <default: 20>
    -gc_min       [i] The minimum value of GC content <default: 20>
    -gc_max       [i] The maximum value of GC content <default: 80>
    -mismatches   [i] Number of mismatches[0-9] <default: 5>
    -strand       [s] Searching CRISPR target sites using DNA strands based option(s/a/b) <default: b>
    -cga          [s] (C: using CPUs, G: using GPUs, A: using accelerators) <default: C>
    -gd           [s] genome dir <default: $Bin/genome>
    -system       [s] run system (Linux32/Linux64/Mac) <default: Linux64>
    -offset_start [i] The minimum value of sgRNA offset <default: -2>
    -offset_end   [i] The maximum value of sgRNA offset <default: 32>
    -output       [s] Output dir. Final output files with guide RNA sequences and scores  <default: ./>

Whole genome of target organism is needed (in FASTA format). You can find one in one of the below links:
1.UCSC genome sequences library, http://hgdownload.soe.ucsc.edu/downloads.html
2.Ensembl sequence library, http://www.ensembl.org/info/data/ftp/index.html
Extract all FASTA files in a directory. Remember the full path of the FASTA files directory(for option -gd).

For help information: perl CRISPR-offinder_1.2.pl

PAM requirement:
    NGG - SpCas9 from Streptococcus pyogenes - direction: 3
    NRG - SpCas9 from Streptococcus pyogenes - direction: 3
    NNAGAAW - StCas9 from Streptococcus thermophilus - direction: 3
    NNNNGMTT - NmCas9 from Neisseria meningitidis - direction: 3
    NNGRRT - SaCas9 from Staphylococcus aureus - direction: 3
    NNNRRT - SaCas9 KKH variant - direction: 3
    NGG(reduced NAG binding) - SpCas9 D1135E variant - direction: 3
    NGCG - SpCas9 VRER variant - direction: 3
    NGAG - SpCas9 EQR variant - direction: 3
    NGAN-NGNG - SpCas9 VQR variant - direction: 3
    NGG - FnCas9 from Francisella novicida - direction: 3
    YG - FnCas9 RHA variant - direction: 3
    TTTN - AsCpf1 from Acidaminococcus, LbCpf1 from Lachnospiraceae - direction: 5
    TTN - FnCpf1 from Francisella novicida strain U112 - direction: 5
    CTA - FnCpf1 from Francisella novicida strain U112 - direction: 5
    TTN-CTA - FnCpf1 from Francisella novicida strain U112 - direction: 5
    TTN - C2c1 from four major taxa: Bacilli, Verrucomicrobia, a-proteobacteria, and d-proteobacteria - direction: 5
    Custom, Enter your PAM - enter user defined-PAM

    Code      Base     Code        Base
     A 	    Adenine 	K 	G or T
     C 	    Cytosine 	M 	A or C
     G 	    Guanine 	B 	C or G or T
     T 	    Thymine 	D 	A or G or T
     R 	    A or G  	H 	A or C or T
     Y      C or T  	V 	A or C or G
     S 	    G or C  	N 	any base
     W 	    A or T 	  	 
    Note that CRISPR-offinder allows mixed bases to account for the degeneracy in PAM sequences

Install of CRISPR-offinder:

    unzip CRISPR-offinder_1.2.zip

For citation:

Changzhi Zhao, Xiaoguo Zheng, Wubin Qu, Guanglei Li, Xinyun Li, Yi-Liang Miao, Xiaosong Han, Xiangdong Liu, 
Zhenhua Li, Yunlong Ma, Qianzhi Shao, Haiwei Li, Fei Sun, Shengsong Xie and Shuhong Zhao. CRISPR-offinder: 
a CRISPR guide RNA design and off-target searching tool for user-defined protospacer adjacent motif. 
International Journal of Biological Sciences, 2017, under review.
