Statistiques
| Branche: | Révision :

root / doc / index.rst @ master

Historique | Voir | Annoter | Télécharger (14,93 ko)

1 68670b96 Florent Chuffart
*****************************************
2 68670b96 Florent Chuffart
Readme / Documentation for `MyLabStocks`
3 68670b96 Florent Chuffart
*****************************************
4 68670b96 Florent Chuffart
5 68670b96 Florent Chuffart
6 c880276f Florent Chuffart
`MyLabStocks` is a web application allowing to easily store, share and retrieve
7 c880276f Florent Chuffart
information about molecular biology materials stored in a laboratory.
8 68670b96 Florent Chuffart
9 68670b96 Florent Chuffart
License
10 68670b96 Florent Chuffart
=======
11 68670b96 Florent Chuffart
12 c880276f Florent Chuffart
Copyright CNRS 2012-2013
13 c880276f Florent Chuffart
14 c880276f Florent Chuffart
- Florent CHUFFART
15 c880276f Florent Chuffart
- Gael YVERT
16 c880276f Florent Chuffart
17 68670b96 Florent Chuffart
The Software is provided “as is” without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement. You use this software at your own risk.
18 68670b96 Florent Chuffart
19 c880276f Florent Chuffart
This software is governed by the CeCILL license under French law and abiding by the rules of distribution of free software.  You can  use, modify and/ or redistribute the software under the terms of the CeCILL license as circulated by CEA, CNRS and INRIA at the following URL "http://www.cecill.info".
20 c880276f Florent Chuffart
21 c880276f Florent Chuffart
As a counterpart to the access to the source code and  rights to copy, modify and redistribute granted by the license, users are provided only  with a limited warranty  and the software's author,  the holder of the economic rights,  and the successive licensors  have only  limited liability.
22 c880276f Florent Chuffart
23 c880276f Florent Chuffart
This software is provided with absolutely NO WARRANTY. The authors can not be held responsible, even partially, for any damage, loss, financial loss or any other undesired facts resulting from the use of the software.
24 c880276f Florent Chuffart
25 c880276f Florent Chuffart
In this respect, the user's attention is drawn to the risks associated with loading,  using,  modifying and/or developing or reproducing the software by the user in light of its specific status of free software, that may mean  that it is complicated to manipulate,  and  that  also therefore means  that it is reserved for developers  and  experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the software's suitability as regards their requirements in conditions enabling the security of their systems and/or data to be ensured and,  more generally, to use and operate it in the same conditions as regards security.
26 c880276f Florent Chuffart
27 c880276f Florent Chuffart
The fact that you are presently reading this means that you have had knowledge of the CeCILL license and that you accept its terms.
28 68670b96 Florent Chuffart
29 68670b96 Florent Chuffart
Installation Instructions
30 68670b96 Florent Chuffart
=========================
31 68670b96 Florent Chuffart
32 68670b96 Florent Chuffart
This installation has been fully tested on:
33 68670b96 Florent Chuffart
  -  Debian 7.2.0 amd64 netinst [1], running on virtual machine using Oracle VM VirtualBox [2] for macosx (dev)
34 68670b96 Florent Chuffart
  -  Ubuntu Server 12.04.3 LTSUbuntu server LTS [3], running on physical machine (prod)
35 c880276f Florent Chuffart
36 68670b96 Florent Chuffart
[1] http://cdimage.debian.org/debian-cd/7.2.0/amd64/iso-cd/debian-7.2.0-amd64-netinst.iso
37 68670b96 Florent Chuffart
38 68670b96 Florent Chuffart
[2] https://www.virtualbox.org
39 68670b96 Florent Chuffart
40 68670b96 Florent Chuffart
[3] http://www.ubuntu.com/download/server
41 68670b96 Florent Chuffart
42 68670b96 Florent Chuffart
Prerequisites
43 68670b96 Florent Chuffart
-------------
44 68670b96 Florent Chuffart
45 383292cc Florent Chuffart
Prior to installing MyLabStocks, a number of packages must be installed on your system. Git is used to retrieve MyLabStocks sources. MySQL, Apache and phpMyAdmin ensure web and database services, it needs php5 and php5-curl packages. Tomcat6 will support advanced plasmid visualisation services (PlasMapper), it needs openjdk-6-jdk and ant. Finally, BLAST is used to analyse sequences, it needs csh.
46 949b8a56 Florent Chuffart
47 8f867a4e Florent Chuffart
On the targeted server, you can install these packages by typing the following command in a terminal.
48 949b8a56 Florent Chuffart
49 68670b96 Florent Chuffart
.. code:: bash
50 68670b96 Florent Chuffart
51 c880276f Florent Chuffart
  sudo apt-get install git apache2 mysql-server php5 php5-curl phpmyadmin tomcat6 ant openjdk-6-jdk blast2 csh
52 68670b96 Florent Chuffart
..
53 68670b96 Florent Chuffart
54 68670b96 Florent Chuffart
55 68670b96 Florent Chuffart
Get MyLabStocks Sources
56 68670b96 Florent Chuffart
------------------------
57 68670b96 Florent Chuffart
58 8f867a4e Florent Chuffart
The first installation step is to retrieve the source code of MyLabStocks. You can do this by typing the following command in a terminal.
59 949b8a56 Florent Chuffart
60 68670b96 Florent Chuffart
.. code:: bash
61 68670b96 Florent Chuffart
62 68670b96 Florent Chuffart
  git clone http://forge.cbp.ens-lyon.fr/git/mylabstocks
63 68670b96 Florent Chuffart
..
64 68670b96 Florent Chuffart
65 68670b96 Florent Chuffart
66 383292cc Florent Chuffart
Install wwwBLAST
67 68670b96 Florent Chuffart
----------------
68 68670b96 Florent Chuffart
69 383292cc Florent Chuffart
MyLabStocks uses BLAST queries for several of its features, wwwBLAST is a web interface which provides access to this feature in a user-friendly way.
70 949b8a56 Florent Chuffart
71 383292cc Florent Chuffart
MyLabStocks is distributed with wwwBLAST working on a x64 architecture.
72 8f867a4e Florent Chuffart
For other architectures, please refer to the NCBI repositories
73 68670b96 Florent Chuffart
http://mirrors.vbi.vt.edu/mirrors/ftp.ncbi.nih.gov/blast/executables/release/LATEST
74 68670b96 Florent Chuffart
75 8f867a4e Florent Chuffart
On the targeted server type the following commands in a terminal.
76 68670b96 Florent Chuffart
77 68670b96 Florent Chuffart
.. code:: bash
78 68670b96 Florent Chuffart
79 68670b96 Florent Chuffart
  cd mylabstocks/opts/
80 68670b96 Florent Chuffart
  tar xfvz wwwblast-2.2.26-x64-linux.tar.gz
81 68670b96 Florent Chuffart
  sudo cp -r blast /var/www/.
82 68670b96 Florent Chuffart
  sudo chown www-data:www-data /var/www/blast/TmpGifs /var/www/blast/*.log /var/www/blast/db/
83 59cc9448 Florent Chuffart
84 59cc9448 Florent Chuffart
  echo "Alias /blast /var/www/blast/" > /tmp/blast.conf
85 c880276f Florent Chuffart
  echo "<Directory /var/www/blast/>" > /tmp/blast.conf
86 c880276f Florent Chuffart
  echo "   Options +ExecCGI" >> /tmp/blast.conf
87 c880276f Florent Chuffart
  echo "</Directory>" >> /tmp/blast.conf
88 c880276f Florent Chuffart
  echo "AddHandler cgi-script .cgi" >> /tmp/blast.conf
89 c880276f Florent Chuffart
  sudo cp /tmp/blast.conf /etc/apache2/conf.d/blast.conf
90 59cc9448 Florent Chuffart
  sudo ln -s ../conf.d/blast.conf /etc/apache2/conf-available/blast.conf
91 59cc9448 Florent Chuffart
  sudo ln -s ../conf-available/blast.conf /etc/apache2/conf-enabled/blast.conf
92 68670b96 Florent Chuffart
  rm /tmp/blast.conf
93 68670b96 Florent Chuffart
  sudo /etc/init.d/apache2 restart
94 68670b96 Florent Chuffart
  sudo sed -i 's/<option VALUE.*test_na_db/<option VALUE=oligostock_db>oligostock_db<option VALUE=plasmidstock_db>plasmidstock_db<option VALUE=plfeatstock_db>plfeatstock_db/g' /var/www/blast/blast.html
95 68670b96 Florent Chuffart
  sudo sed -i 's/<option VALUE.*test_aa_db//g' /var/www/blast/blast.html
96 68670b96 Florent Chuffart
  cat /var/www/blast/blast.rc > /tmp/blast.rc
97 68670b96 Florent Chuffart
  echo "blastn oligostock_db" >> /tmp/blast.rc
98 68670b96 Florent Chuffart
  echo "tblastn oligostock_db" >> /tmp/blast.rc
99 68670b96 Florent Chuffart
  echo "tblastx oligostock_db" >> /tmp/blast.rc
100 68670b96 Florent Chuffart
  echo "blastn plasmidstock_db" >> /tmp/blast.rc
101 68670b96 Florent Chuffart
  echo "tblastn plasmidstock_db" >> /tmp/blast.rc
102 68670b96 Florent Chuffart
  echo "tblastx plasmidstock_db" >> /tmp/blast.rc
103 68670b96 Florent Chuffart
  echo "blastn plfeatstock_db" >> /tmp/blast.rc
104 68670b96 Florent Chuffart
  echo "tblastn plfeatstock_db" >> /tmp/blast.rc
105 68670b96 Florent Chuffart
  echo "tblastx plfeatstock_db" >> /tmp/blast.rc
106 68670b96 Florent Chuffart
  sudo cp /tmp/blast.rc /var/www/blast/blast.rc
107 68670b96 Florent Chuffart
  rm /tmp/blast.rc
108 68670b96 Florent Chuffart
  cd ../..
109 68670b96 Florent Chuffart
..
110 68670b96 Florent Chuffart
111 f78441a4 Florent Chuffart
112 383292cc Florent Chuffart
Now you have a wwwBLAST instance available here: http://your_server/blast.
113 f78441a4 Florent Chuffart
114 f78441a4 Florent Chuffart
115 68670b96 Florent Chuffart
Install PlasMapper
116 68670b96 Florent Chuffart
------------------
117 68670b96 Florent Chuffart
118 949b8a56 Florent Chuffart
PlasMapper provides advanced plasmid visualisation features. We use it to produced annoted plasmid maps. To install it, type the following command under a targeted server terminal.
119 949b8a56 Florent Chuffart
120 68670b96 Florent Chuffart
.. code:: bash
121 68670b96 Florent Chuffart
122 68670b96 Florent Chuffart
  cd mylabstocks/opts/
123 68670b96 Florent Chuffart
  tar xfvz PlasMapper_download.tar.gz
124 68670b96 Florent Chuffart
  cd PlasMapper
125 68670b96 Florent Chuffart
  # modify installdir as /var/lib/tomcat6
126 c880276f Florent Chuffart
  sed -i 's/\/home\/tomcat/\/var\/lib\/tomcat6/g' build.xml
127 68670b96 Florent Chuffart
  # modify servletjar as /usr/share/tomcat6/lib/servlet-api.jar
128 c880276f Florent Chuffart
  sed -i 's/${installdir}\/common\/lib\/servlet-api.jar/\/usr\/share\/tomcat6\/lib\/servlet-api.jar/g' build.xml
129 68670b96 Florent Chuffart
  # change /home/tomcat for /var/lib/tomcat6
130 68670b96 Florent Chuffart
  sed -i 's/\/home\/tomcat/\/var\/lib\/tomcat6/g' src/ca/ualberta/xdong/plasMapper/annotate/plasMapConfiguration_en_CA.properties
131 68670b96 Florent Chuffart
  # and set blastallDir=/usr/bin/
132 68670b96 Florent Chuffart
  sed -i 's/\/usr\/local\/bin\//\/usr\/bin\//g' src/ca/ualberta/xdong/plasMapper/annotate/plasMapConfiguration_en_CA.properties
133 8f867a4e Florent Chuffart
  # After these steps, PlasMapper is ready to be configured
134 68670b96 Florent Chuffart
  ant clean
135 c880276f Florent Chuffart
  ant build
136 c880276f Florent Chuffart
  sudo ant install
137 68670b96 Florent Chuffart
  sudo rm -Rf /var/lib/tomcat6/webapps/PlasMapper/tmp
138 68670b96 Florent Chuffart
  sudo ln -s /tmp/tomcat6-tomcat6-tmp/ /var/lib/tomcat6/webapps/PlasMapper/tmp
139 68670b96 Florent Chuffart
  echo '<?xml version="1.0" encoding="UTF-8"?><Context path="/myapp" allowLinking="true"></Context>' > context.xml
140 68670b96 Florent Chuffart
  sudo mv context.xml /var/lib/tomcat6/webapps/PlasMapper/META-INF/
141 68670b96 Florent Chuffart
  sudo /etc/init.d/tomcat6 restart
142 8f867a4e Florent Chuffart
  # After these steps, PlasMapper works on your server at the url http://myserver:8080/PlasMapper
143 68670b96 Florent Chuffart
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/*.*
144 68670b96 Florent Chuffart
  sudo chmod 664 /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/*.*
145 68670b96 Florent Chuffart
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/
146 68670b96 Florent Chuffart
  sudo chmod 775 /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/
147 68670b96 Florent Chuffart
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/html/feature.html
148 68670b96 Florent Chuffart
  sudo chmod 664 /var/lib/tomcat6/webapps/PlasMapper/html/feature.html
149 383292cc Florent Chuffart
  #  Now, plasmid features are ready to be searched by MyLabStocks via BLAST queries.
150 68670b96 Florent Chuffart
  cd ../../..
151 68670b96 Florent Chuffart
..
152 68670b96 Florent Chuffart
153 f78441a4 Florent Chuffart
Now you have a PlasMapper instance available here: http://your_server:8080/PlasMapper.
154 f78441a4 Florent Chuffart
155 68670b96 Florent Chuffart
156 68670b96 Florent Chuffart
Install MyLabStocks
157 68670b96 Florent Chuffart
-------------------
158 68670b96 Florent Chuffart
159 8f867a4e Florent Chuffart
Now your are ready to install the core of MyLabStocks. It consists of a set of php scripts that you have to deploy on your apache server. To do that, type the following commands in a targeted server terminal.
160 949b8a56 Florent Chuffart
161 68670b96 Florent Chuffart
.. code:: bash
162 68670b96 Florent Chuffart
163 47b3bfd6 Florent Chuffart
  sudo rsync -cauvz mylabstocks/src/ /var/www/labstocks/
164 f78441a4 Florent Chuffart
  sudo rm /var/www/labstocks/install_db.phpsh
165 68670b96 Florent Chuffart
  sudo touch /var/www/labstocks/formatdb.log
166 c880276f Florent Chuffart
  sudo chmod 440 /var/www/labstocks/connect_entry.php
167 c880276f Florent Chuffart
  sudo mkdir /var/www/labstocks/plasmid_files
168 68670b96 Florent Chuffart
  sudo mkdir /var/www/labstocks/raw_dirs
169 68670b96 Florent Chuffart
  sudo mkdir /var/www/labstocks/collections
170 68670b96 Florent Chuffart
  sudo chown -R www-data:www-data /var/www/labstocks/connect_entry.php /var/www/labstocks/formatdb.log  /var/www/labstocks/plasmid_files /var/www/labstocks/raw_dirs
171 59cc9448 Florent Chuffart
  echo "Alias /blast /var/www/blast/" > /tmp/blast.conf
172 59cc9448 Florent Chuffart
  echo "<Directory /var/www/blast/>" > /tmp/blast.conf
173 59cc9448 Florent Chuffart
  echo "   Options +ExecCGI" >> /tmp/blast.conf
174 59cc9448 Florent Chuffart
  echo "</Directory>" >> /tmp/blast.conf
175 59cc9448 Florent Chuffart
  echo "AddHandler cgi-script .cgi" >> /tmp/blast.conf
176 59cc9448 Florent Chuffart
  sudo cp /tmp/blast.conf /etc/apache2/conf.d/blast.conf
177 59cc9448 Florent Chuffart
  sudo ln -s ../conf.d/blast.conf /etc/apache2/conf-available/blast.conf
178 59cc9448 Florent Chuffart
  sudo ln -s ../conf-available/blast.conf /etc/apache2/conf-enabled/blast.conf
179 59cc9448 Florent Chuffart
  rm /tmp/blast.conf
180 68670b96 Florent Chuffart
..
181 68670b96 Florent Chuffart
182 f78441a4 Florent Chuffart
Configure MyLabStocks
183 f78441a4 Florent Chuffart
---------------------
184 68670b96 Florent Chuffart
185 949b8a56 Florent Chuffart
For obvious security reasons, it is essential that you now update connexion parameters by editing the script: /var/www/labstocks/connect_entry.php
186 949b8a56 Florent Chuffart
187 c880276f Florent Chuffart
In this script you have to update the following constants:
188 949b8a56 Florent Chuffart
189 949b8a56 Florent Chuffart
  - SERVEUR
190 949b8a56 Florent Chuffart
  - NOM
191 949b8a56 Florent Chuffart
  - BASE
192 949b8a56 Florent Chuffart
  - PASSE
193 949b8a56 Florent Chuffart
  - LABNAME
194 c880276f Florent Chuffart
195 68670b96 Florent Chuffart
196 68670b96 Florent Chuffart
.. code:: bash
197 68670b96 Florent Chuffart
198 c880276f Florent Chuffart
  sudo vi /var/www/labstocks/connect_entry.php
199 68670b96 Florent Chuffart
..
200 68670b96 Florent Chuffart
201 8f867a4e Florent Chuffart
We have prepared the following script to help you define passwords and instantiate the database. This script will ask you to choose a password for basic and administrative access. To use this script, simply type the following command line:
202 68670b96 Florent Chuffart
203 68670b96 Florent Chuffart
.. code:: bash
204 68670b96 Florent Chuffart
205 c880276f Florent Chuffart
  sudo php mylabstocks/src/install_db.phpsh
206 68670b96 Florent Chuffart
..
207 68670b96 Florent Chuffart
208 949b8a56 Florent Chuffart
Congratulations! Your MyLabStocks instance is now available here: http://your_server/labstocks.
209 68670b96 Florent Chuffart
210 949b8a56 Florent Chuffart
Go to http://your_server/labstocks/wwwblast.php to initialize blast databases.
211 68670b96 Florent Chuffart
212 68670b96 Florent Chuffart
Links
213 68670b96 Florent Chuffart
-----
214 68670b96 Florent Chuffart
215 68670b96 Florent Chuffart
`MyLabStocks` home, repository and documentation: http://forge.cbp.ens-lyon.fr/redmine/projects/mylabstocks
216 68670b96 Florent Chuffart
217 68670b96 Florent Chuffart
Gael Yvert lab: http://www.ens-lyon.fr/LBMC/gisv/
218 68670b96 Florent Chuffart
219 68670b96 Florent Chuffart
220 68670b96 Florent Chuffart
221 68670b96 Florent Chuffart
222 68670b96 Florent Chuffart
223 68670b96 Florent Chuffart
Usage
224 68670b96 Florent Chuffart
=====
225 68670b96 Florent Chuffart
226 68670b96 Florent Chuffart
Advanced Search
227 68670b96 Florent Chuffart
---------------
228 68670b96 Florent Chuffart
229 c880276f Florent Chuffart
In the strain section, the form `Search in genotype` filters strains where the
230 c880276f Florent Chuffart
fields `locus1`, `locus2`, `locus3`, `locus4`, `locus5`, `ADE2`, `HIS3`, `LE  U2`,
231 c880276f Florent Chuffart
`LYS2`, `MET15`, `TRP1`, `URA3`, `HO_`, `Cytoplasmic_Character` or
232 c880276f Florent Chuffart
`extrachromosomal_plasmid` contain the given expression. This filter is case
233 68670b96 Florent Chuffart
insensitive.
234 68670b96 Florent Chuffart
235 68670b96 Florent Chuffart
Plasmids Sequences Management
236 68670b96 Florent Chuffart
-----------------------------
237 68670b96 Florent Chuffart
238 c880276f Florent Chuffart
Even in edit mode, users are not granted permission to directly edit a plasmid
239 c880276f Florent Chuffart
sequence, nor the URL to the plasmid sequence file. If a new sequence must be
240 c880276f Florent Chuffart
entered instead of the current one, users must upload a new sequence file, in
241 c880276f Florent Chuffart
.gb or .gb.gz format. MyLabStocks then automatically reads the file and update
242 c880276f Florent Chuffart
the sequence field and the URL. This ensures consistency between URL, sequence
243 68670b96 Florent Chuffart
and the file itself.
244 68670b96 Florent Chuffart
245 68670b96 Florent Chuffart
246 38e8e479 Florent Chuffart
Reporting Bugs
247 38e8e479 Florent Chuffart
--------------
248 38e8e479 Florent Chuffart
249 38e8e479 Florent Chuffart
If you think you have found a bug and would like to report the problem, then please ensure you have applied all applicable updates. If this is the case, send a description of your problem and some screenshot to florent.chuffart on its ens-lyon.fr email. Thank you for your contribution.
250 38e8e479 Florent Chuffart
251 38e8e479 Florent Chuffart
252 38e8e479 Florent Chuffart
253 47b3bfd6 Florent Chuffart
Backing up the Mysql Database and Stored Files
254 47b3bfd6 Florent Chuffart
----------------------------------------------
255 47b3bfd6 Florent Chuffart
256 383292cc Florent Chuffart
We HIGHLY RECOMMEND THAT YOU REGULARLY BACKUP your MyLabStocks
257 383292cc Florent Chuffart
database. We provide two levels of backup. The first one dumps only the
258 383292cc Florent Chuffart
MySQL database. The second one also adds the items' files that were uploaded on the server (plasmid_files and raw_dirs directories from your /var/www/labstocks
259 ecebbb6d Florent Chuffart
directory). These two features are available on the bottom of each entry page. The two links in the sentence *Backup the entire system or only the
260 383292cc Florent Chuffart
database NOW!* allow any user to download the requested backups. It
261 383292cc Florent Chuffart
could be useful for an administrator to integrate it in a robust file
262 383292cc Florent Chuffart
backup system using, for example, a cron that regularly pull the
263 ecebbb6d Florent Chuffart
archives (wget http://.../labstocks/backup.php?FULL_BACK=1). A third link allow you to export the current table in ''csv'' format.
264 47b3bfd6 Florent Chuffart
265 7c18e02a Florent Chuffart
266 7c18e02a Florent Chuffart
267 38e8e479 Florent Chuffart
How To Restore System From Backup
268 38e8e479 Florent Chuffart
---------------------------------
269 47b3bfd6 Florent Chuffart
270 383292cc Florent Chuffart
On the targeted server, you can restore the database from the last backup
271 383292cc Florent Chuffart
file ''labstocks_db.sql'' by typing the following command in a
272 383292cc Florent Chuffart
terminal. Not that you need administrator priviledges on the server to do that. This will drop existing tables, create new ones and populate them with data.
273 383292cc Florent Chuffart
You need to adapt user, password and database names according to your
274 383292cc Florent Chuffart
settings.
275 383292cc Florent Chuffart
276 47b3bfd6 Florent Chuffart
277 38e8e479 Florent Chuffart
.. code:: bash
278 47b3bfd6 Florent Chuffart
279 c880276f Florent Chuffart
  sudo mysql --user=root --password=root labstocks_db < labstocks_db.sql
280 38e8e479 Florent Chuffart
..
281 38e8e479 Florent Chuffart
282 38e8e479 Florent Chuffart
283 383292cc Florent Chuffart
To restore the uploaded files, you have to copy backed-up directories
284 383292cc Florent Chuffart
(''plasmid_files'' and ''raw_dirs'') to the labstocks directory of your server. To do that, on the targeted server, type the following commands in a
285 383292cc Florent Chuffart
terminal.
286 38e8e479 Florent Chuffart
287 38e8e479 Florent Chuffart
.. code:: bash
288 38e8e479 Florent Chuffart
289 c880276f Florent Chuffart
  sudo cp -r plasmid_files raw_dirs /var/www/labstocks/.
290 38e8e479 Florent Chuffart
..
291 68670b96 Florent Chuffart
292 68670b96 Florent Chuffart
293 38e8e479 Florent Chuffart
Extend Database
294 38e8e479 Florent Chuffart
---------------
295 68670b96 Florent Chuffart
296 383292cc Florent Chuffart
MyLabstocks is delivered under a free licence. Feel free to modify and
297 383292cc Florent Chuffart
extend it to meet the needs of your lab. To do that you can
298 383292cc Florent Chuffart
create new tables using phpMyAdmin
299 383292cc Florent Chuffart
(http://your_server/phpmyadmin)
300 383292cc Florent Chuffart
or mysql command line tools (documentation here
301 383292cc Florent Chuffart
http://dev.mysql.com/doc/refman/5.6/en/mysql.html).
302 383292cc Florent Chuffart
MyLabStocks uses the  framework phpMyEdit to manage the user interface. You can use the provided tool (http://your_server/phpMyEditSetup.php) to generate code.
303 383292cc Florent Chuffart
You can learn how to customize the interface by reading the phpMyEdit embedded documentation (http://your_server/labstocks/doc/html/).
304 68670b96 Florent Chuffart
305 ecebbb6d Florent Chuffart
Adding New Boxes In The Box Manager
306 ecebbb6d Florent Chuffart
-----------------------------------
307 ecebbb6d Florent Chuffart
308 c880276f Florent Chuffart
Tu add new boxes in the box manager you have to connect to the box manager in super user mode (or asking to your admin to). In this contexte, at the top of the page appears a link ''Add a new box for your Liquid N2 storage''. Follow this link, fill the form and click the button ''Add this new box''.
309 3fb9b24c Florent Chuffart
310 3fb9b24c Florent Chuffart
Modifying The Session Duration
311 3fb9b24c Florent Chuffart
------------------------------
312 3fb9b24c Florent Chuffart
313 3fb9b24c Florent Chuffart
To modify the session duration, edit the connect_entry.php configuration file and modify the SESSION_DURATION default value.
314 3fb9b24c Florent Chuffart
315 3fb9b24c Florent Chuffart
316 ef59ea9d Florent Chuffart
Extracting the genotypes of multiple strains when preparing a publication
317 ef59ea9d Florent Chuffart
-------------------------------------------------------------------------
318 ef59ea9d Florent Chuffart
319 ef59ea9d Florent Chuffart
Log in with superuser priviledges.
320 ef59ea9d Florent Chuffart
Go to the strains tab, click on the 'extract genotypes' link above the table
321 ef59ea9d Florent Chuffart
Enter IDs of strains to be retrieved, separated by blank space or commas.
322 71c3bfe5 Florent Chuffart
Click on 'extract genotypes' button.
323 71c3bfe5 Florent Chuffart
324 71c3bfe5 Florent Chuffart
325 c880276f Florent Chuffart
Clearing Existing Values and Start Over
326 c880276f Florent Chuffart
---------------------------------------
327 71c3bfe5 Florent Chuffart
328 71c3bfe5 Florent Chuffart
Existing values can be deleted from the admin tab using the superuser password. By doing so, you have to take care of the order in which you delete entries. For example, your are allowed to delete an "author" only if this author is no longer associated with any item entry ("strain", "lab book", ...). It is therefore necessary to first delete these item entries befor this author. Existing entries can also be deleted via SQL requests or through the phpMyAdmin graphical interface, using the DUMP TABLE command.