Skip to content

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
jonls committed Oct 16, 2015
2 parents 389f938 + 838c443 commit 9c6263b
Show file tree
Hide file tree
Showing 20 changed files with 2,927 additions and 45 deletions.
16 changes: 16 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@

v0.15 (2015-10-16)
------------------

- Add support for reading flux bounds and objectives from SBML files that are
using the FBC extension.
- Add a tutorial to the documentation at <https://psamm.rtfd.org/>.
- Add command `tableexport` to export various parts of the model as a TSV file.
- Add command `excelexport` to export all parts of the model as an Excel file.
- Allow various parameters that take a reaction as an argument to also be able
to take a list of reactions from a file, using the `@` prefix. For example,
given a file `r.txt` with each reaction ID on a separate line, the reactions
can be excluded from the `masscheck` command by specifying
`--exclude @r.txt`.
- Allow reactions to be excluded from the `formulacheck` and `chargecheck`
commands.

v0.14 (2015-10-05)
------------------

Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ PSAMM metabolic modeling tools
.. image:: https://badge.fury.io/py/psamm.svg
:alt: Package Status
:target: https://pypi.python.org/pypi/psamm
.. image:: https://coveralls.io/repos/zhanglab/psamm/badge.svg?branch=develop&service=github
:alt: Test Coverage Status
:target: https://coveralls.io/github/zhanglab/psamm?branch=develop

PSAMM is an open source software that is designed for the curation and analysis
of metabolic models. It supports model version tracking, model annotation, data
Expand Down
Binary file added docs/Pathway.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/Robustness_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 35 additions & 20 deletions docs/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,46 +208,61 @@ module. The mass consistency check can be run using
This will first try to assign a positive mass to as many compounds as possible.
This will indicate whether or not the model is consistent but in case it is
*not* consistent it is often hard to figure out how to fix the model from this
list of masses.
list of masses::

Afterwards a different check is run where the residual mass is minimized for
all reactions in the model. This will often give a better idea of which
reactions need fixing. For example the following output might be shown::
[...]
INFO: Checking stoichiometric consistency of reactions...
C0223 1.0 Dihydrobiopterin
C9779 1.0 2-hydroxy-Octadec-ACP(n-C18:1)
EC0065 0.0 H+[e]
C0065 0.0 H+
INFO: Consistent compounds: 832/834

In this case the `H+` compounds were inconsistent because they were not
assigned a non-zero mass. A different check can be run where the residual mass
is minimized for all reactions in the model. This will often give a better idea
of which reactions need fixing::

.. code-block:: shell
$ psamm-model masscheck --type=reaction
The following output might be generated from this command::

[...]
INFO:psamm.command:Is consistent? False
INFO:psamm.command:Reaction consistency
INFO: Checking stoichiometric consistency of reactions...
IR01815 7.0 (6) |H+[c]| + |Uroporphyrinogen III[c]| [...]
IR00307 1.0 |H+[c]| + |L-Arginine[c]| => [...]
IR00146 0.5 |UTP[c]| + |D-Glucose 1-phosphate[c]| => [...]
[...]
INFO: Consistent reactions: 946/959

The first part of the output (not shown above) is the mass assigment for every
compound. This can be used to identify the problematic compounds since those
will have a mass assignment of zero.

The next part is the list of reactions and reaction mass residuals. In the
example above the three reactions that are shown have been assigned a non-zero
residual. This means that there is an issue either with this reaction itself or
a closely related one. In this example the first two reactions were missing a
number of `H+` compounds for the reaction to balance.
This is a list of reactions with non-zero residuals and their residual values.
In the example above the three reactions that are shown have been assigned a
non-zero residual (7, 1 and 0.5, respectively). This means that there is an
issue either with this reaction itself or a closely related one. In this
example the first two reactions were missing a number of `H+` compounds for
the reaction to balance.

Now the mass check can be run again marking the reactions above as checked::

$ psamm-model masscheck --checked IR01815 --checked IR00307 \
--checked IR00146
$ psamm-model masscheck --type=reaction --checked IR01815 \
--checked IR00307 --checked IR00146
[...]
IR00149 0.5 |ATP[c]| + |D-Glucose[c]| => [...]

The output has now changed and the remaining residual has been shifted to
another reaction. This iterative procedure can be continued until all
stoichiometric inconsistencies have been corrected. In this example the
`IR00149` reaction also had a missing `H+` for the reaction to balance. After
fixing this error the model is consistent::
fixing this error the model is consistent and the `H+` compounds can be
assigned a non-zero mass::

$ psamm-model masscheck
[...]
INFO:psamm.command:Consistent compounds: 834/834
INFO:psamm.command:Is consistent? True
EC0065 1.0 H+[e]
C0065 1.0 H+
INFO: Consistent compounds: 834/834

Formula consistency check (``formulacheck``)
--------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
'sphinx.ext.coverage',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'sphinx.ext.mathjax',
'doilinks'
]

Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Contents:
:maxdepth: 2

overview
tutorial
install
file_format
commands
Expand All @@ -16,7 +17,6 @@ Contents:
api
references


Indices and tables
==================

Expand Down
Loading

0 comments on commit 9c6263b

Please sign in to comment.