OpenMS
Loading...
Searching...
No Matches
Deisotoper.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: Timo Sachsenberg $
6// $Authors: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
14
15namespace OpenMS
16{
17
18class MSSpectrum;
19
74class OPENMS_DLLAPI Deisotoper
75{
76 public:
77
117 double fragment_tolerance,
118 bool fragment_unit_ppm,
119 int number_of_final_peaks = 5000,
120 int min_charge = 1,
121 int max_charge = 3,
122 bool keep_only_deisotoped = false,
123 unsigned int min_isopeaks = 2,
124 unsigned int max_isopeaks = 10,
125 bool make_single_charged = true,
126 bool annotate_charge = false,
127 bool annotate_iso_peak_count = false,
128 bool add_up_intensity = false);
129
172 double fragment_tolerance,
173 bool fragment_unit_ppm,
174 int min_charge = 1,
175 int max_charge = 3,
176 bool keep_only_deisotoped = false,
177 unsigned int min_isopeaks = 3,
178 unsigned int max_isopeaks = 10,
179 bool make_single_charged = true,
180 bool annotate_charge = false,
181 bool annotate_iso_peak_count = false,
182 bool use_decreasing_model = true,
183 unsigned int start_intensity_check = 2,
184 bool add_up_intensity = false,
185 bool annotate_features = false);
186
199 static bool isToleranceSupported(double fragment_tolerance, bool fragment_unit_ppm);
200};
201
202}
Collapse isotopic clusters in a centroided peak spectrum to one monoisotopic peak per ion.
Definition Deisotoper.h:75
static void deisotopeWithAveragineModel(MSSpectrum &spectrum, double fragment_tolerance, bool fragment_unit_ppm, int number_of_final_peaks=5000, int min_charge=1, int max_charge=3, bool keep_only_deisotoped=false, unsigned int min_isopeaks=2, unsigned int max_isopeaks=10, bool make_single_charged=true, bool annotate_charge=false, bool annotate_iso_peak_count=false, bool add_up_intensity=false)
Detect isotopic clusters in a mass spectrum.
static void deisotopeAndSingleCharge(MSSpectrum &spectrum, double fragment_tolerance, bool fragment_unit_ppm, int min_charge=1, int max_charge=3, bool keep_only_deisotoped=false, unsigned int min_isopeaks=3, unsigned int max_isopeaks=10, bool make_single_charged=true, bool annotate_charge=false, bool annotate_iso_peak_count=false, bool use_decreasing_model=true, unsigned int start_intensity_check=2, bool add_up_intensity=false, bool annotate_features=false)
Detect isotopic clusters in a mass spectrum.
static bool isToleranceSupported(double fragment_tolerance, bool fragment_unit_ppm)
Whether deisotopeAndSingleCharge() supports this fragment tolerance.
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19