File: classOpenMS_1_1MsInspectFile.html

package info (click to toggle)
openms 1.11.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 436,688 kB
  • ctags: 150,907
  • sloc: cpp: 387,126; xml: 71,547; python: 7,764; ansic: 2,626; php: 2,499; sql: 737; ruby: 342; sh: 325; makefile: 128
file content (203 lines) | stat: -rw-r--r-- 10,823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<HTML>
<HEAD>
<TITLE>MsInspectFile Class Reference</TITLE>
<LINK HREF="doxygen.css" REL="stylesheet" TYPE="text/css">
<LINK HREF="style_ini.css" REL="stylesheet" TYPE="text/css">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<A href="index.html">Home</A> &nbsp;&middot;
<A href="classes.html">Classes</A> &nbsp;&middot;
<A href="annotated.html">Annotated Classes</A> &nbsp;&middot;
<A href="modules.html">Modules</A> &nbsp;&middot;
<A href="functions_func.html">Members</A> &nbsp;&middot;
<A href="namespaces.html">Namespaces</A> &nbsp;&middot;
<A href="pages.html">Related Pages</A>
<HR style="height:1px; border:none; border-top:1px solid #c0c0c0;">
<!-- Generated by Doxygen 1.8.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceOpenMS.html">OpenMS</a></li><li class="navelem"><a class="el" href="classOpenMS_1_1MsInspectFile.html">MsInspectFile</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classOpenMS_1_1MsInspectFile-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">MsInspectFile Class Reference<div class="ingroups"><a class="el" href="group__FileIO.html">File IO</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classOpenMS_1_1File.html" title="Basic file handling operations. ">File</a> adapter for MsInspect files.  
 <a href="classOpenMS_1_1MsInspectFile.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="MsInspectFile_8h_source.html">OpenMS/FORMAT/MsInspectFile.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac7aec82f88d79ba9240a0c17ae1e1ead"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1MsInspectFile.html#ac7aec82f88d79ba9240a0c17ae1e1ead">MsInspectFile</a> ()</td></tr>
<tr class="memdesc:ac7aec82f88d79ba9240a0c17ae1e1ead"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#ac7aec82f88d79ba9240a0c17ae1e1ead">More...</a><br/></td></tr>
<tr class="separator:ac7aec82f88d79ba9240a0c17ae1e1ead"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ca29a9d8938fdb89e833634a3b7c2f6"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1MsInspectFile.html#a3ca29a9d8938fdb89e833634a3b7c2f6">~MsInspectFile</a> ()</td></tr>
<tr class="memdesc:a3ca29a9d8938fdb89e833634a3b7c2f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="#a3ca29a9d8938fdb89e833634a3b7c2f6">More...</a><br/></td></tr>
<tr class="separator:a3ca29a9d8938fdb89e833634a3b7c2f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4e73ca60efa3ca29e203f46b5187c6c"><td class="memTemplParams" colspan="2">template&lt;typename FeatureMapType &gt; </td></tr>
<tr class="memitem:aa4e73ca60efa3ca29e203f46b5187c6c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1MsInspectFile.html#aa4e73ca60efa3ca29e203f46b5187c6c">load</a> (const <a class="el" href="classOpenMS_1_1String.html">String</a> &amp;filename, FeatureMapType &amp;feature_map)</td></tr>
<tr class="memdesc:aa4e73ca60efa3ca29e203f46b5187c6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads a MsInspect file into a featureXML.  <a href="#aa4e73ca60efa3ca29e203f46b5187c6c">More...</a><br/></td></tr>
<tr class="separator:aa4e73ca60efa3ca29e203f46b5187c6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad1400476baaa9e6ff74301f6395c5e8"><td class="memTemplParams" colspan="2">template&lt;typename SpectrumType &gt; </td></tr>
<tr class="memitem:aad1400476baaa9e6ff74301f6395c5e8"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classOpenMS_1_1MsInspectFile.html#aad1400476baaa9e6ff74301f6395c5e8">store</a> (const <a class="el" href="classOpenMS_1_1String.html">String</a> &amp;filename, const SpectrumType &amp;spectrum) const </td></tr>
<tr class="memdesc:aad1400476baaa9e6ff74301f6395c5e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores a featureXML as a MsInspect file.  <a href="#aad1400476baaa9e6ff74301f6395c5e8">More...</a><br/></td></tr>
<tr class="separator:aad1400476baaa9e6ff74301f6395c5e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classOpenMS_1_1File.html" title="Basic file handling operations. ">File</a> adapter for MsInspect files. </p>
<p>Lines with "#" are comments and are ignored.</p>
<p>The first non-comment line is the header and contains the column names:<br/>
 scan time mz accurateMZ mass intensity charge chargeStates kl background median peaks scanFirst scanLast scanCount totalIntensity sumSquaresDist description</p>
<p>Every subsequent line is a feature. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac7aec82f88d79ba9240a0c17ae1e1ead"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOpenMS_1_1MsInspectFile.html">MsInspectFile</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>

</div>
</div>
<a class="anchor" id="a3ca29a9d8938fdb89e833634a3b7c2f6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ~<a class="el" href="classOpenMS_1_1MsInspectFile.html">MsInspectFile</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa4e73ca60efa3ca29e203f46b5187c6c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void load </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classOpenMS_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FeatureMapType &amp;&#160;</td>
          <td class="paramname"><em>feature_map</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Loads a MsInspect file into a featureXML. </p>
<p>The content of the file is stored in <code>features</code>.</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classOpenMS_1_1Exception_1_1FileNotFound.html" title="File not found exception. ">Exception::FileNotFound</a></td><td>is thrown if the file could not be opened </td></tr>
    <tr><td class="paramname"><a class="el" href="classOpenMS_1_1Exception_1_1ParseError.html" title="Parse Error exception. ">Exception::ParseError</a></td><td>is thrown if an error occurs during parsing </td></tr>
  </table>
  </dd>
</dl>

<p>References <a class="el" href="classOpenMS_1_1BaseFeature.html#ab595724fe9b9eb5d37011f07d90b9e0b">BaseFeature::setCharge()</a>, <a class="el" href="classOpenMS_1_1Peak2D.html#ab875c2479c6cd2a0189e4684bfa4f97d">Peak2D::setIntensity()</a>, <a class="el" href="classOpenMS_1_1MetaInfoInterface.html#a135a7e818125b31198a8a65d9ac7a3d1">MetaInfoInterface::setMetaValue()</a>, <a class="el" href="classOpenMS_1_1Peak2D.html#a2694f0775c46d9076355cb85d9815425">Peak2D::setMZ()</a>, <a class="el" href="classOpenMS_1_1Feature.html#aeba0cded976431f70fbea5499218ce18">Feature::setOverallQuality()</a>, <a class="el" href="classOpenMS_1_1Peak2D.html#a396c5ebcac2e70f9b9a478bb2456985b">Peak2D::setRT()</a>, and <a class="el" href="classOpenMS_1_1String.html#ae580d960e12c7f0ebc5c95931cf39ad5">String::split()</a>.</p>

<p>Referenced by <a class="el" href="classOpenMS_1_1FileHandler.html#a5bc5a0452855c2d30d125261783b55cf">FileHandler::loadFeatures()</a>.</p>

</div>
</div>
<a class="anchor" id="aad1400476baaa9e6ff74301f6395c5e8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void store </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classOpenMS_1_1String.html">String</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const SpectrumType &amp;&#160;</td>
          <td class="paramname"><em>spectrum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Stores a featureXML as a MsInspect file. </p>
<p>NOT IMPLEMENTED</p>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="classOpenMS_1_1Exception_1_1UnableToCreateFile.html" title="Unable to create file exception. ">Exception::UnableToCreateFile</a></td><td>is thrown if the file could not be created </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<HR style="height:1px; border:none; border-top:1px solid #c0c0c0;">
<TABLE width="100%" border="0">
<TR>
<TD><font color="#c0c0c0">OpenMS / TOPP release 1.11.1</font></TD>
<TD align="right"><font color="#c0c0c0">Documentation generated on Thu Nov 14 2013 11:19:31 using doxygen 1.8.5</font></TD>
</TR>
</TABLE>
</BODY>
</HTML>