root / doc / index.rst @ a9b72d88
Historique | Voir | Annoter | Télécharger (14,25 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 | c880276f | Florent Chuffart | echo "<Directory /var/www/blast/>" > /tmp/blast.conf |
84 | c880276f | Florent Chuffart | echo " Options +ExecCGI" >> /tmp/blast.conf |
85 | c880276f | Florent Chuffart | echo "</Directory>" >> /tmp/blast.conf |
86 | c880276f | Florent Chuffart | echo "AddHandler cgi-script .cgi" >> /tmp/blast.conf |
87 | c880276f | Florent Chuffart | sudo cp /tmp/blast.conf /etc/apache2/conf.d/blast.conf |
88 | 68670b96 | Florent Chuffart | rm /tmp/blast.conf |
89 | 68670b96 | Florent Chuffart | sudo /etc/init.d/apache2 restart |
90 | 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 |
91 | 68670b96 | Florent Chuffart | sudo sed -i 's/<option VALUE.*test_aa_db//g' /var/www/blast/blast.html |
92 | 68670b96 | Florent Chuffart | cat /var/www/blast/blast.rc > /tmp/blast.rc |
93 | 68670b96 | Florent Chuffart | echo "blastn oligostock_db" >> /tmp/blast.rc |
94 | 68670b96 | Florent Chuffart | echo "tblastn oligostock_db" >> /tmp/blast.rc |
95 | 68670b96 | Florent Chuffart | echo "tblastx oligostock_db" >> /tmp/blast.rc |
96 | 68670b96 | Florent Chuffart | echo "blastn plasmidstock_db" >> /tmp/blast.rc |
97 | 68670b96 | Florent Chuffart | echo "tblastn plasmidstock_db" >> /tmp/blast.rc |
98 | 68670b96 | Florent Chuffart | echo "tblastx plasmidstock_db" >> /tmp/blast.rc |
99 | 68670b96 | Florent Chuffart | echo "blastn plfeatstock_db" >> /tmp/blast.rc |
100 | 68670b96 | Florent Chuffart | echo "tblastn plfeatstock_db" >> /tmp/blast.rc |
101 | 68670b96 | Florent Chuffart | echo "tblastx plfeatstock_db" >> /tmp/blast.rc |
102 | 68670b96 | Florent Chuffart | sudo cp /tmp/blast.rc /var/www/blast/blast.rc |
103 | 68670b96 | Florent Chuffart | rm /tmp/blast.rc |
104 | 68670b96 | Florent Chuffart | cd ../.. |
105 | 68670b96 | Florent Chuffart | .. |
106 | 68670b96 | Florent Chuffart | |
107 | f78441a4 | Florent Chuffart | |
108 | 383292cc | Florent Chuffart | Now you have a wwwBLAST instance available here: http://your_server/blast. |
109 | f78441a4 | Florent Chuffart | |
110 | f78441a4 | Florent Chuffart | |
111 | 68670b96 | Florent Chuffart | Install PlasMapper |
112 | 68670b96 | Florent Chuffart | ------------------ |
113 | 68670b96 | Florent Chuffart | |
114 | 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. |
115 | 949b8a56 | Florent Chuffart | |
116 | 68670b96 | Florent Chuffart | .. code:: bash |
117 | 68670b96 | Florent Chuffart | |
118 | 68670b96 | Florent Chuffart | cd mylabstocks/opts/ |
119 | 68670b96 | Florent Chuffart | tar xfvz PlasMapper_download.tar.gz |
120 | 68670b96 | Florent Chuffart | cd PlasMapper |
121 | 68670b96 | Florent Chuffart | # modify installdir as /var/lib/tomcat6 |
122 | c880276f | Florent Chuffart | sed -i 's/\/home\/tomcat/\/var\/lib\/tomcat6/g' build.xml |
123 | 68670b96 | Florent Chuffart | # modify servletjar as /usr/share/tomcat6/lib/servlet-api.jar |
124 | c880276f | Florent Chuffart | sed -i 's/${installdir}\/common\/lib\/servlet-api.jar/\/usr\/share\/tomcat6\/lib\/servlet-api.jar/g' build.xml |
125 | 68670b96 | Florent Chuffart | # change /home/tomcat for /var/lib/tomcat6 |
126 | 68670b96 | Florent Chuffart | sed -i 's/\/home\/tomcat/\/var\/lib\/tomcat6/g' src/ca/ualberta/xdong/plasMapper/annotate/plasMapConfiguration_en_CA.properties |
127 | 68670b96 | Florent Chuffart | # and set blastallDir=/usr/bin/ |
128 | 68670b96 | Florent Chuffart | sed -i 's/\/usr\/local\/bin\//\/usr\/bin\//g' src/ca/ualberta/xdong/plasMapper/annotate/plasMapConfiguration_en_CA.properties |
129 | 8f867a4e | Florent Chuffart | # After these steps, PlasMapper is ready to be configured |
130 | 68670b96 | Florent Chuffart | ant clean |
131 | c880276f | Florent Chuffart | ant build |
132 | c880276f | Florent Chuffart | sudo ant install |
133 | 68670b96 | Florent Chuffart | sudo rm -Rf /var/lib/tomcat6/webapps/PlasMapper/tmp |
134 | 68670b96 | Florent Chuffart | sudo ln -s /tmp/tomcat6-tomcat6-tmp/ /var/lib/tomcat6/webapps/PlasMapper/tmp |
135 | 68670b96 | Florent Chuffart | echo '<?xml version="1.0" encoding="UTF-8"?><Context path="/myapp" allowLinking="true"></Context>' > context.xml |
136 | 68670b96 | Florent Chuffart | sudo mv context.xml /var/lib/tomcat6/webapps/PlasMapper/META-INF/ |
137 | 68670b96 | Florent Chuffart | sudo /etc/init.d/tomcat6 restart |
138 | 8f867a4e | Florent Chuffart | # After these steps, PlasMapper works on your server at the url http://myserver:8080/PlasMapper |
139 | 68670b96 | Florent Chuffart | sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/*.* |
140 | 68670b96 | Florent Chuffart | sudo chmod 664 /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/*.* |
141 | 68670b96 | Florent Chuffart | sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/ |
142 | 68670b96 | Florent Chuffart | sudo chmod 775 /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/ |
143 | 68670b96 | Florent Chuffart | sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/html/feature.html |
144 | 68670b96 | Florent Chuffart | sudo chmod 664 /var/lib/tomcat6/webapps/PlasMapper/html/feature.html |
145 | 383292cc | Florent Chuffart | # Now, plasmid features are ready to be searched by MyLabStocks via BLAST queries. |
146 | 68670b96 | Florent Chuffart | cd ../../.. |
147 | 68670b96 | Florent Chuffart | .. |
148 | 68670b96 | Florent Chuffart | |
149 | f78441a4 | Florent Chuffart | Now you have a PlasMapper instance available here: http://your_server:8080/PlasMapper. |
150 | f78441a4 | Florent Chuffart | |
151 | 68670b96 | Florent Chuffart | |
152 | 68670b96 | Florent Chuffart | Install MyLabStocks |
153 | 68670b96 | Florent Chuffart | ------------------- |
154 | 68670b96 | Florent Chuffart | |
155 | 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. |
156 | 949b8a56 | Florent Chuffart | |
157 | 68670b96 | Florent Chuffart | .. code:: bash |
158 | 68670b96 | Florent Chuffart | |
159 | 47b3bfd6 | Florent Chuffart | sudo rsync -cauvz mylabstocks/src/ /var/www/labstocks/ |
160 | f78441a4 | Florent Chuffart | sudo rm /var/www/labstocks/install_db.phpsh |
161 | 68670b96 | Florent Chuffart | sudo touch /var/www/labstocks/formatdb.log |
162 | c880276f | Florent Chuffart | sudo chmod 440 /var/www/labstocks/connect_entry.php |
163 | c880276f | Florent Chuffart | sudo mkdir /var/www/labstocks/plasmid_files |
164 | 68670b96 | Florent Chuffart | sudo mkdir /var/www/labstocks/raw_dirs |
165 | 68670b96 | Florent Chuffart | sudo mkdir /var/www/labstocks/collections |
166 | 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 |
167 | 68670b96 | Florent Chuffart | .. |
168 | 68670b96 | Florent Chuffart | |
169 | f78441a4 | Florent Chuffart | Configure MyLabStocks |
170 | f78441a4 | Florent Chuffart | --------------------- |
171 | 68670b96 | Florent Chuffart | |
172 | 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 |
173 | 949b8a56 | Florent Chuffart | |
174 | c880276f | Florent Chuffart | In this script you have to update the following constants: |
175 | 949b8a56 | Florent Chuffart | |
176 | 949b8a56 | Florent Chuffart | - SERVEUR |
177 | 949b8a56 | Florent Chuffart | - NOM |
178 | 949b8a56 | Florent Chuffart | - BASE |
179 | 949b8a56 | Florent Chuffart | - PASSE |
180 | 949b8a56 | Florent Chuffart | - LABNAME |
181 | c880276f | Florent Chuffart | |
182 | 68670b96 | Florent Chuffart | |
183 | 68670b96 | Florent Chuffart | .. code:: bash |
184 | 68670b96 | Florent Chuffart | |
185 | c880276f | Florent Chuffart | sudo vi /var/www/labstocks/connect_entry.php |
186 | 68670b96 | Florent Chuffart | .. |
187 | 68670b96 | Florent Chuffart | |
188 | 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: |
189 | 68670b96 | Florent Chuffart | |
190 | 68670b96 | Florent Chuffart | .. code:: bash |
191 | 68670b96 | Florent Chuffart | |
192 | c880276f | Florent Chuffart | sudo php mylabstocks/src/install_db.phpsh |
193 | 68670b96 | Florent Chuffart | .. |
194 | 68670b96 | Florent Chuffart | |
195 | 949b8a56 | Florent Chuffart | Congratulations! Your MyLabStocks instance is now available here: http://your_server/labstocks. |
196 | 68670b96 | Florent Chuffart | |
197 | 949b8a56 | Florent Chuffart | Go to http://your_server/labstocks/wwwblast.php to initialize blast databases. |
198 | 68670b96 | Florent Chuffart | |
199 | 68670b96 | Florent Chuffart | Links |
200 | 68670b96 | Florent Chuffart | ----- |
201 | 68670b96 | Florent Chuffart | |
202 | 68670b96 | Florent Chuffart | `MyLabStocks` home, repository and documentation: http://forge.cbp.ens-lyon.fr/redmine/projects/mylabstocks |
203 | 68670b96 | Florent Chuffart | |
204 | 68670b96 | Florent Chuffart | Gael Yvert lab: http://www.ens-lyon.fr/LBMC/gisv/ |
205 | 68670b96 | Florent Chuffart | |
206 | 68670b96 | Florent Chuffart | |
207 | 68670b96 | Florent Chuffart | |
208 | 68670b96 | Florent Chuffart | |
209 | 68670b96 | Florent Chuffart | |
210 | 68670b96 | Florent Chuffart | Usage |
211 | 68670b96 | Florent Chuffart | ===== |
212 | 68670b96 | Florent Chuffart | |
213 | 68670b96 | Florent Chuffart | Advanced Search |
214 | 68670b96 | Florent Chuffart | --------------- |
215 | 68670b96 | Florent Chuffart | |
216 | c880276f | Florent Chuffart | In the strain section, the form `Search in genotype` filters strains where the |
217 | c880276f | Florent Chuffart | fields `locus1`, `locus2`, `locus3`, `locus4`, `locus5`, `ADE2`, `HIS3`, `LE U2`, |
218 | c880276f | Florent Chuffart | `LYS2`, `MET15`, `TRP1`, `URA3`, `HO_`, `Cytoplasmic_Character` or |
219 | c880276f | Florent Chuffart | `extrachromosomal_plasmid` contain the given expression. This filter is case |
220 | 68670b96 | Florent Chuffart | insensitive. |
221 | 68670b96 | Florent Chuffart | |
222 | 68670b96 | Florent Chuffart | Plasmids Sequences Management |
223 | 68670b96 | Florent Chuffart | ----------------------------- |
224 | 68670b96 | Florent Chuffart | |
225 | c880276f | Florent Chuffart | Even in edit mode, users are not granted permission to directly edit a plasmid |
226 | c880276f | Florent Chuffart | sequence, nor the URL to the plasmid sequence file. If a new sequence must be |
227 | c880276f | Florent Chuffart | entered instead of the current one, users must upload a new sequence file, in |
228 | c880276f | Florent Chuffart | .gb or .gb.gz format. MyLabStocks then automatically reads the file and update |
229 | c880276f | Florent Chuffart | the sequence field and the URL. This ensures consistency between URL, sequence |
230 | 68670b96 | Florent Chuffart | and the file itself. |
231 | 68670b96 | Florent Chuffart | |
232 | 68670b96 | Florent Chuffart | |
233 | 38e8e479 | Florent Chuffart | Reporting Bugs |
234 | 38e8e479 | Florent Chuffart | -------------- |
235 | 38e8e479 | Florent Chuffart | |
236 | 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. |
237 | 38e8e479 | Florent Chuffart | |
238 | 38e8e479 | Florent Chuffart | |
239 | 38e8e479 | Florent Chuffart | |
240 | 47b3bfd6 | Florent Chuffart | Backing up the Mysql Database and Stored Files |
241 | 47b3bfd6 | Florent Chuffart | ---------------------------------------------- |
242 | 47b3bfd6 | Florent Chuffart | |
243 | 383292cc | Florent Chuffart | We HIGHLY RECOMMEND THAT YOU REGULARLY BACKUP your MyLabStocks |
244 | 383292cc | Florent Chuffart | database. We provide two levels of backup. The first one dumps only the |
245 | 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 |
246 | 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 |
247 | 383292cc | Florent Chuffart | database NOW!* allow any user to download the requested backups. It |
248 | 383292cc | Florent Chuffart | could be useful for an administrator to integrate it in a robust file |
249 | 383292cc | Florent Chuffart | backup system using, for example, a cron that regularly pull the |
250 | 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. |
251 | 47b3bfd6 | Florent Chuffart | |
252 | 7c18e02a | Florent Chuffart | |
253 | 7c18e02a | Florent Chuffart | |
254 | 38e8e479 | Florent Chuffart | How To Restore System From Backup |
255 | 38e8e479 | Florent Chuffart | --------------------------------- |
256 | 47b3bfd6 | Florent Chuffart | |
257 | 383292cc | Florent Chuffart | On the targeted server, you can restore the database from the last backup |
258 | 383292cc | Florent Chuffart | file ''labstocks_db.sql'' by typing the following command in a |
259 | 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. |
260 | 383292cc | Florent Chuffart | You need to adapt user, password and database names according to your |
261 | 383292cc | Florent Chuffart | settings. |
262 | 383292cc | Florent Chuffart | |
263 | 47b3bfd6 | Florent Chuffart | |
264 | 38e8e479 | Florent Chuffart | .. code:: bash |
265 | 47b3bfd6 | Florent Chuffart | |
266 | c880276f | Florent Chuffart | sudo mysql --user=root --password=root labstocks_db < labstocks_db.sql |
267 | 38e8e479 | Florent Chuffart | .. |
268 | 38e8e479 | Florent Chuffart | |
269 | 38e8e479 | Florent Chuffart | |
270 | 383292cc | Florent Chuffart | To restore the uploaded files, you have to copy backed-up directories |
271 | 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 |
272 | 383292cc | Florent Chuffart | terminal. |
273 | 38e8e479 | Florent Chuffart | |
274 | 38e8e479 | Florent Chuffart | .. code:: bash |
275 | 38e8e479 | Florent Chuffart | |
276 | c880276f | Florent Chuffart | sudo cp -r plasmid_files raw_dirs /var/www/labstocks/. |
277 | 38e8e479 | Florent Chuffart | .. |
278 | 68670b96 | Florent Chuffart | |
279 | 68670b96 | Florent Chuffart | |
280 | 38e8e479 | Florent Chuffart | Extend Database |
281 | 38e8e479 | Florent Chuffart | --------------- |
282 | 68670b96 | Florent Chuffart | |
283 | 383292cc | Florent Chuffart | MyLabstocks is delivered under a free licence. Feel free to modify and |
284 | 383292cc | Florent Chuffart | extend it to meet the needs of your lab. To do that you can |
285 | 383292cc | Florent Chuffart | create new tables using phpMyAdmin |
286 | 383292cc | Florent Chuffart | (http://your_server/phpmyadmin) |
287 | 383292cc | Florent Chuffart | or mysql command line tools (documentation here |
288 | 383292cc | Florent Chuffart | http://dev.mysql.com/doc/refman/5.6/en/mysql.html). |
289 | 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. |
290 | 383292cc | Florent Chuffart | You can learn how to customize the interface by reading the phpMyEdit embedded documentation (http://your_server/labstocks/doc/html/). |
291 | 68670b96 | Florent Chuffart | |
292 | ecebbb6d | Florent Chuffart | Adding New Boxes In The Box Manager |
293 | ecebbb6d | Florent Chuffart | ----------------------------------- |
294 | ecebbb6d | Florent Chuffart | |
295 | 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''. |
296 | 3fb9b24c | Florent Chuffart | |
297 | 3fb9b24c | Florent Chuffart | Modifying The Session Duration |
298 | 3fb9b24c | Florent Chuffart | ------------------------------ |
299 | 3fb9b24c | Florent Chuffart | |
300 | 3fb9b24c | Florent Chuffart | To modify the session duration, edit the connect_entry.php configuration file and modify the SESSION_DURATION default value. |
301 | 3fb9b24c | Florent Chuffart | |
302 | 3fb9b24c | Florent Chuffart | |
303 | ef59ea9d | Florent Chuffart | Extracting the genotypes of multiple strains when preparing a publication |
304 | ef59ea9d | Florent Chuffart | ------------------------------------------------------------------------- |
305 | ef59ea9d | Florent Chuffart | |
306 | ef59ea9d | Florent Chuffart | Log in with superuser priviledges. |
307 | ef59ea9d | Florent Chuffart | Go to the strains tab, click on the 'extract genotypes' link above the table |
308 | ef59ea9d | Florent Chuffart | Enter IDs of strains to be retrieved, separated by blank space or commas. |
309 | 71c3bfe5 | Florent Chuffart | Click on 'extract genotypes' button. |
310 | 71c3bfe5 | Florent Chuffart | |
311 | 71c3bfe5 | Florent Chuffart | |
312 | c880276f | Florent Chuffart | Clearing Existing Values and Start Over |
313 | c880276f | Florent Chuffart | --------------------------------------- |
314 | 71c3bfe5 | Florent Chuffart | |
315 | 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. |