-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
91 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
# Spectrum Fundamentals | ||
|
||
Spectrum Fundamentals is a package we use in our rescoring pipeline. It was created to be able to handle spectra from different files. | ||
|
||
## Features | ||
[![PyPI](https://img.shields.io/pypi/v/spectrum_fundamentals.svg)](https://pypi.org/project/spectrum_fundamentals/) | ||
[![Python Version](https://img.shields.io/pypi/pyversions/spectrum_fundamentals)](https://pypi.org/project/spectrum_fundamentals) | ||
[![License](https://img.shields.io/github/license/wilhelm-lab/spectrum_fundamentals)](https://opensource.org/licenses/MIT) | ||
[![Read the Docs](https://img.shields.io/readthedocs/spectrum_fundamentals/latest.svg?label=Read%20the%20Docs)](https://spectrum_fundamentals.readthedocs.io/) | ||
[![Build](https://github.com/wilhelm-lab/spectrum_fundamentals/workflows/Build%20oktoberfest%20Package/badge.svg)](https://github.com/wilhelm-lab/spectrum_fundamentals/actions?workflow=Package) | ||
[![Tests](https://github.com/wilhelm-lab/spectrum_fundamentals/workflows/Run%20oktoberfest%20Tests/badge.svg)](https://github.com/wilhelm-lab/spectrum_fundamentals/actions?workflow=Tests) | ||
[![Codecov](https://codecov.io/gh/wilhelm-lab/spectrum_fundamentals/branch/main/graph/badge.svg)](https://codecov.io/gh/wilhelm-lab/spectrum_fundamentals) | ||
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit) | ||
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
|
||
- Annotate Spectra. | ||
- Modify peptide sequence to follow one of the recommended notations of ProForma. | ||
- Generate features than can be used by percoltor for rescoring (spectral angle, cosine similarity, Pearson's correlation, Spearman's correlation, etc.). | ||
|
||
## Installation | ||
|
||
Install with: | ||
# Spectrum Fundamentals | ||
|
||
``` | ||
pip install git+https://github.com/wilhelm-lab/spectrum_fundamentals | ||
``` | ||
spectrum_fundamentals is a package primarily developed for usage within the rescoring and spectral library generation pipeline oktoberfest (https://github.com/wilhelm-lab/oktoberfest). | ||
|
||
## Usage | ||
It provides the following functionalities: | ||
|
||
### Annotation Pipeline | ||
- conversion between search engine-specific modstrings and the ProForma standard | ||
- calculation of theoretical peptide / ion masses | ||
- annotation of spectra | ||
- spectral similarity calculation with various metrics | ||
|
||
The annotation script can be found in the package in annotation/annotation.py. | ||
## Documentation | ||
|
||
- Install and import the function: | ||
The official documentation can be found at https://spectrum_fundamentals.readthedocs.io | ||
|
||
``` | ||
from spectrum_fundamentals.annotation.annotation import annotate_spectra | ||
``` | ||
## How to cite | ||
|
||
- Apply the function on any given dataframe with peptides meta data, raw intensities and mz: | ||
Please always cite the main publication: | ||
|
||
``` | ||
annotate_spectra(dataframe) | ||
``` | ||
[Oktoberfest] Picciani M, Gabriel W, Giurcoiu VG et al. (2023), _Oktoberfest: Open-source spectral library generation and rescoring pipeline based on Prosit_, [Proteomics](https://doi.org/10.1002/pmic.202300112) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,33 @@ | ||
.. module:: spectrum_io | ||
.. module:: spectrum_fundamentals | ||
|
||
.. automodule:: spectrum_io | ||
.. automodule:: spectrum_fundamentals | ||
:noindex: | ||
|
||
API | ||
=== | ||
|
||
Import SpectrumIO using | ||
Import spectrum_fundamentals using | ||
|
||
.. code-block:: python | ||
import spectrum_io as specio | ||
import spectrum_fundamentals as specfun | ||
File conversions | ||
---------------- | ||
.. module:: spectrum_io.d | ||
Modstring conversions: :code:`convert` | ||
-------------------------------------- | ||
|
||
.. currentmodule:: spectrum_io | ||
|
||
Todo: add functions for bruker d conversions here | ||
Peptide and ion mass / mz calculations: :code:`peptide` | ||
------------------------------------------------------- | ||
|
||
.. autosummary:: | ||
:toctree: api/d | ||
|
||
.. module:: spectrum_io.raw | ||
Annotation of spectra: :code:`annot` | ||
------------------------------------ | ||
|
||
.. currentmodule:: spectrum_io | ||
|
||
Todo: add functions for thermoraw here | ||
|
||
Modstring conversions | ||
--------------------- | ||
|
||
Todo | ||
---- | ||
|
||
other modules | ||
Spectral similarity calculation: :code:`similarity` | ||
--------------------------------------------------- | ||
|
||
|
||
Further utility functions: :code:`utils` | ||
---------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ | |
reference | ||
|
||
.. _github: https://github.com/wilhelm-lab/spectrum_fundamentals | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
.. highlight:: shell | ||
|
||
============ | ||
Installation | ||
============ | ||
|
||
.. include:: ../README.rst | ||
:start-line: 40 | ||
:end-line: 47 | ||
spectrum_fundamentals is listed on the Python Package Index (PyPI) and can be installed with pip. | ||
|
||
.. code-block:: bash | ||
pip install spectrum_fundamentals | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
References | ||
========== | ||
How to cite | ||
=========== | ||
|
||
If you want to cite spectrum_fundamentals in your work, please cite the main Oktoberfest publication following: | ||
|
||
.. [1] Picciani M, Gabriel W, Giurcoiu VG et al. (2023), | ||
*Oktoberfest: Open-source spectral library generation and rescoring pipeline based on Prosit*, | ||
`Proteomics <https://doi.org/10.1002/pmic.202300112>`__. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.