OpenMS
Loading...
Searching...
No Matches
OPXLSpectrumProcessingAlgorithms.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Eugen Netz $
6// $Authors: Eugen Netz $
7// --------------------------------------------------------------------------
8
9#pragma once
10
16#include <numeric>
17#include <vector>
18
19namespace OpenMS
20{
37 {
38 public:
39
56 static PeakSpectrum mergeAnnotatedSpectra(PeakSpectrum & first_spectrum, PeakSpectrum & second_spectrum);
57
96 static PeakMap preprocessSpectra(PeakMap& exp, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm, Size peptide_min_size, Int min_precursor_charge, Int max_precursor_charge, bool deisotope, bool labeled);
97
131 std::vector<std::pair<Size, Size> > & alignment, double fragment_mass_tolerance,
132 bool fragment_mass_tolerance_unit_ppm,
133 const PeakSpectrum& theo_spectrum,
134 const PeakSpectrum& exp_spectrum,
135 const DataArrays::IntegerDataArray& theo_charges,
136 const DataArrays::IntegerDataArray& exp_charges,
137 DataArrays::FloatDataArray& ppm_error_array,
138 double intensity_cutoff = 0.0);
139
162 std::vector<std::pair<Size, Size> > & alignment,
163 double fragment_mass_tolerance,
164 bool fragment_mass_tolerance_unit_ppm,
165 const std::vector< SimpleTSGXLMS::SimplePeak >& theo_spectrum,
166 const PeakSpectrum& exp_spectrum,
167 const DataArrays::IntegerDataArray& exp_charges);
168 };
169
170}
Float data array class.
Definition DataArrays.h:25
Integer data array class.
Definition DataArrays.h:75
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
Spectrum preprocessing and theoretical-vs-experimental peak alignment helpers used by the OpenPepXL c...
Definition OPXLSpectrumProcessingAlgorithms.h:37
static PeakMap preprocessSpectra(PeakMap &exp, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm, Size peptide_min_size, Int min_precursor_charge, Int max_precursor_charge, bool deisotope, bool labeled)
Preprocess an MSExperiment for cross-link search and return the surviving MS2 spectra.
static PeakSpectrum mergeAnnotatedSpectra(PeakSpectrum &first_spectrum, PeakSpectrum &second_spectrum)
Merge two annotated spectra into one peak list, preserving paired DataArrays.
static void getSpectrumAlignmentFastCharge(std::vector< std::pair< Size, Size > > &alignment, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm, const PeakSpectrum &theo_spectrum, const PeakSpectrum &exp_spectrum, const DataArrays::IntegerDataArray &theo_charges, const DataArrays::IntegerDataArray &exp_charges, DataArrays::FloatDataArray &ppm_error_array, double intensity_cutoff=0.0)
Align a theoretical and an experimental fragment spectrum using charge annotations and an intensity-r...
static void getSpectrumAlignmentSimple(std::vector< std::pair< Size, Size > > &alignment, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm, const std::vector< SimpleTSGXLMS::SimplePeak > &theo_spectrum, const PeakSpectrum &exp_spectrum, const DataArrays::IntegerDataArray &exp_charges)
Align a SimplePeak-based theoretical spectrum to an experimental spectrum using charge annotations on...
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19