Skip to content

Commit 57c4d18

Browse files
authored
Merge pull request #449 from cbielow/fixs
doc enhancements
2 parents 16aa3e8 + 692a537 commit 57c4d18

13 files changed

+245
-240
lines changed

docs/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@ Preparation
88
Install Sphinx (which is a Python package) and some of its modules/plugins.
99
We recommend doing this in a [python venv](https://docs.python.org/3/library/venv.html).
1010

11+
# create it:
1112
python -m venv /path/to/myenv
13+
1214
# activate it, e.g.
15+
16+
# Linux:
1317
source <venv>/bin/activate
18+
19+
# Windows:
20+
c:\path\to\myenv\Scripts\activate.bat
1421

1522
Once the environment is active, you can install all required python packages using
1623

docs/source/community/build_from_source.rst

+6-68
Original file line numberDiff line numberDiff line change
@@ -3,76 +3,14 @@ Build from Source
33

44
To install pyOpenMS from :index:`source`, you will first have to compile OpenMS
55
successfully on your platform of choice (note that for MS Windows you will need
6-
to match your compiler and Python version). Please follow the `official
7-
documentation
8-
<https://abibuilder.cs.uni-tuebingen.de/archive/openms/Documentation/release/latest/html/index.html>`_
9-
in order to compile OpenMS for your platform. Next you will need to install the
10-
following software packages
6+
to match your compiler and Python version). Please follow the
7+
`official OpenMS documentation <https://openms.de/current_doxygen/>`_
8+
in order to compile OpenMS for your platform.
119

12-
On Microsoft Windows: you need the 64 bit C++ compiler from Visual Studio 2015
13-
to compile the newest pyOpenMS for Python 3.5, 3.6 or 3.7. This is important,
14-
else you get a clib that is different than the one used for building the Python
15-
executable, and pyOpenMS will crash on import. The OpenMS wiki has `detailed information
16-
<https://github.com/OpenMS/OpenMS/wiki/Build-pyOpenMS-on-Windows>`_
17-
on building pyOpenMS on Windows.
18-
19-
You can install all necessary Python packages on which pyOpenMS
20-
depends through
21-
22-
.. code-block:: bash
23-
24-
pip install -U setuptools
25-
pip install -U pip
26-
pip install -U autowrap
27-
pip install -U pytest
28-
pip install -U numpy
29-
pip install -U wheel
30-
31-
Depending on your systems setup, it may make sense to do this inside a virtual environment
32-
33-
.. code-block:: bash
34-
35-
virtualenv pyopenms_venv
36-
source pyopenms_venv/bin/activate
37-
38-
Next, we will configure the CMake-based OpenMS build system
39-
to enable the pyOpenMS target with the configuration option ``-DPYOPENMS=ON``.
40-
If your are using virtualenv or a specific Python version,
41-
add ``-DPYTHON_EXECUTABLE:FILEPATH=/path/to/python`` to ensure
42-
that the correct Python executable is used. Compiling pyOpenMS can use a lot of
43-
memory and take some time, however you can reduce the memory consumption by
44-
breaking up the compilation into multiple units and compiling in parallel, for
45-
example ``-DPY_NUM_THREADS=2 -DPY_NUM_MODULES=4`` will build 4 modules with 2
46-
threads. You can now configure pyOpenMS (inside your build folder) with:
47-
48-
.. code-block:: bash
49-
50-
cmake -DPYOPENMS=ON
51-
52-
53-
Remember, that you can pass the other options as described above to the first
54-
command by adding ``-DOPTION=VALUE`` statements if you need them.
55-
56-
Now build pyOpenMS (now there should be pyOpenMS specific build targets).
57-
If you are still inside your build folder, you can use "." as the build
58-
folder parameter.
59-
60-
.. code-block:: bash
61-
62-
cmake --build $YOURBUILDFOLDER --target pyopenms --config Release
63-
64-
65-
Afterwards, test that all went well by running the tests:
66-
67-
.. code-block:: bash
68-
69-
ctest -R pyopenms
70-
71-
Which should execute all the tests and return with all tests passing.
10+
See https://github.com/OpenMS/OpenMS/tree/develop/src/pyOpenMS for installation instructions.
7211

7312
Further Questions
7413
*****************
7514

76-
In case the above instructions did not work, please refer to the `Wiki Page
77-
<https://github.com/OpenMS/OpenMS/wiki/pyOpenMS>`_, contact the development
78-
team on github or send an email to the OpenMS mailing list.
15+
In case the above instructions did not work, please contact the development
16+
team on GitHub (https://github.com/OpenMS/OpenMS/issues) or send an email to the OpenMS mailing list.

docs/source/user_guide/background.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,8 @@ Refer to the image below for a diagrammatic representation of the :term:`quadrup
221221

222222
.. image:: img/introduction/quadrupole-analyzer.png
223223

224-
.. raw:: html
224+
.. admonition:: Video
225225

226-
<div class="admonition video">
227-
<p class="admonition-title">Video</p>
228226
For more information on :term:`quadrupole` analyzers, <a href="https://timms.uni-tuebingen.de:/tp/UT_20141028_002_cpm_0001?t=1477.00">view this video</a>.
229227
</div>
230228

docs/source/user_guide/chemistry.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ which produces
315315
Ethanol has 6 hydrogen atoms
316316
317317
318-
Note how in line 5 we were able to make a new molecule by adding existing
318+
Note how in line 3 we were able to make a new molecule by adding existing
319319
molecules (for example by adding two :py:class:`~.EmpiricalFormula` objects). In this
320320
case, we illustrated how to make ethanol by adding a :chem:`CH2` methyl group to an
321321
existing methanol molecule. Note that OpenMS describes sum formulas with the

docs/source/user_guide/digestion.rst

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
Digestion
22
=========
33

4+
In ``top-down proteomics``, whole proteins are measured in the mass spec.
5+
It is a hard problem to know the exact protein sequence, since proteins
6+
can be very large, i.e. have a very long sequence of constituing amino acids.
7+
8+
However, in an orthogonal approach called ``bottom-up proteomics``,
9+
it is usually more beneficial to first cut proteins into smaller
10+
chunks at defined positions by using enzymatic digestion. The resulting peptides
11+
are lighter in mass, have less charge, and their sequence can be readily determined
12+
using MS/MS in many cases. In a subsequent step, one needs to infer which proteins
13+
were present in the sample, given a set of peptide sequences - a process called protein inference.
14+
The usual enzyme of choice for bottom-up proteomics is ``Trypsin`` (sometimes in combination with Lys-C).
15+
16+
We will now learn how to do digestion of protein sequences in-silico, so you can predict which
17+
peptides you can expect to observe in the data and even generate theoretical spectra for them.
18+
419
Proteolytic Digestion with Trypsin
520
**********************************
621

@@ -24,7 +39,7 @@ OpenMS has classes for proteolytic digestion which can be used as follows:
2439
print(result[4].toString())
2540
len(result) # 82 peptides
2641
27-
Very short peptides or even single amino acid digestion products are often discarded as they usually contain little information (e.g., can't be used to identify proteins).
42+
Very short peptides or even single amino acid digestion products are often discarded as they usually contain little information (e.g., are shared by many proteins making them useless to identify specific proteins or will not be detected in a real mass spectrum, since their peptide mass is below the usual minimal recorded mass).
2843
We now only generate digestion products with a length of :math:`7` to :math:`40`.
2944

3045
.. code-block:: python
@@ -35,7 +50,7 @@ We now only generate digestion products with a length of :math:`7` to :math:`40`
3550
for s in result:
3651
print(s.toString())
3752
38-
Enzymatic digestion is often not perfect and sometimes enzymes miss cutting a peptide.
53+
Enzymatic digestion is often not perfect and sometimes enzymes miss cutting position (aka cleavage site), resulting in some larger peptides. These are a sequence of two or even more consecutive peptides within the protein sequence.
3954
We now allow up to two missed cleavages.
4055

4156
.. code-block:: python
@@ -51,6 +66,7 @@ We now allow up to two missed cleavages.
5166
Proteolytic Digestion with Lys-C
5267
********************************
5368

69+
In the previous example we used Trypsin as our enzyme of choice.
5470
We can of course also use different enzymes, these are defined in the ``Enzymes.xml``
5571
file and can be accessed using the :py:class:`~.EnzymesDB` object
5672

0 commit comments

Comments
 (0)