OpenMS
3.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
MetaboTargetedTargetDecoy.h
Go to the documentation of this file.
1
// Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2
// SPDX-License-Identifier: BSD-3-Clause
3
//
4
// --------------------------------------------------------------------------
5
// $Maintainer: Oliver Alka $
6
// $Authors: Oliver Alka $
7
// --------------------------------------------------------------------------
8
9
#pragma once
10
11
#include <
OpenMS/KERNEL/StandardTypes.h
>
12
#include <
OpenMS/ANALYSIS/TARGETED/TargetedExperiment.h
>
13
14
15
namespace
OpenMS
16
{
17
23
class
OPENMS_DLLAPI
MetaboTargetedTargetDecoy
24
{
25
public
:
30
class
MetaboTargetDecoyMassMapping
31
{
32
public
:
33
34
String
identifier
;
35
String
target_compound_ref
;
36
String
decoy_compound_ref
;
37
std::vector<double>
target_product_masses
;
38
std::vector<double>
decoy_product_masses
;
39
};
40
47
static
std::vector<MetaboTargetDecoyMassMapping>
constructTargetDecoyMassMapping
(
const
TargetedExperiment
& t_exp);
48
57
static
void
resolveOverlappingTargetDecoyMassesByIndividualMassShift
(
TargetedExperiment
& t_exp, std::vector<MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping>& mappings,
const
double
& mass_to_add);
58
67
static
void
generateMissingDecoysByMassShift
(
TargetedExperiment
& t_exp, std::vector<MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping>& mappings,
const
double
& mass_to_add);
68
69
protected
:
75
static
std::map<String, std::vector<OpenMS::ReactionMonitoringTransition> >
constructTransitionsMap_
(
const
TargetedExperiment
& t_exp);
76
};
77
78
}
// namespace OpenMS
StandardTypes.h
TargetedExperiment.h
OpenMS::MetaboTargetedTargetDecoy
Resolve overlapping fragments and missing decoys for experimental specific decoy generation in target...
Definition:
MetaboTargetedTargetDecoy.h:24
OpenMS::MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping::target_compound_ref
String target_compound_ref
> unique identifier (e.g. m_id)
Definition:
MetaboTargetedTargetDecoy.h:35
OpenMS::MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping::target_product_masses
std::vector< double > target_product_masses
> identifier which allows to reference back to the decoy (e.g. decoy_transitions_id)
Definition:
MetaboTargetedTargetDecoy.h:37
OpenMS::MetaboTargetedTargetDecoy::constructTransitionsMap_
static std::map< String, std::vector< OpenMS::ReactionMonitoringTransition > > constructTransitionsMap_(const TargetedExperiment &t_exp)
Generate a TransitionMap based on Compound_Ref and ReactionMonitoringTransitions.
OpenMS::MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping::decoy_compound_ref
String decoy_compound_ref
> identifier which allows to reference back to the target (e.g. target_transitions_id)
Definition:
MetaboTargetedTargetDecoy.h:36
OpenMS::MetaboTargetedTargetDecoy::generateMissingDecoysByMassShift
static void generateMissingDecoysByMassShift(TargetedExperiment &t_exp, std::vector< MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping > &mappings, const double &mass_to_add)
Generate a decoy for targets where fragmentation tree re-rooting was not possible,...
OpenMS::MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping::decoy_product_masses
std::vector< double > decoy_product_masses
> masses of target transitions
Definition:
MetaboTargetedTargetDecoy.h:38
OpenMS::MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping::identifier
String identifier
Definition:
MetaboTargetedTargetDecoy.h:34
OpenMS::MetaboTargetedTargetDecoy::resolveOverlappingTargetDecoyMassesByIndividualMassShift
static void resolveOverlappingTargetDecoyMassesByIndividualMassShift(TargetedExperiment &t_exp, std::vector< MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping > &mappings, const double &mass_to_add)
Resolves overlapping target and decoy transition masses by adding a specifiable mass (e....
OpenMS::MetaboTargetedTargetDecoy::constructTargetDecoyMassMapping
static std::vector< MetaboTargetDecoyMassMapping > constructTargetDecoyMassMapping(const TargetedExperiment &t_exp)
Constructs a mass mapping of targets and decoys using the unique m_id identifier.
OpenMS::MetaboTargetedTargetDecoy::MetaboTargetDecoyMassMapping
MetaboTargetDecoyMassMapping introduces a mapping of target and decoy masses and their respective com...
Definition:
MetaboTargetedTargetDecoy.h:31
OpenMS::String
A more convenient string class.
Definition:
String.h:34
OpenMS::TargetedExperiment
A description of a targeted experiment containing precursor and production ions.
Definition:
TargetedExperiment.h:39
OpenMS
Main OpenMS namespace.
Definition:
FeatureDeconvolution.h:22
OpenMS
ANALYSIS
TARGETED
MetaboTargetedTargetDecoy.h
Generated on Wed Oct 18 2023 11:33:42 for OpenMS by
1.9.1