Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for isobaric formula modifications #159

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/source/userguide/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,20 @@ preferably provide the formula instead of a mass shift, as the mass shift can al
be calculated from the formula, but not vice-versa, and some feature generators (such as DeepLC)
require the modification formula.

And example of the :py:obj:`modification_mapping` could be:
.. role:: raw-html(raw)
:format: html

Formula modification labels can be defined with the ``Formula:`` prefix, followed by each atom
symbol and its count, denoting which atoms are added or removed by the modification. If no count is
provided, it is assumed to be 1. For example, ``Formula:HO3P`` is equivalent to ``Formula:H1O3P1``.
For isotopes, prefix the atom symbol with the isotope number and place the entire block (isotope
number, atom symbol, and number of atoms) in square brackets. For example, the SILAC 13C(2) 15N(1)
label (`UNIMOD:2088 <https://unimod.org/modifications_view.php?editid1=2088>`_)
would be notated as ``Formula:C-2[13C2]N-1[15N]``, meaning that two C atoms are removed, two
:raw-html:`<sup>13</sup>C` atoms are added, one N atom is removed and one
:raw-html:`<sup>15</sup>N` atom is added.

An example of the :py:obj:`modification_mapping` could be:

.. tab:: JSON

Expand Down
Loading