Team:UESTC-Software/Installation.html
From 2014.igem.org
(Difference between revisions)
Tangying0608 (Talk | contribs) |
Tangying0608 (Talk | contribs) |
||
Line 64: | Line 64: | ||
<h2>2.Deployment</h2> | <h2>2.Deployment</h2> | ||
<p>For database, CasDB, please fellow this instruction step by step:</p> | <p>For database, CasDB, please fellow this instruction step by step:</p> | ||
- | <p>1.On your server, unpack the source code, redirect into the folder 'CasDB' under 'server' directory. Please pay attention that the compressed file 'CasDB.tar.gz' is for our automatic test on Travis CI. It’s useless for CasDB deployment! </p> | + | <p>1.On your server, unpack the source code, redirect into the folder <span style="color:#8fc41f">'CasDB'</span> under <span style="color:#8fc41f">'server'</span> directory. Please pay attention that the compressed file <span style="color:#8fc41f">'CasDB.tar.gz'</span> is for our automatic test on Travis CI. It’s useless for CasDB deployment! </p> |
- | <p>2.Make a new folder named 'database' under 'CasDB'. Next, download model organism genome data into this folder. We use data from NCBI database. Temporally support these fellow model organisms</p> | + | <p>2.Make a new folder named <span style="color:#8fc41f">'database'</span> under <span style="color:#8fc41f">'CasDB'</span>. Next, download model organism genome data into this folder. We use data from NCBI database. Temporally support these fellow model organisms</p> |
<table border="1px" cellspacing="0px" style="border-collapse:collapse;word-break:break-word;border-color: #c7d3af; | <table border="1px" cellspacing="0px" style="border-collapse:collapse;word-break:break-word;border-color: #c7d3af; | ||
color: #999;"> | color: #999;"> | ||
Line 77: | Line 77: | ||
<pre style="font-size: 14px;color: #8fc41f;line-height: 1.5em;"> | <pre style="font-size: 14px;color: #8fc41f;line-height: 1.5em;"> | ||
-server | -server | ||
- | + | -CasDB | |
- | + | -getGeneInfo.py | |
- | + | - sgRNAimport.py | |
- | + | -database | |
- | + | -[Species Name] | |
- | + | -[Chromosome Name] | |
- | + | -[Data files, we need ffn, fna, ptt files] | |
</pre> | </pre> | ||
- | <p>3.Then create a new database, rename it as you like. Using this database, execute 'CasDB.sql' and then execute 'view.sql'. </p> | + | <p>3.Then create a new database, rename it as you like. Using this database, execute <span style="color:#8fc41f">'CasDB.sql'</span> and then execute <span style="color:#8fc41f">'view.sql'</span>. </p> |
- | <p>4.Configure the python script, 'getGeneInfo.py'. Just modify one line according your environment and setup: | + | <p>4.Configure the python script, <span style="color:#8fc41f">'getGeneInfo.py'</span>. Just modify one line according your environment and setup: |
<br/><b>db = MySQLdb.connect("YOUR-DB-HOST","DB-USERNAME","DB-PASSWD","DB-NAME" )</b></p> | <br/><b>db = MySQLdb.connect("YOUR-DB-HOST","DB-USERNAME","DB-PASSWD","DB-NAME" )</b></p> | ||
- | <p>Then run this python script by typing 'python getGeneInfo.py' in command line interface. This script will work automatically to recognize the species name and chromosomes. Besides this, more gene information will be calculated and inserted into CasDB. But it may take some time.</p> | + | <p>Then run this python script by typing <span style="color:#8fc41f">'python getGeneInfo.py'</span> in command line interface. This script will work automatically to recognize the species name and chromosomes. Besides this, more gene information will be calculated and inserted into CasDB. But it may take some time.</p> |
- | <p>5.Configure the python script, 'sgRNAimport.py'. Just as above modify one line according your environment and setup:<br/><b>db = MySQLdb.connect("YOUR-DB-HOST","DB-USERNAME","DB-PASSWD","DB-NAME" )</b></p> | + | <p>5.Configure the python script, <span style="color:#8fc41f">'sgRNAimport.py'</span>. Just as above modify one line according your environment and setup:<br/><b>db = MySQLdb.connect("YOUR-DB-HOST","DB-USERNAME","DB-PASSWD","DB-NAME" )</b></p> |
- | <p>Then run this python script by typing 'python sgRNAimport.py' in command line interface. This script will work automatically to recognize the species name and chromosomes. Besides this, sgRNA will be found and inserted into CasDB. But it may take some time.</p> | + | <p>Then run this python script by typing <span style="color:#8fc41f">'python sgRNAimport.py'</span> in command line interface. This script will work automatically to recognize the species name and chromosomes. Besides this, sgRNA will be found and inserted into CasDB. But it may take some time.</p> |
- | <p>For server, we provide an install shell script to operate a one-click install. You just run the 'install.sh' and it will help you install the whole system. The last step for server deployment is to configure PHP scripts. It’s very easy. Just modify 'server/config.php' according to guides in the source file. </p> | + | <p>For server, we provide an install shell script to operate a one-click install. You just run the <span style="color:#8fc41f">'install.sh'</span> and it will help you install the whole system. The last step for server deployment is to configure PHP scripts. It’s very easy. Just modify <span style="color:#8fc41f">'server/config.php'</span> according to guides in the source file. </p> |
</div> | </div> | ||
<!-- Fixed Navigation bar --> | <!-- Fixed Navigation bar --> |
Revision as of 15:31, 17 October 2014
Android
Desktop
Server