Révision 68670b96

b/doc/Makefile
1
# Makefile for Sphinx documentation
2
#
3

  
4
# You can set these variables from the command line.
5
SPHINXOPTS    =
6
SPHINXBUILD   = sphinx-build-2.7
7
PAPER         =
8
BUILDDIR      = build
9

  
10
SOURCE=.
11

  
12
# Internal variables.
13
PAPEROPT_a4     = -D latex_paper_size=a4
14
PAPEROPT_letter = -D latex_paper_size=letter
15
ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCE)
16
# the i18n builder cannot share the environment and doctrees with the others
17
I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
18

  
19
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
20

  
21
help:
22
	@echo "Please use \`make <target>' where <target> is one of"
23
	@echo "  html       to make standalone HTML files"
24
	@echo "  dirhtml    to make HTML files named index.html in directories"
25
	@echo "  singlehtml to make a single large HTML file"
26
	@echo "  pickle     to make pickle files"
27
	@echo "  json       to make JSON files"
28
	@echo "  htmlhelp   to make HTML files and a HTML help project"
29
	@echo "  qthelp     to make HTML files and a qthelp project"
30
	@echo "  devhelp    to make HTML files and a Devhelp project"
31
	@echo "  epub       to make an epub"
32
	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
33
	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
34
	@echo "  text       to make text files"
35
	@echo "  man        to make manual pages"
36
	@echo "  texinfo    to make Texinfo files"
37
	@echo "  info       to make Texinfo files and run them through makeinfo"
38
	@echo "  gettext    to make PO message catalogs"
39
	@echo "  changes    to make an overview of all changed/added/deprecated items"
40
	@echo "  linkcheck  to check all external links for integrity"
41
	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
42

  
43
clean:
44
	-rm -rf $(BUILDDIR)/*
45

  
46
html:
47
	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
48
	@echo
49
	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
50

  
51
dirhtml:
52
	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
53
	@echo
54
	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
55

  
56
singlehtml:
57
	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
58
	@echo
59
	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
60

  
61
pickle:
62
	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
63
	@echo
64
	@echo "Build finished; now you can process the pickle files."
65

  
66
json:
67
	$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
68
	@echo
69
	@echo "Build finished; now you can process the JSON files."
70

  
71
htmlhelp:
72
	$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
73
	@echo
74
	@echo "Build finished; now you can run HTML Help Workshop with the" \
75
	      ".hhp project file in $(BUILDDIR)/htmlhelp."
76

  
77
qthelp:
78
	$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
79
	@echo
80
	@echo "Build finished; now you can run "qcollectiongenerator" with the" \
81
	      ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
82
	@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/seqtl.qhcp"
83
	@echo "To view the help file:"
84
	@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/seqtl.qhc"
85

  
86
devhelp:
87
	$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
88
	@echo
89
	@echo "Build finished."
90
	@echo "To view the help file:"
91
	@echo "# mkdir -p $$HOME/.local/share/devhelp/seqtl"
92
	@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/seqtl"
93
	@echo "# devhelp"
94

  
95
epub:
96
	$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
97
	@echo
98
	@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
99

  
100
latex:
101
	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
102
	@echo
103
	@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
104
	@echo "Run \`make' in that directory to run these through (pdf)latex" \
105
	      "(use \`make latexpdf' here to do that automatically)."
106

  
107
latexpdf:
108
	$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
109
	@echo "Running LaTeX files through pdflatex..."
110
	$(MAKE) -C $(BUILDDIR)/latex all-pdf
111
	@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
112

  
113
text:
114
	$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
115
	@echo
116
	@echo "Build finished. The text files are in $(BUILDDIR)/text."
117

  
118
man:
119
	$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
120
	@echo
121
	@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
122

  
123
texinfo:
124
	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
125
	@echo
126
	@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
127
	@echo "Run \`make' in that directory to run these through makeinfo" \
128
	      "(use \`make info' here to do that automatically)."
129

  
130
info:
131
	$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
132
	@echo "Running Texinfo files through makeinfo..."
133
	make -C $(BUILDDIR)/texinfo info
134
	@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
135

  
136
gettext:
137
	$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
138
	@echo
139
	@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
140

  
141
changes:
142
	$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
143
	@echo
144
	@echo "The overview file is in $(BUILDDIR)/changes."
145

  
146
linkcheck:
147
	$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
148
	@echo
149
	@echo "Link check complete; look for any errors in the above output " \
150
	      "or in $(BUILDDIR)/linkcheck/output.txt."
151

  
152
doctest:
153
	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
154
	@echo "Testing of doctests in the sources finished, look at the " \
155
	      "results in $(BUILDDIR)/doctest/output.txt."
b/doc/conf.py
1
# -*- coding: utf-8 -*-
2
#
3
# mylabstocks documentation build configuration file, created by
4
# sphinx-quickstart on Thu Dec 13 16:44:18 2012.
5
#
6
# This file is execfile()d with the current directory set to its containing dir.
7
#
8
# Note that not all possible configuration values are present in this
9
# autogenerated file.
10
#
11
# All configuration values have a default; values that are commented out
12
# serve to show the default.
13

  
14
import sys, os
15

  
16
# If extensions (or modules to document with autodoc) are in another directory,
17
# add these directories to sys.path here. If the directory is relative to the
18
# documentation root, use os.path.abspath to make it absolute, like shown here.
19
#sys.path.insert(0, os.path.abspath('.'))
20
sys.path.insert(0, os.path.abspath('../../src/'))
21

  
22
# -- General configuration -----------------------------------------------------
23

  
24
# If your documentation needs a minimal Sphinx version, state it here.
25
#needs_sphinx = '1.0'
26

  
27
# Add any Sphinx extension module names here, as strings. They can be extensions
28
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
29
# extensions = []
30
extensions = ['sphinx.ext.autodoc']#, 'sphinx.ext.doctest']# , 'sphinx.ext.coverage', 'sphinx.ext.inheritance_diagram']
31

  
32
# Add any paths that contain templates here, relative to this directory.
33
templates_path = ['_templates']
34

  
35
# The suffix of source filenames.
36
source_suffix = '.rst'
37

  
38
# The encoding of source files.
39
#source_encoding = 'utf-8-sig'
40

  
41
# The master toctree document.
42
master_doc = 'index'
43

  
44
# General information about the project.
45
project = u'MyLabStocks'
46
copyright = u' since 2007, Florent CHUFFART, Gael YVERT'
47

  
48
# The version info for the project you're documenting, acts as replacement for
49
# |version| and |release|, also used in various other places throughout the
50
# built documents.
51
#
52
# The short X.Y version.
53
version = '0.1'
54
# The full version, including alpha/beta/rc tags.
55
release = '0.1.0'
56

  
57
# The language for content autogenerated by Sphinx. Refer to documentation
58
# for a list of supported languages.
59
#language = None
60

  
61
# There are two options for replacing |today|: either, you set today to some
62
# non-false value, then it is used:
63
#today = ''
64
# Else, today_fmt is used as the format for a strftime call.
65
#today_fmt = '%B %d, %Y'
66

  
67
# List of patterns, relative to source directory, that match files and
68
# directories to ignore when looking for source files.
69
exclude_patterns = []
70

  
71
# The reST default role (used for this markup: `text`) to use for all documents.
72
#default_role = None
73

  
74
# If true, '()' will be appended to :func: etc. cross-reference text.
75
#add_function_parentheses = True
76

  
77
# If true, the current module name will be prepended to all description
78
# unit titles (such as .. function::).
79
#add_module_names = True
80

  
81
# If true, sectionauthor and moduleauthor directives will be shown in the
82
# output. They are ignored by default.
83
#show_authors = False
84

  
85
# The name of the Pygments (syntax highlighting) style to use.
86
pygments_style = 'sphinx'
87

  
88
# A list of ignored prefixes for module index sorting.
89
#modindex_common_prefix = []
90

  
91

  
92
# -- Options for HTML output ---------------------------------------------------
93

  
94
# The theme to use for HTML and HTML Help pages.  See the documentation for
95
# a list of builtin themes.
96
html_theme = 'default'
97

  
98
# Theme options are theme-specific and customize the look and feel of a theme
99
# further.  For a list of options available for each theme, see the
100
# documentation.
101
#html_theme_options = {}
102

  
103
# Add any paths that contain custom themes here, relative to this directory.
104
#html_theme_path = []
105

  
106
# The name for this set of Sphinx documents.  If None, it defaults to
107
# "<project> v<release> documentation".
108
#html_title = None
109

  
110
# A shorter title for the navigation bar.  Default is the same as html_title.
111
#html_short_title = None
112

  
113
# The name of an image file (relative to this directory) to place at the top
114
# of the sidebar.
115
#html_logo = None
116

  
117
# The name of an image file (within the static path) to use as favicon of the
118
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
119
# pixels large.
120
#html_favicon = None
121

  
122
# Add any paths that contain custom static files (such as style sheets) here,
123
# relative to this directory. They are copied after the builtin static files,
124
# so a file named "default.css" will overwrite the builtin "default.css".
125
html_static_path = ['_static']
126

  
127
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
128
# using the given strftime format.
129
#html_last_updated_fmt = '%b %d, %Y'
130

  
131
# If true, SmartyPants will be used to convert quotes and dashes to
132
# typographically correct entities.
133
#html_use_smartypants = True
134

  
135
# Custom sidebar templates, maps document names to template names.
136
#html_sidebars = {}
137

  
138
# Additional templates that should be rendered to pages, maps page names to
139
# template names.
140
#html_additional_pages = {}
141

  
142
# If false, no module index is generated.
143
#html_domain_indices = True
144

  
145
# If false, no index is generated.
146
#html_use_index = True
147

  
148
# If true, the index is split into individual pages for each letter.
149
#html_split_index = False
150

  
151
# If true, links to the reST sources are added to the pages.
152
#html_show_sourcelink = True
153

  
154
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
155
#html_show_sphinx = True
156

  
157
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
158
#html_show_copyright = True
159

  
160
# If true, an OpenSearch description file will be output, and all pages will
161
# contain a <link> tag referring to it.  The value of this option must be the
162
# base URL from which the finished HTML is served.
163
#html_use_opensearch = ''
164

  
165
# This is the file name suffix for HTML files (e.g. ".xhtml").
166
#html_file_suffix = None
167

  
168
# Output file base name for HTML help builder.
169
htmlhelp_basename = 'mylabstocksdoc'
170

  
171

  
172
# -- Options for LaTeX output --------------------------------------------------
173

  
174
latex_elements = {
175
# The paper size ('letterpaper' or 'a4paper').
176
#'papersize': 'letterpaper',
177

  
178
# The font size ('10pt', '11pt' or '12pt').
179
#'pointsize': '10pt',
180

  
181
# Additional stuff for the LaTeX preamble.
182
#'preamble': '',
183
}
184

  
185
# Grouping the document tree into LaTeX files. List of tuples
186
# (source start file, target name, title, author, documentclass [howto/manual]).
187
latex_documents = [
188
  ('index', 'mylabstocks.tex', u'MyLabStocks Documentation',
189
   u'Florent CHUFFART, Gael YVERT', 'manual'),
190
]
191

  
192
# The name of an image file (relative to this directory) to place at the top of
193
# the title page.
194
#latex_logo = None
195

  
196
# For "manual" documents, if this is true, then toplevel headings are parts,
197
# not chapters.
198
#latex_use_parts = False
199

  
200
# If true, show page references after internal links.
201
#latex_show_pagerefs = False
202

  
203
# If true, show URL addresses after external links.
204
#latex_show_urls = False
205

  
206
# Documents to append as an appendix to all manuals.
207
#latex_appendices = []
208

  
209
# If false, no module index is generated.
210
#latex_domain_indices = True
211

  
212

  
213
# -- Options for manual page output --------------------------------------------
214

  
215
# One entry per manual page. List of tuples
216
# (source start file, name, description, authors, manual section).
217
man_pages = [
218
    ('index', 'MyLabStocks', u'MyLabStocks Documentation',
219
     [u'Florent CHUFFART, Gael YVERT'], 1)
220
]
221

  
222
# If true, show URL addresses after external links.
223
#man_show_urls = False
224

  
225

  
226
# -- Options for Texinfo output ------------------------------------------------
227

  
228
# Grouping the document tree into Texinfo files. List of tuples
229
# (source start file, target name, title, author,
230
#  dir menu entry, description, category)
231
texinfo_documents = [
232
  ('index', 'MyLabStocks', u'MyLabStocks Documentation',
233
   u'Florent CHUFFART, Gael YVERT', 'MyLabStocks', 'One line description of project.',
234
   'Miscellaneous'),
235
]
236

  
237
# Documents to append as an appendix to all manuals.
238
#texinfo_appendices = []
239

  
240
# If false, no module index is generated.
241
#texinfo_domain_indices = True
242

  
243
# How to display URL addresses: 'footnote', 'no', or 'inline'.
244
#texinfo_show_urls = 'footnote'
b/doc/index.rst
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

  

Formats disponibles : Unified diff