libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
xtandemhyperscore.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/psm/xtandem/xtandemhyperscore.h
3
* \date 19/3/2015
4
* \author Olivier Langella
5
* \brief computation of the X!Tandem hyperscore
6
*/
7
8
/*******************************************************************************
9
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
10
*
11
* This file is part of the PAPPSOms++ library.
12
*
13
* PAPPSOms++ is free software: you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation, either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* PAPPSOms++ is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
22
*
23
* You should have received a copy of the GNU General Public License
24
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
25
*
26
* Contributors:
27
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
28
*implementation
29
******************************************************************************/
30
31
32
#pragma once
33
34
35
#include "
pappsomspp/core/massspectrum/massspectrum.h
"
36
#include "
../../mzrange.h
"
37
#include "
../../peptide/peptidefragmention.h
"
38
39
namespace
pappso
40
{
41
42
class
PMSPP_LIB_DECL
XtandemHyperscore
43
{
44
public
:
45
using
AaFactorMap
= std::map<char, pappso_double>;
46
XtandemHyperscore
(
const
MassSpectrum
&spectrum,
47
pappso::PeptideSp
peptideSp,
48
unsigned
int
parent_charge,
49
PrecisionPtr
precision,
50
std::list<Enums::PeptideIon> ion_list,
51
bool
refine_spectrum_synthesis);
52
XtandemHyperscore
(
const
XtandemHyperscore
&other);
53
~XtandemHyperscore
();
54
55
pappso_double
getHyperscore
()
const
;
56
unsigned
int
getMatchedIons
(
Enums::PeptideIon
ion_type)
const
;
57
58
private
:
59
bool
_refine_spectrum_synthesis
;
60
61
unsigned
int
62
getXtandemPredictedIonIntensityFactor
(
const
QString &sequence,
63
PeptideDirection
ion_direction,
64
unsigned
int
ion_size)
const
;
65
66
pappso_double
_proto_hyperscore
;
67
std::map<Enums::PeptideIon, unsigned int>
_ion_count
;
68
69
static
AaFactorMap
_aa_ion_factor_y
;
70
static
AaFactorMap
_aa_ion_factor_b
;
71
};
72
73
74
}
// namespace pappso
pappso::MassSpectrum
Class to represent a mass spectrum.
Definition
massspectrum.h:70
pappso::XtandemHyperscore::getMatchedIons
unsigned int getMatchedIons(Enums::PeptideIon ion_type) const
Definition
xtandemhyperscore.cpp:153
pappso::XtandemHyperscore::_refine_spectrum_synthesis
bool _refine_spectrum_synthesis
Definition
xtandemhyperscore.h:59
pappso::XtandemHyperscore::getXtandemPredictedIonIntensityFactor
unsigned int getXtandemPredictedIonIntensityFactor(const QString &sequence, PeptideDirection ion_direction, unsigned int ion_size) const
Definition
xtandemhyperscore.cpp:193
pappso::XtandemHyperscore::getHyperscore
pappso_double getHyperscore() const
Definition
xtandemhyperscore.cpp:251
pappso::XtandemHyperscore::_aa_ion_factor_y
static AaFactorMap _aa_ion_factor_y
Definition
xtandemhyperscore.h:69
pappso::XtandemHyperscore::_ion_count
std::map< Enums::PeptideIon, unsigned int > _ion_count
Definition
xtandemhyperscore.h:67
pappso::XtandemHyperscore::_proto_hyperscore
pappso_double _proto_hyperscore
Definition
xtandemhyperscore.h:66
pappso::XtandemHyperscore::XtandemHyperscore
XtandemHyperscore(const MassSpectrum &spectrum, pappso::PeptideSp peptideSp, unsigned int parent_charge, PrecisionPtr precision, std::list< Enums::PeptideIon > ion_list, bool refine_spectrum_synthesis)
Definition
xtandemhyperscore.cpp:51
pappso::XtandemHyperscore::AaFactorMap
std::map< char, pappso_double > AaFactorMap
Definition
xtandemhyperscore.h:45
pappso::XtandemHyperscore::_aa_ion_factor_b
static AaFactorMap _aa_ion_factor_b
Definition
xtandemhyperscore.h:70
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
massspectrum.h
mzrange.h
pappso::Enums::PeptideIon
PeptideIon
Enums::PeptideIon enum defines all types of ions (Nter or Cter).
Definition
types.h:272
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::PeptideSp
std::shared_ptr< const Peptide > PeptideSp
Definition
aamodification.h:48
pappso::PeptideDirection
PeptideDirection
Definition
peptide.h:47
pappso::pappso_double
double pappso_double
A type definition for doubles.
Definition
types.h:60
pappso::PrecisionPtr
const PrecisionBase * PrecisionPtr
Definition
precision.h:122
peptidefragmention.h
pappsomspp
core
psm
xtandem
xtandemhyperscore.h
Generated on
for libpappsomspp by
1.17.0