#####install R-3.4.0#####
$ sudo yum install readline-devel gcc-gfortran libXt-devel libXtst-devel bzip2-devel xz-devel pcre-devel cairo cairo-devel libicu libicu-devel zlib-devel libcurl-devel libpng-devel java-devel
$ wget https://cran.r-project.org/src/base/R-3/R-3.4.0.tar.gz
$ tar xf R-3.4.0.tar.gz
$ cd R-3.4.0
$ ./configure
$ make
$ sudo make install

#####install ggplot2#####
$ R
> install.packages("ggplot2");
> library("ggplot2")
> (install complete if there is no message)

#####install phylip#####
$ wget http://evolution.gs.washington.edu/phylip/download/phylip-3.696.tar.gz
$ tar xf phylip-3.696.tar.gz
$ cd phylip-3.696
$ cd src/
$ mv Makefile.unx Makefile
$ make install

#####install primer3#####
$ wget https://downloads.sourceforge.net/project/primer3/primer3/2.3.7/primer3-2.3.7.tar.gz
$ tar xf primer3-2.3.7.tar.gz
$ cd primer3-2.3.7
$ cd src/
$ make

#####install MFEprimer#####
$ sudo curl -kL https://bootstrap.pypa.io/get-pip.py  | sudo python
$ sudo yum install python-devel unzip
$ sudo pip install psutil
$ wget https://github.com/quwubin/MFEprimer/zipball/master
$ unzip master
$ mv quwubin-MFEprimer-1903547/ MFEprimer
$ cd MFEprimer/
$ cp ~/tasuke_sample_data/reference.fasta(the path of your reference genome) ./
$ sh IndexDb.sh reference.fasta(your reference genome)

###install complete if these files is created as below,
###(your reference genone name).2bit
###(your reference genone name).sqlite3.db
###(your reference genone name).uni

#####install blast+#####
$ wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.6.0+-x64-linux.tar.gz
$ tar xf ncbi-blast-2.6.0+-x64-linux.tar.gz
$ cd ncbi-blast-2.6.0+
$ mkdir reference
$ cd reference/
$ cp ~/tasuke_sample_data/reference.fasta(or the path of your reference genome) ./
$ ../bin/makeblastdb -in reference.fasta(or your reference genome name) -dbtype nucl -hash_index

install complete if these files is created as below,
(your reference genome name).nhd
(your reference genome name).nhi
(your reference genome name).nhr
(your reference genome name).nin
(your reference genome name).nog
(your reference genome name).nsd
(your reference genome name).nsi
(your reference genome name).nsq


#####install phenotype data in your tasuke#####
$ tar xf tasuke_tools_1.6.0.tar
##install your data according to http://tasuke.dna.affrc.go.jp/installation.html
$ sudo perl ~/tasuke_tools_1.6.0/tasuke_bin/tasuke_phenotype.pl -u root -db tasuke_gwas -t /var/www/html/tasuke_www/
Enter db password:
> Where is phenotype data csv file?
(File format: Breed Name,Phenotype,[1|0])
# phenodata.csv
> Use qqman output file? [y/N] ### When you have qqman output file,you can use.
#
(just a moment)
> Import papers data? [y/N] # 
# 
Done.

#####edit tasuke config#####
$ sudo cp -r tasuke_www/ /var/www/html/
$ cd /var/www/html/tasuke_www/conf
$ sudo vi config.php
###Primer3　PATH###
line 61:   $primer3Path="/PATH/src/primer3_core"; ###enter the absolute path of your installing primer3 in 'PATH'
line 62:   $primer3ThermPath="/PATH/src/primer3_config/"; ###enter the absolute path of your installing primer3 in 'PATH'
###MFEprimer PATH###
line 65:   $MFEpath="/PATH/MFEprimer.py"; ###enter the absolute path of your installing MFEprimer in 'PATH'
###MFEprimer ReferenceDB PATH###
line 68:   $MFEDBpath="/PATH/reference.fasta"; ###enter the absolute path of your installing MFEprimer in 'PATH'
###PHYLIP directory###
line 71:   $phylipDir="/PATH/"; ###enter the absolute path of your installing phylip in 'PATH'
###BLAST PATH###
line 74:   $blastPath="/PATH/bin/blastn"; ###enter the absolute path of your installing blast+ in 'PATH'
###BLASTDB PATH###
line 77:   $blastDBPath="/PATH/reference.fasta"; ###enter the absolute path of your installing blast+ in 'PATH'
