ProteoWizard
Main Page
Namespaces
Classes
Files
File List
File Members
pwiz
analysis
passive
RegionTIC.hpp
Go to the documentation of this file.
1
//
2
// $Id: RegionTIC.hpp 4136 2012-11-21 21:17:24Z chambm $
3
//
4
//
5
// Original author: Darren Kessner <darren@proteowizard.org>
6
//
7
// Copyright 2008 Spielberg Family Center for Applied Proteomics
8
// Cedars-Sinai Medical Center, Los Angeles, California 90048
9
//
10
// Licensed under the Apache License, Version 2.0 (the "License");
11
// you may not use this file except in compliance with the License.
12
// You may obtain a copy of the License at
13
//
14
// http://www.apache.org/licenses/LICENSE-2.0
15
//
16
// Unless required by applicable law or agreed to in writing, software
17
// distributed under the License is distributed on an "AS IS" BASIS,
18
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
// See the License for the specific language governing permissions and
20
// limitations under the License.
21
//
22
23
24
#ifndef _REGIONTIC_HPP_
25
#define _REGIONTIC_HPP_
26
27
28
#include "
pwiz/utility/misc/Export.hpp
"
29
#include "
MSDataAnalyzer.hpp
"
30
#include "
MSDataCache.hpp
"
31
#include "
RegionAnalyzer.hpp
"
32
#include "
TabularConfig.hpp
"
33
34
35
namespace
pwiz {
36
namespace
analysis {
37
38
39
/// writes data samples from a single rectangular region
40
class
PWIZ_API_DECL
RegionTIC
:
public
MSDataAnalyzer
41
{
42
public
:
43
44
struct
PWIZ_API_DECL
Config
:
TabularConfig
45
{
46
std::pair<double,double>
mzRange
;
47
Config
(
const
std::string& args);
48
};
49
50
RegionTIC
(
const
MSDataCache
& cache,
const
Config
& config);
51
52
/// \name MSDataAnalyzer interface
53
//@{
54
virtual
void
open(
const
DataInfo
& dataInfo);
55
56
virtual
UpdateRequest updateRequested(
const
DataInfo
& dataInfo,
57
const
SpectrumIdentity
& spectrumIdentity)
const
;
58
59
virtual
void
update(
const
DataInfo
& dataInfo,
60
const
Spectrum
& spectrum);
61
62
virtual
void
close(
const
DataInfo
& dataInfo);
63
//@}
64
65
private
:
66
const
MSDataCache
&
cache_
;
67
boost::shared_ptr<RegionAnalyzer>
regionAnalyzer_
;
68
Config
config_
;
69
};
70
71
72
template
<>
73
struct
analyzer_strings
<
RegionTIC
>
74
{
75
static
const
char
*
id
() {
return
"tic"
;}
76
static
const
char
*
description
() {
return
"write total ion counts for an m/z range"
;}
77
static
const
char
*
argsFormat
() {
return
"["
TABULARCONFIG_DELIMITER_OPTIONS_STR
"] [mzLow [mzHigh]]"
;}
78
static
std::vector<std::string>
argsUsage
() {
return
std::vector<std::string>(1,
TABULARCONFIG_DELIMITER_USAGE_STR
);}
79
};
80
81
82
}
// namespace analysis
83
}
// namespace pwiz
84
85
86
#endif // _REGIONTIC_HPP_
87
Generated on Mon Nov 26 2012 18:05:47 for ProteoWizard by
1.8.1.1