OpenMS
FLASHIdaBridgeFunctions.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2022.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Kyowon Jeong $
32 // $Authors: Kyowon Jeong $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
39 
46 namespace OpenMS
47 {
49  extern "C" OPENMS_DLLAPI FLASHIda *CreateFLASHIda(char *arg);
50 
52  extern "C" OPENMS_DLLAPI void DisposeFLASHIda(FLASHIda *object);
53 
55  extern "C" OPENMS_DLLAPI int GetPeakGroupSize(FLASHIda *object,
56  double *mzs,
57  double *ints,
58  int length,
59  double rt_min,
60  int ms_level,
61  char *name,
62  char *cv);
63 
65  extern "C" OPENMS_DLLAPI void GetIsolationWindows(FLASHIda *object,
66  double *wstart,
67  double *wend,
68  double *qscores,
69  int *charges,
70  int *min_charges,
71  int *max_charges,
72  double *mono_masses,
73  double *chare_cos,
74  double *charge_snrs,
75  double *iso_cos,
76  double *snrs, double *charge_scores,
77  double *ppm_errors,
78  double *precursor_intensities,
79  double *peakgroup_intensities,
80  int *ids);
81 
82  // bridges removeFromExclusionList in FLASHida class to C# FLASHIda side
83  extern "C" OPENMS_DLLAPI void RemoveFromExclusionList(FLASHIda *object, int id);
84 
85  extern "C" OPENMS_DLLAPI int GetAllPeakGroupSize(FLASHIda *pObject);
86 
87  extern "C" OPENMS_DLLAPI void GetAllMonoisotopicMasses(FLASHIda *pObject, double *masses, int length);
88 
89  extern "C" OPENMS_DLLAPI double GetRepresentativeMass(FLASHIda *pObject);
90 
93 }
Averagine patterns pre-calculated for speed up. Other variables are also calculated for fast cosine c...
Definition: FLASHHelperClasses.h:35
FLASHIda class for real time deconvolution This class contains functions to perform deconvolution (by...
Definition: FLASHIda.h:52
FLASHIda C++ to C# (or vice versa) bridge functions The functions here are called in C# to invoke fun...
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
FLASHIda * CreateFLASHIda(char *arg)
create FLASHIda class in C# FLASHIda side. Invoke FLASHIda constructor
void DisposeFLASHIda(FLASHIda *object)
delete FLASHIda class in C# FLASHIda side. Invoke FLASHIda destructor
int GetAllPeakGroupSize(FLASHIda *pObject)
static FLASHHelperClasses::PrecalculatedAveragine avg
keeps the precalculated averagine to calculate average masses from monoisotopic masses
Definition: FLASHIdaBridgeFunctions.h:92
void GetAllMonoisotopicMasses(FLASHIda *pObject, double *masses, int length)
void GetIsolationWindows(FLASHIda *object, double *wstart, double *wend, double *qscores, int *charges, int *min_charges, int *max_charges, double *mono_masses, double *chare_cos, double *charge_snrs, double *iso_cos, double *snrs, double *charge_scores, double *ppm_errors, double *precursor_intensities, double *peakgroup_intensities, int *ids)
bridges getIsolationWindows in FLASHIda class to C# FLASHIda side
void RemoveFromExclusionList(FLASHIda *object, int id)
double GetRepresentativeMass(FLASHIda *pObject)
int GetPeakGroupSize(FLASHIda *object, double *mzs, double *ints, int length, double rt_min, int ms_level, char *name, char *cv)
bridges getPeakGroups in FLASHIda class to C# FLASHIda side