Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ The MS³PIP Python application can perform the following tasks:
- ``predict-batch``: Predict fragmentation spectra for a batch of peptides.
- ``predict-library``: Predict a spectral library from protein FASTA file.
- ``correlate``: Compare predicted and observed intensities and optionally compute correlations.
- ``correlate-preloaded``: Compare predicted and observed intensities for PSMs with preloaded
spectra (Python API only).
- ``correlate-single``: Compare predicted and observed intensities for a single peptide spectrum.
- ``get-training-data``: Extract feature vectors and target intensities from observed spectra for
training.
Expand Down
16 changes: 16 additions & 0 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ For instance:
ms2pip correlate --psm-filetype sage results.sage.tsv spectra.mgf


``correlate-preloaded``
----------------------

Compare predicted and observed intensities for PSMs that already have
:py:class:`ms2rescore_rs.MS2Spectrum` objects attached to their ``spectrum`` attribute. This is
useful when spectra are already loaded in memory, e.g., when using MS²PIP within
`ms2rescore <https://github.com/compomics/ms2rescore/>`_. This mode is only available through the
Python API.

.. code-block:: python

import ms2pip

results = ms2pip.correlate_preloaded(psm_list, compute_correlations=True)


``correlate-single``
--------------------

Expand Down
15 changes: 13 additions & 2 deletions ms2pip/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# isort: skip_file
"""MS2PIP: Accurate and versatile peptide fragmentation spectrum prediction."""

__version__ = "4.1.2"
__version__ = "4.2.0-alpha.0"
__all__ = [
"predict_single",
"predict_batch",
"predict_library",
"correlate",
"correlate_preloaded",
"get_training_data",
"annotate_spectra",
"download_models",
]

from warnings import filterwarnings

Expand All @@ -10,11 +20,12 @@
)


from ms2pip.core import ( # noqa: F401 E402
from ms2pip.core import ( # noqa: E402
predict_single,
predict_batch,
predict_library,
correlate,
correlate_preloaded,
get_training_data,
annotate_spectra,
download_models,
Expand Down
Loading
Loading