Statistiques
| Branche: | Révision :

root / doc / index.rst @ 68670b96

Historique | Voir | Annoter | Télécharger (8,97 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 68670b96 Florent Chuffart
`MyLabStocks` is a web application allowing to easily store, share and retrieve 
7 68670b96 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 68670b96 Florent Chuffart
Copyright CNRS 2012-2013                                                 
13 68670b96 Florent Chuffart
                                                                          
14 68670b96 Florent Chuffart
- Florent CHUFFART                                                         
15 68670b96 Florent Chuffart
- Gael YVERT                                                               
16 68670b96 Florent Chuffart
                                                                          
17 68670b96 Florent Chuffart
This software is a computer program which purpose is to perform quantitative analysis of epigenetic marks at single nucleosome resolution.     
18 68670b96 Florent Chuffart
                                                                          
19 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.
20 68670b96 Florent Chuffart
21 68670b96 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".                                                
22 68670b96 Florent Chuffart
                                                                          
23 68670b96 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.                                                               
24 68670b96 Florent Chuffart
                                                                          
25 68670b96 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 68670b96 Florent Chuffart
                                                                          
27 68670b96 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 68670b96 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 68670b96 Florent Chuffart
.. code:: bash
46 68670b96 Florent Chuffart
47 68670b96 Florent Chuffart
  sudo apt-get install git mysql-server apache2 php5 phpmyadmin php5-curl csh blast2 tomcat6 ant openjdk-6-jdk 
48 68670b96 Florent Chuffart
..
49 68670b96 Florent Chuffart
50 68670b96 Florent Chuffart
51 68670b96 Florent Chuffart
Get MyLabStocks Sources
52 68670b96 Florent Chuffart
------------------------
53 68670b96 Florent Chuffart
54 68670b96 Florent Chuffart
.. code:: bash
55 68670b96 Florent Chuffart
56 68670b96 Florent Chuffart
  git clone http://forge.cbp.ens-lyon.fr/git/mylabstocks
57 68670b96 Florent Chuffart
..
58 68670b96 Florent Chuffart
59 68670b96 Florent Chuffart
60 68670b96 Florent Chuffart
Install wwwBlast
61 68670b96 Florent Chuffart
----------------
62 68670b96 Florent Chuffart
63 68670b96 Florent Chuffart
MyLabStocks is distributed with wwwblast working on a x64 architecture.
64 68670b96 Florent Chuffart
For other architectures refer to the NCBI repositories
65 68670b96 Florent Chuffart
http://mirrors.vbi.vt.edu/mirrors/ftp.ncbi.nih.gov/blast/executables/release/LATEST
66 68670b96 Florent Chuffart
67 68670b96 Florent Chuffart
68 68670b96 Florent Chuffart
.. code:: bash
69 68670b96 Florent Chuffart
70 68670b96 Florent Chuffart
  cd mylabstocks/opts/
71 68670b96 Florent Chuffart
  tar xfvz wwwblast-2.2.26-x64-linux.tar.gz
72 68670b96 Florent Chuffart
  sudo cp -r blast /var/www/.
73 68670b96 Florent Chuffart
  sudo chown www-data:www-data /var/www/blast/TmpGifs /var/www/blast/*.log /var/www/blast/db/
74 68670b96 Florent Chuffart
  echo "<Directory /var/www/blast/>" > /tmp/blast.conf 
75 68670b96 Florent Chuffart
  echo "   Options +ExecCGI" >> /tmp/blast.conf 
76 68670b96 Florent Chuffart
  echo "</Directory>" >> /tmp/blast.conf 
77 68670b96 Florent Chuffart
  echo "AddHandler cgi-script .cgi" >> /tmp/blast.conf 
78 68670b96 Florent Chuffart
  sudo cp /tmp/blast.conf /etc/apache2/conf.d/blast.conf 
79 68670b96 Florent Chuffart
  rm /tmp/blast.conf
80 68670b96 Florent Chuffart
  sudo /etc/init.d/apache2 restart
81 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
82 68670b96 Florent Chuffart
  sudo sed -i 's/<option VALUE.*test_aa_db//g' /var/www/blast/blast.html
83 68670b96 Florent Chuffart
  cat /var/www/blast/blast.rc > /tmp/blast.rc
84 68670b96 Florent Chuffart
  echo "blastn oligostock_db" >> /tmp/blast.rc
85 68670b96 Florent Chuffart
  echo "tblastn oligostock_db" >> /tmp/blast.rc
86 68670b96 Florent Chuffart
  echo "tblastx oligostock_db" >> /tmp/blast.rc
87 68670b96 Florent Chuffart
  echo "blastn plasmidstock_db" >> /tmp/blast.rc
88 68670b96 Florent Chuffart
  echo "tblastn plasmidstock_db" >> /tmp/blast.rc
89 68670b96 Florent Chuffart
  echo "tblastx plasmidstock_db" >> /tmp/blast.rc
90 68670b96 Florent Chuffart
  echo "blastn plfeatstock_db" >> /tmp/blast.rc
91 68670b96 Florent Chuffart
  echo "tblastn plfeatstock_db" >> /tmp/blast.rc
92 68670b96 Florent Chuffart
  echo "tblastx plfeatstock_db" >> /tmp/blast.rc
93 68670b96 Florent Chuffart
  sudo cp /tmp/blast.rc /var/www/blast/blast.rc
94 68670b96 Florent Chuffart
  rm /tmp/blast.rc
95 68670b96 Florent Chuffart
  cd ../..
96 68670b96 Florent Chuffart
..
97 68670b96 Florent Chuffart
98 68670b96 Florent Chuffart
Install PlasMapper
99 68670b96 Florent Chuffart
------------------
100 68670b96 Florent Chuffart
101 68670b96 Florent Chuffart
.. code:: bash
102 68670b96 Florent Chuffart
103 68670b96 Florent Chuffart
  cd mylabstocks/opts/
104 68670b96 Florent Chuffart
  tar xfvz PlasMapper_download.tar.gz
105 68670b96 Florent Chuffart
  cd PlasMapper
106 68670b96 Florent Chuffart
  # modify installdir as /var/lib/tomcat6
107 68670b96 Florent Chuffart
  sed -i 's/\/home\/tomcat/\/var\/lib\/tomcat6/g' build.xml 
108 68670b96 Florent Chuffart
  # modify servletjar as /usr/share/tomcat6/lib/servlet-api.jar
109 68670b96 Florent Chuffart
  sed -i 's/${installdir}\/common\/lib\/servlet-api.jar/\/usr\/share\/tomcat6\/lib\/servlet-api.jar/g' build.xml 
110 68670b96 Florent Chuffart
  # change /home/tomcat for /var/lib/tomcat6
111 68670b96 Florent Chuffart
  sed -i 's/\/home\/tomcat/\/var\/lib\/tomcat6/g' src/ca/ualberta/xdong/plasMapper/annotate/plasMapConfiguration_en_CA.properties
112 68670b96 Florent Chuffart
  # and set blastallDir=/usr/bin/
113 68670b96 Florent Chuffart
  sed -i 's/\/usr\/local\/bin\//\/usr\/bin\//g' src/ca/ualberta/xdong/plasMapper/annotate/plasMapConfiguration_en_CA.properties
114 68670b96 Florent Chuffart
  # Here PlasMapper is ready to be configured
115 68670b96 Florent Chuffart
116 68670b96 Florent Chuffart
  ant clean
117 68670b96 Florent Chuffart
  ant build 
118 68670b96 Florent Chuffart
  sudo ant install 
119 68670b96 Florent Chuffart
  sudo rm -Rf /var/lib/tomcat6/webapps/PlasMapper/tmp
120 68670b96 Florent Chuffart
  sudo ln -s /tmp/tomcat6-tomcat6-tmp/ /var/lib/tomcat6/webapps/PlasMapper/tmp
121 68670b96 Florent Chuffart
  echo '<?xml version="1.0" encoding="UTF-8"?><Context path="/myapp" allowLinking="true"></Context>' > context.xml
122 68670b96 Florent Chuffart
  sudo mv context.xml /var/lib/tomcat6/webapps/PlasMapper/META-INF/
123 68670b96 Florent Chuffart
  sudo /etc/init.d/tomcat6 restart
124 68670b96 Florent Chuffart
  # Here PlasMapper works on your server at the url http://myserver:8080/PlasMapper
125 68670b96 Florent Chuffart
126 68670b96 Florent Chuffart
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/*.*
127 68670b96 Florent Chuffart
  sudo chmod 664 /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/*.*
128 68670b96 Florent Chuffart
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/
129 68670b96 Florent Chuffart
  sudo chmod 775 /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/
130 68670b96 Florent Chuffart
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/html/feature.html
131 68670b96 Florent Chuffart
  sudo chmod 664 /var/lib/tomcat6/webapps/PlasMapper/html/feature.html
132 68670b96 Florent Chuffart
  # Here plasmids feature could be blasted by MyLabStock
133 68670b96 Florent Chuffart
134 68670b96 Florent Chuffart
  cd ../../..
135 68670b96 Florent Chuffart
..
136 68670b96 Florent Chuffart
137 68670b96 Florent Chuffart
138 68670b96 Florent Chuffart
Install MyLabStocks
139 68670b96 Florent Chuffart
-------------------
140 68670b96 Florent Chuffart
141 68670b96 Florent Chuffart
.. code:: bash
142 68670b96 Florent Chuffart
143 68670b96 Florent Chuffart
  sudo cp -r mylabstocks/src /var/www/labstocks
144 68670b96 Florent Chuffart
  sudo rm /var/www/labstocks/
145 68670b96 Florent Chuffart
  sudo touch /var/www/labstocks/formatdb.log
146 68670b96 Florent Chuffart
  sudo chmod 440 /var/www/labstocks/connect_entry.php 
147 68670b96 Florent Chuffart
  sudo mkdir /var/www/labstocks/plasmid_files 
148 68670b96 Florent Chuffart
  sudo mkdir /var/www/labstocks/raw_dirs
149 68670b96 Florent Chuffart
  sudo mkdir /var/www/labstocks/collections
150 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
151 68670b96 Florent Chuffart
..
152 68670b96 Florent Chuffart
153 68670b96 Florent Chuffart
Configurate MyLabStocks
154 68670b96 Florent Chuffart
-----------------------
155 68670b96 Florent Chuffart
156 68670b96 Florent Chuffart
Now you have to update connexion params in /var/www/labstocks/connect_entry.php
157 68670b96 Florent Chuffart
158 68670b96 Florent Chuffart
.. code:: bash
159 68670b96 Florent Chuffart
160 68670b96 Florent Chuffart
  sudo vi /var/www/labstocks/connect_entry.php 
161 68670b96 Florent Chuffart
..
162 68670b96 Florent Chuffart
163 68670b96 Florent Chuffart
finally run the following script to  define passwords and instantiate db.
164 68670b96 Florent Chuffart
165 68670b96 Florent Chuffart
.. code:: bash
166 68670b96 Florent Chuffart
167 68670b96 Florent Chuffart
  php mylabstocks/src/install_db.phpsh 
168 68670b96 Florent Chuffart
..
169 68670b96 Florent Chuffart
170 68670b96 Florent Chuffart
Congratulation your LabStocks instance is available on the url http://your_server/labstocks.
171 68670b96 Florent Chuffart
172 68670b96 Florent Chuffart
173 68670b96 Florent Chuffart
Links
174 68670b96 Florent Chuffart
-----
175 68670b96 Florent Chuffart
176 68670b96 Florent Chuffart
`MyLabStocks` home, repository and documentation: http://forge.cbp.ens-lyon.fr/redmine/projects/mylabstocks
177 68670b96 Florent Chuffart
178 68670b96 Florent Chuffart
Gael Yvert lab: http://www.ens-lyon.fr/LBMC/gisv/
179 68670b96 Florent Chuffart
180 68670b96 Florent Chuffart
181 68670b96 Florent Chuffart
182 68670b96 Florent Chuffart
183 68670b96 Florent Chuffart
184 68670b96 Florent Chuffart
Usage
185 68670b96 Florent Chuffart
=====
186 68670b96 Florent Chuffart
187 68670b96 Florent Chuffart
Advanced Search
188 68670b96 Florent Chuffart
---------------
189 68670b96 Florent Chuffart
190 68670b96 Florent Chuffart
In the strain section, the form `Search in genotype` filters strains where the 
191 68670b96 Florent Chuffart
fields `locus1`, `locus2`, `locus3`, `locus4`, `locus5`, `ADE2`, `HIS3`, `LEU2`, 
192 68670b96 Florent Chuffart
`LYS2`, `MET15`, `TRP1`, `URA3`, `HO_`, `Cytoplasmic_Character` or 
193 68670b96 Florent Chuffart
`extrachromosomal_plasmid` contain the given expression. This filter is case 
194 68670b96 Florent Chuffart
insensitive.
195 68670b96 Florent Chuffart
196 68670b96 Florent Chuffart
Plasmids Sequences Management
197 68670b96 Florent Chuffart
-----------------------------
198 68670b96 Florent Chuffart
199 68670b96 Florent Chuffart
Even in edit mode, users are not granted permission to directly edit a plasmid 
200 68670b96 Florent Chuffart
sequence, nor the URL to the plasmid sequence file. If a new sequence must be 
201 68670b96 Florent Chuffart
entered instead of the current one, users must upload a new sequence file, in 
202 68670b96 Florent Chuffart
.gb or .gb.gz format. MyLabStocks then automatically reads the file and update 
203 68670b96 Florent Chuffart
the sequence field and the URL. This ensures consistency between URL, sequence 
204 68670b96 Florent Chuffart
and the file itself.
205 68670b96 Florent Chuffart
206 68670b96 Florent Chuffart
207 68670b96 Florent Chuffart
208 68670b96 Florent Chuffart
209 68670b96 Florent Chuffart