Statistiques
| Branche: | Révision :

root / doc / index.rst @ 68670b96

Historique | Voir | Annoter | Télécharger (8,97 ko)

1
*****************************************
2
Readme / Documentation for `MyLabStocks`
3
*****************************************
4

    
5

    
6
`MyLabStocks` is a web application allowing to easily store, share and retrieve 
7
information about molecular biology materials stored in a laboratory. 
8

    
9
License
10
=======
11

    
12
Copyright CNRS 2012-2013                                                 
13
                                                                          
14
- Florent CHUFFART                                                         
15
- Gael YVERT                                                               
16
                                                                          
17
This software is a computer program which purpose is to perform quantitative analysis of epigenetic marks at single nucleosome resolution.     
18
                                                                          
19
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

    
21
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
                                                                          
23
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
                                                                          
25
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
                                                                          
27
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

    
29
Installation Instructions
30
=========================
31

    
32
This installation has been fully tested on:
33
  -  Debian 7.2.0 amd64 netinst [1], running on virtual machine using Oracle VM VirtualBox [2] for macosx (dev)
34
  -  Ubuntu Server 12.04.3 LTSUbuntu server LTS [3], running on physical machine (prod)
35
  
36
[1] http://cdimage.debian.org/debian-cd/7.2.0/amd64/iso-cd/debian-7.2.0-amd64-netinst.iso
37

    
38
[2] https://www.virtualbox.org
39

    
40
[3] http://www.ubuntu.com/download/server
41

    
42
Prerequisites
43
-------------
44

    
45
.. code:: bash
46

    
47
  sudo apt-get install git mysql-server apache2 php5 phpmyadmin php5-curl csh blast2 tomcat6 ant openjdk-6-jdk 
48
..
49

    
50

    
51
Get MyLabStocks Sources
52
------------------------
53

    
54
.. code:: bash
55

    
56
  git clone http://forge.cbp.ens-lyon.fr/git/mylabstocks
57
..
58

    
59

    
60
Install wwwBlast
61
----------------
62

    
63
MyLabStocks is distributed with wwwblast working on a x64 architecture.
64
For other architectures refer to the NCBI repositories
65
http://mirrors.vbi.vt.edu/mirrors/ftp.ncbi.nih.gov/blast/executables/release/LATEST
66

    
67

    
68
.. code:: bash
69

    
70
  cd mylabstocks/opts/
71
  tar xfvz wwwblast-2.2.26-x64-linux.tar.gz
72
  sudo cp -r blast /var/www/.
73
  sudo chown www-data:www-data /var/www/blast/TmpGifs /var/www/blast/*.log /var/www/blast/db/
74
  echo "<Directory /var/www/blast/>" > /tmp/blast.conf 
75
  echo "   Options +ExecCGI" >> /tmp/blast.conf 
76
  echo "</Directory>" >> /tmp/blast.conf 
77
  echo "AddHandler cgi-script .cgi" >> /tmp/blast.conf 
78
  sudo cp /tmp/blast.conf /etc/apache2/conf.d/blast.conf 
79
  rm /tmp/blast.conf
80
  sudo /etc/init.d/apache2 restart
81
  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
  sudo sed -i 's/<option VALUE.*test_aa_db//g' /var/www/blast/blast.html
83
  cat /var/www/blast/blast.rc > /tmp/blast.rc
84
  echo "blastn oligostock_db" >> /tmp/blast.rc
85
  echo "tblastn oligostock_db" >> /tmp/blast.rc
86
  echo "tblastx oligostock_db" >> /tmp/blast.rc
87
  echo "blastn plasmidstock_db" >> /tmp/blast.rc
88
  echo "tblastn plasmidstock_db" >> /tmp/blast.rc
89
  echo "tblastx plasmidstock_db" >> /tmp/blast.rc
90
  echo "blastn plfeatstock_db" >> /tmp/blast.rc
91
  echo "tblastn plfeatstock_db" >> /tmp/blast.rc
92
  echo "tblastx plfeatstock_db" >> /tmp/blast.rc
93
  sudo cp /tmp/blast.rc /var/www/blast/blast.rc
94
  rm /tmp/blast.rc
95
  cd ../..
96
..
97

    
98
Install PlasMapper
99
------------------
100

    
101
.. code:: bash
102

    
103
  cd mylabstocks/opts/
104
  tar xfvz PlasMapper_download.tar.gz
105
  cd PlasMapper
106
  # modify installdir as /var/lib/tomcat6
107
  sed -i 's/\/home\/tomcat/\/var\/lib\/tomcat6/g' build.xml 
108
  # modify servletjar as /usr/share/tomcat6/lib/servlet-api.jar
109
  sed -i 's/${installdir}\/common\/lib\/servlet-api.jar/\/usr\/share\/tomcat6\/lib\/servlet-api.jar/g' build.xml 
110
  # change /home/tomcat for /var/lib/tomcat6
111
  sed -i 's/\/home\/tomcat/\/var\/lib\/tomcat6/g' src/ca/ualberta/xdong/plasMapper/annotate/plasMapConfiguration_en_CA.properties
112
  # and set blastallDir=/usr/bin/
113
  sed -i 's/\/usr\/local\/bin\//\/usr\/bin\//g' src/ca/ualberta/xdong/plasMapper/annotate/plasMapConfiguration_en_CA.properties
114
  # Here PlasMapper is ready to be configured
115

    
116
  ant clean
117
  ant build 
118
  sudo ant install 
119
  sudo rm -Rf /var/lib/tomcat6/webapps/PlasMapper/tmp
120
  sudo ln -s /tmp/tomcat6-tomcat6-tmp/ /var/lib/tomcat6/webapps/PlasMapper/tmp
121
  echo '<?xml version="1.0" encoding="UTF-8"?><Context path="/myapp" allowLinking="true"></Context>' > context.xml
122
  sudo mv context.xml /var/lib/tomcat6/webapps/PlasMapper/META-INF/
123
  sudo /etc/init.d/tomcat6 restart
124
  # Here PlasMapper works on your server at the url http://myserver:8080/PlasMapper
125

    
126
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/*.*
127
  sudo chmod 664 /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/*.*
128
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/
129
  sudo chmod 775 /var/lib/tomcat6/webapps/PlasMapper/dataBase/db_vectorFeature/
130
  sudo chown root:www-data /var/lib/tomcat6/webapps/PlasMapper/html/feature.html
131
  sudo chmod 664 /var/lib/tomcat6/webapps/PlasMapper/html/feature.html
132
  # Here plasmids feature could be blasted by MyLabStock
133

    
134
  cd ../../..
135
..
136

    
137

    
138
Install MyLabStocks
139
-------------------
140

    
141
.. code:: bash
142

    
143
  sudo cp -r mylabstocks/src /var/www/labstocks
144
  sudo rm /var/www/labstocks/
145
  sudo touch /var/www/labstocks/formatdb.log
146
  sudo chmod 440 /var/www/labstocks/connect_entry.php 
147
  sudo mkdir /var/www/labstocks/plasmid_files 
148
  sudo mkdir /var/www/labstocks/raw_dirs
149
  sudo mkdir /var/www/labstocks/collections
150
  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
..
152

    
153
Configurate MyLabStocks
154
-----------------------
155

    
156
Now you have to update connexion params in /var/www/labstocks/connect_entry.php
157

    
158
.. code:: bash
159

    
160
  sudo vi /var/www/labstocks/connect_entry.php 
161
..
162

    
163
finally run the following script to  define passwords and instantiate db.
164

    
165
.. code:: bash
166

    
167
  php mylabstocks/src/install_db.phpsh 
168
..
169

    
170
Congratulation your LabStocks instance is available on the url http://your_server/labstocks.
171

    
172

    
173
Links
174
-----
175

    
176
`MyLabStocks` home, repository and documentation: http://forge.cbp.ens-lyon.fr/redmine/projects/mylabstocks
177

    
178
Gael Yvert lab: http://www.ens-lyon.fr/LBMC/gisv/
179

    
180

    
181

    
182

    
183

    
184
Usage
185
=====
186

    
187
Advanced Search
188
---------------
189

    
190
In the strain section, the form `Search in genotype` filters strains where the 
191
fields `locus1`, `locus2`, `locus3`, `locus4`, `locus5`, `ADE2`, `HIS3`, `LEU2`, 
192
`LYS2`, `MET15`, `TRP1`, `URA3`, `HO_`, `Cytoplasmic_Character` or 
193
`extrachromosomal_plasmid` contain the given expression. This filter is case 
194
insensitive.
195

    
196
Plasmids Sequences Management
197
-----------------------------
198

    
199
Even in edit mode, users are not granted permission to directly edit a plasmid 
200
sequence, nor the URL to the plasmid sequence file. If a new sequence must be 
201
entered instead of the current one, users must upload a new sequence file, in 
202
.gb or .gb.gz format. MyLabStocks then automatically reads the file and update 
203
the sequence field and the URL. This ensures consistency between URL, sequence 
204
and the file itself.
205

    
206

    
207

    
208

    
209

    
210