fcsparse 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +19 -0
- data/README.md +31 -0
- data/bin/fcsparse +27 -0
- data/doc/FCSParse.html +565 -0
- data/doc/FCSParse/FCSEvent.html +1040 -0
- data/doc/FCSParse/FCSFile.html +994 -0
- data/doc/FCSParse/FCSParam.html +602 -0
- data/doc/_index.html +122 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file_list.html +52 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +122 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +220 -0
- data/doc/top-level-namespace.html +112 -0
- data/fcsparse.gemspec +20 -0
- data/lib/fcsparse.rb +0 -5
- data/lib/fcsparse/version.rb +26 -0
- metadata +46 -41
@@ -0,0 +1,1040 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: FCSParse::FCSEvent
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.2.1
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (F)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../FCSParse.html" title="FCSParse (module)">FCSParse</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">FCSEvent</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: FCSParse::FCSEvent
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">FCSParse::FCSEvent</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/fcsparse/fcsevent.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
|
+
|
105
|
+
<p>Class representing a single FCS-encoded event.</p>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
<p class="tag_title">Author:</p>
|
113
|
+
<ul class="author">
|
114
|
+
|
115
|
+
<li>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<div class='inline'>
|
122
|
+
<p>Colin J. Fuller</p>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
</li>
|
126
|
+
|
127
|
+
</ul>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
<h2>Constant Summary</h2>
|
131
|
+
|
132
|
+
<dl class="constants">
|
133
|
+
|
134
|
+
<dt id="DefaultDelimiter-constant" class="">DefaultDelimiter =
|
135
|
+
<div class="docstring">
|
136
|
+
<div class="discussion">
|
137
|
+
|
138
|
+
<p>default delimiter for printing output</p>
|
139
|
+
|
140
|
+
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
<div class="tags">
|
144
|
+
|
145
|
+
|
146
|
+
</div>
|
147
|
+
</dt>
|
148
|
+
<dd><pre class="code"><span class='string val'>","</span>
|
149
|
+
</pre></dd>
|
150
|
+
|
151
|
+
</dl>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<h2>
|
162
|
+
Class Method Summary
|
163
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
164
|
+
</h2>
|
165
|
+
|
166
|
+
<ul class="summary">
|
167
|
+
|
168
|
+
<li class="public ">
|
169
|
+
<span class="summary_signature">
|
170
|
+
|
171
|
+
<a href="#new_with_data_and_format-class_method" title="new_with_data_and_format (class method)">+ (FCSEvent) <strong>new_with_data_and_format</strong>(event_data_string, event_format_string, parameter_info_hash) </a>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
</span>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<span class="summary_desc"><div class='inline'>
|
186
|
+
<p>Creates a new FCSEvent from the specified information.</p>
|
187
|
+
</div></span>
|
188
|
+
|
189
|
+
</li>
|
190
|
+
|
191
|
+
|
192
|
+
</ul>
|
193
|
+
|
194
|
+
<h2>
|
195
|
+
Instance Method Summary
|
196
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
197
|
+
</h2>
|
198
|
+
|
199
|
+
<ul class="summary">
|
200
|
+
|
201
|
+
<li class="public ">
|
202
|
+
<span class="summary_signature">
|
203
|
+
|
204
|
+
<a href="#%5B%5D-instance_method" title="#[] (instance method)">- (FCSParam) <strong>[]</strong>(parameter_name) </a>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
</span>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
<span class="summary_desc"><div class='inline'>
|
219
|
+
<p>Gets a named parameter associated with the event.</p>
|
220
|
+
</div></span>
|
221
|
+
|
222
|
+
</li>
|
223
|
+
|
224
|
+
|
225
|
+
<li class="public ">
|
226
|
+
<span class="summary_signature">
|
227
|
+
|
228
|
+
<a href="#%5B%5D%3D-instance_method" title="#[]= (instance method)">- (Object) <strong>[]=</strong>(parameter_name, value) </a>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
</span>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
<span class="summary_desc"><div class='inline'>
|
243
|
+
<p>Sets a named parameter associated with the event.</p>
|
244
|
+
</div></span>
|
245
|
+
|
246
|
+
</li>
|
247
|
+
|
248
|
+
|
249
|
+
<li class="public ">
|
250
|
+
<span class="summary_signature">
|
251
|
+
|
252
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (FCSEvent) <strong>initialize</strong> </a>
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
</span>
|
257
|
+
|
258
|
+
|
259
|
+
<span class="note title constructor">constructor</span>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
<span class="summary_desc"><div class='inline'>
|
269
|
+
<p>A new instance of FCSEvent.</p>
|
270
|
+
</div></span>
|
271
|
+
|
272
|
+
</li>
|
273
|
+
|
274
|
+
|
275
|
+
<li class="public ">
|
276
|
+
<span class="summary_signature">
|
277
|
+
|
278
|
+
<a href="#names_to_s_delim-instance_method" title="#names_to_s_delim (instance method)">- (String) <strong>names_to_s_delim</strong>(delimiter) </a>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
</span>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
<span class="summary_desc"><div class='inline'>
|
293
|
+
<p>Gets the names of the parameters associated with this event in alphabetical
|
294
|
+
order as a string, delimited by the supplied delimiter.</p>
|
295
|
+
</div></span>
|
296
|
+
|
297
|
+
</li>
|
298
|
+
|
299
|
+
|
300
|
+
<li class="public ">
|
301
|
+
<span class="summary_signature">
|
302
|
+
|
303
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">- (String) <strong>to_s</strong> </a>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</span>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
<span class="summary_desc"><div class='inline'>
|
318
|
+
<p>Converts the event to a string representation.</p>
|
319
|
+
</div></span>
|
320
|
+
|
321
|
+
</li>
|
322
|
+
|
323
|
+
|
324
|
+
<li class="public ">
|
325
|
+
<span class="summary_signature">
|
326
|
+
|
327
|
+
<a href="#to_s_delim-instance_method" title="#to_s_delim (instance method)">- (String) <strong>to_s_delim</strong>(delimiter) </a>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
</span>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
<span class="summary_desc"><div class='inline'>
|
342
|
+
<p>Gets the values of the parameters associated with this event ordered
|
343
|
+
alphabetically by the parameter names (i.e. in the same order as when
|
344
|
+
calling <span class='object_link'><a href="#names_to_s_delim-instance_method" title="FCSParse::FCSEvent#names_to_s_delim (method)">#names_to_s_delim</a></span>), delimited by the supplied delimiter.</p>
|
345
|
+
</div></span>
|
346
|
+
|
347
|
+
</li>
|
348
|
+
|
349
|
+
|
350
|
+
</ul>
|
351
|
+
|
352
|
+
|
353
|
+
<div id="constructor_details" class="method_details_list">
|
354
|
+
<h2>Constructor Details</h2>
|
355
|
+
|
356
|
+
<div class="method_details first">
|
357
|
+
<h3 class="signature first" id="initialize-instance_method">
|
358
|
+
|
359
|
+
- (<tt><span class='object_link'><a href="" title="FCSParse::FCSEvent (class)">FCSEvent</a></span></tt>) <strong>initialize</strong>
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
</h3><div class="docstring">
|
366
|
+
<div class="discussion">
|
367
|
+
|
368
|
+
<p>A new instance of FCSEvent</p>
|
369
|
+
|
370
|
+
|
371
|
+
</div>
|
372
|
+
</div>
|
373
|
+
<div class="tags">
|
374
|
+
|
375
|
+
|
376
|
+
</div><table class="source_code">
|
377
|
+
<tr>
|
378
|
+
<td>
|
379
|
+
<pre class="lines">
|
380
|
+
|
381
|
+
|
382
|
+
75
|
383
|
+
76
|
384
|
+
77
|
385
|
+
78
|
386
|
+
79</pre>
|
387
|
+
</td>
|
388
|
+
<td>
|
389
|
+
<pre class="code"><span class="info file"># File 'lib/fcsparse/fcsevent.rb', line 75</span>
|
390
|
+
|
391
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span>
|
392
|
+
|
393
|
+
<span class='rubyid_@values ivar id'>@values</span> <span class='assign token'>=</span> <span class='rubyid_Hash constant id'>Hash</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
|
394
|
+
|
395
|
+
<span class='rubyid_end end kw'>end</span>
|
396
|
+
</pre>
|
397
|
+
</td>
|
398
|
+
</tr>
|
399
|
+
</table>
|
400
|
+
</div>
|
401
|
+
|
402
|
+
</div>
|
403
|
+
|
404
|
+
|
405
|
+
<div id="class_method_details" class="method_details_list">
|
406
|
+
<h2>Class Method Details</h2>
|
407
|
+
|
408
|
+
|
409
|
+
<div class="method_details first">
|
410
|
+
<h3 class="signature first" id="new_with_data_and_format-class_method">
|
411
|
+
|
412
|
+
+ (<tt><span class='object_link'><a href="" title="FCSParse::FCSEvent (class)">FCSEvent</a></span></tt>) <strong>new_with_data_and_format</strong>(event_data_string, event_format_string, parameter_info_hash)
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
</h3><div class="docstring">
|
419
|
+
<div class="discussion">
|
420
|
+
|
421
|
+
<p>Creates a new FCSEvent from the specified information.</p>
|
422
|
+
|
423
|
+
|
424
|
+
</div>
|
425
|
+
</div>
|
426
|
+
<div class="tags">
|
427
|
+
<p class="tag_title">Parameters:</p>
|
428
|
+
<ul class="param">
|
429
|
+
|
430
|
+
<li>
|
431
|
+
|
432
|
+
<span class='name'>event_data_string</span>
|
433
|
+
|
434
|
+
|
435
|
+
<span class='type'>(<tt>String</tt>)</span>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
—
|
440
|
+
<div class='inline'>
|
441
|
+
<p>the raw data corresponding to the entire event from the fcs file</p>
|
442
|
+
</div>
|
443
|
+
|
444
|
+
</li>
|
445
|
+
|
446
|
+
<li>
|
447
|
+
|
448
|
+
<span class='name'>event_format_string</span>
|
449
|
+
|
450
|
+
|
451
|
+
<span class='type'>(<tt>String</tt>)</span>
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
—
|
456
|
+
<div class='inline'>
|
457
|
+
<p>a string suitable for use with String#unpack that can decode the raw data.</p>
|
458
|
+
</div>
|
459
|
+
|
460
|
+
</li>
|
461
|
+
|
462
|
+
<li>
|
463
|
+
|
464
|
+
<span class='name'>parameter_info_hash</span>
|
465
|
+
|
466
|
+
|
467
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
—
|
472
|
+
<div class='inline'>
|
473
|
+
<p>a hash containing at minimum the parameters from the text section
|
474
|
+
specifying the names and ranges of the parameters keys should be the
|
475
|
+
parameter names from the fcs file format converted to symbols ($ included),
|
476
|
+
and values should be a string corresponding to the value of the parameter
|
477
|
+
from the fcs file.</p>
|
478
|
+
</div>
|
479
|
+
|
480
|
+
</li>
|
481
|
+
|
482
|
+
</ul>
|
483
|
+
|
484
|
+
<p class="tag_title">Returns:</p>
|
485
|
+
<ul class="return">
|
486
|
+
|
487
|
+
<li>
|
488
|
+
|
489
|
+
|
490
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="FCSParse::FCSEvent (class)">FCSEvent</a></span></tt>)</span>
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
—
|
495
|
+
<div class='inline'>
|
496
|
+
<p>an FCSEvent that has been created by parsing the raw data.</p>
|
497
|
+
</div>
|
498
|
+
|
499
|
+
</li>
|
500
|
+
|
501
|
+
</ul>
|
502
|
+
|
503
|
+
</div><table class="source_code">
|
504
|
+
<tr>
|
505
|
+
<td>
|
506
|
+
<pre class="lines">
|
507
|
+
|
508
|
+
|
509
|
+
96
|
510
|
+
97
|
511
|
+
98
|
512
|
+
99
|
513
|
+
100
|
514
|
+
101
|
515
|
+
102
|
516
|
+
103
|
517
|
+
104
|
518
|
+
105
|
519
|
+
106
|
520
|
+
107
|
521
|
+
108
|
522
|
+
109
|
523
|
+
110
|
524
|
+
111
|
525
|
+
112
|
526
|
+
113
|
527
|
+
114
|
528
|
+
115
|
529
|
+
116
|
530
|
+
117
|
531
|
+
118
|
532
|
+
119
|
533
|
+
120
|
534
|
+
121
|
535
|
+
122
|
536
|
+
123
|
537
|
+
124
|
538
|
+
125
|
539
|
+
126
|
540
|
+
127
|
541
|
+
128
|
542
|
+
129
|
543
|
+
130
|
544
|
+
131
|
545
|
+
132
|
546
|
+
133
|
547
|
+
134
|
548
|
+
135
|
549
|
+
136
|
550
|
+
137
|
551
|
+
138
|
552
|
+
139</pre>
|
553
|
+
</td>
|
554
|
+
<td>
|
555
|
+
<pre class="code"><span class="info file"># File 'lib/fcsparse/fcsevent.rb', line 96</span>
|
556
|
+
|
557
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_new_with_data_and_format identifier id'>new_with_data_and_format</span><span class='lparen token'>(</span><span class='rubyid_event_data_string identifier id'>event_data_string</span><span class='comma token'>,</span> <span class='rubyid_event_format_string identifier id'>event_format_string</span><span class='comma token'>,</span> <span class='rubyid_parameter_info_hash identifier id'>parameter_info_hash</span><span class='rparen token'>)</span>
|
558
|
+
|
559
|
+
<span class='rubyid_data_points identifier id'>data_points</span> <span class='assign token'>=</span> <span class='rubyid_event_data_string identifier id'>event_data_string</span><span class='dot token'>.</span><span class='rubyid_unpack identifier id'>unpack</span><span class='lparen token'>(</span><span class='rubyid_event_format_string identifier id'>event_format_string</span><span class='rparen token'>)</span>
|
560
|
+
|
561
|
+
<span class='rubyid_parameter_names identifier id'>parameter_names</span> <span class='assign token'>=</span> <span class='rubyid_Hash constant id'>Hash</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
|
562
|
+
<span class='rubyid_parameter_limits identifier id'>parameter_limits</span> <span class='assign token'>=</span> <span class='rubyid_Hash constant id'>Hash</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span>
|
563
|
+
|
564
|
+
<span class='rubyid_parameter_info_hash identifier id'>parameter_info_hash</span><span class='dot token'>.</span><span class='rubyid_each_key identifier id'>each_key</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_k identifier id'>k</span><span class='bitor op'>|</span>
|
565
|
+
|
566
|
+
<span class='rubyid_matchobj identifier id'>matchobj</span> <span class='assign token'>=</span> <span class='rubyid_k identifier id'>k</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='rubyid_match identifier id'>match</span><span class='lparen token'>(</span><span class='rubyid_T_ParameterNameKeywordRegex constant id'>T_ParameterNameKeywordRegex</span><span class='rparen token'>)</span>
|
567
|
+
|
568
|
+
|
569
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_matchobj identifier id'>matchobj</span> <span class='rubyid_then then kw'>then</span>
|
570
|
+
|
571
|
+
<span class='rubyid_parameter_names identifier id'>parameter_names</span><span class='lbrack token'>[</span><span class='rubyid_matchobj identifier id'>matchobj</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_parameter_info_hash identifier id'>parameter_info_hash</span><span class='lbrack token'>[</span><span class='rubyid_k identifier id'>k</span><span class='rbrack token'>]</span>
|
572
|
+
|
573
|
+
<span class='rubyid_end end kw'>end</span>
|
574
|
+
|
575
|
+
|
576
|
+
<span class='rubyid_matchobj identifier id'>matchobj</span> <span class='assign token'>=</span> <span class='rubyid_k identifier id'>k</span><span class='dot token'>.</span><span class='rubyid_to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='rubyid_match identifier id'>match</span><span class='lparen token'>(</span><span class='rubyid_T_ParameterRangeKeywordRegex constant id'>T_ParameterRangeKeywordRegex</span><span class='rparen token'>)</span>
|
577
|
+
|
578
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_matchobj identifier id'>matchobj</span> <span class='rubyid_then then kw'>then</span>
|
579
|
+
|
580
|
+
<span class='rubyid_parameter_limits identifier id'>parameter_limits</span><span class='lbrack token'>[</span><span class='rubyid_matchobj identifier id'>matchobj</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_to_i identifier id'>to_i</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_parameter_info_hash identifier id'>parameter_info_hash</span><span class='lbrack token'>[</span><span class='rubyid_k identifier id'>k</span><span class='rbrack token'>]</span>
|
581
|
+
|
582
|
+
<span class='rubyid_end end kw'>end</span>
|
583
|
+
|
584
|
+
<span class='rubyid_end end kw'>end</span>
|
585
|
+
|
586
|
+
<span class='rubyid_ordered_indices identifier id'>ordered_indices</span> <span class='assign token'>=</span> <span class='rubyid_parameter_names identifier id'>parameter_names</span><span class='dot token'>.</span><span class='rubyid_keys identifier id'>keys</span><span class='dot token'>.</span><span class='rubyid_sort identifier id'>sort</span>
|
587
|
+
|
588
|
+
<span class='rubyid_event identifier id'>event</span> <span class='assign token'>=</span> <span class='rubyid_new identifier id'>new</span>
|
589
|
+
|
590
|
+
<span class='rubyid_data_points identifier id'>data_points</span><span class='dot token'>.</span><span class='rubyid_each_with_index identifier id'>each_with_index</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_e identifier id'>e</span><span class='comma token'>,</span> <span class='rubyid_i identifier id'>i</span><span class='bitor op'>|</span>
|
591
|
+
|
592
|
+
<span class='rubyid_param identifier id'>param</span> <span class='assign token'>=</span> <span class='rubyid_FCSParam constant id'>FCSParam</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_parameter_names identifier id'>parameter_names</span><span class='lbrack token'>[</span><span class='rubyid_ordered_indices identifier id'>ordered_indices</span><span class='lbrack token'>[</span><span class='rubyid_i identifier id'>i</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='rubyid_nil nil kw'>nil</span><span class='comma token'>,</span> <span class='rubyid_e identifier id'>e</span><span class='comma token'>,</span> <span class='rubyid_parameter_limits identifier id'>parameter_limits</span><span class='lbrack token'>[</span><span class='rubyid_ordered_indices identifier id'>ordered_indices</span><span class='lbrack token'>[</span><span class='rubyid_i identifier id'>i</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='rparen token'>)</span>
|
593
|
+
|
594
|
+
<span class='rubyid_event identifier id'>event</span><span class='lbrack token'>[</span><span class='rubyid_param identifier id'>param</span><span class='dot token'>.</span><span class='rubyid_name identifier id'>name</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='rubyid_param identifier id'>param</span>
|
595
|
+
|
596
|
+
<span class='rubyid_end end kw'>end</span>
|
597
|
+
|
598
|
+
<span class='rubyid_event identifier id'>event</span>
|
599
|
+
|
600
|
+
<span class='rubyid_end end kw'>end</span>
|
601
|
+
</pre>
|
602
|
+
</td>
|
603
|
+
</tr>
|
604
|
+
</table>
|
605
|
+
</div>
|
606
|
+
|
607
|
+
</div>
|
608
|
+
|
609
|
+
<div id="instance_method_details" class="method_details_list">
|
610
|
+
<h2>Instance Method Details</h2>
|
611
|
+
|
612
|
+
|
613
|
+
<div class="method_details first">
|
614
|
+
<h3 class="signature first" id="[]-instance_method">
|
615
|
+
|
616
|
+
- (<tt><span class='object_link'><a href="FCSParam.html" title="FCSParse::FCSParam (class)">FCSParam</a></span></tt>) <strong>[]</strong>(parameter_name)
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
</h3><div class="docstring">
|
623
|
+
<div class="discussion">
|
624
|
+
|
625
|
+
<p>Gets a named parameter associated with the event.</p>
|
626
|
+
|
627
|
+
|
628
|
+
</div>
|
629
|
+
</div>
|
630
|
+
<div class="tags">
|
631
|
+
<p class="tag_title">Parameters:</p>
|
632
|
+
<ul class="param">
|
633
|
+
|
634
|
+
<li>
|
635
|
+
|
636
|
+
<span class='name'>parameter_name</span>
|
637
|
+
|
638
|
+
|
639
|
+
<span class='type'>(<tt>String</tt>)</span>
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
—
|
644
|
+
<div class='inline'>
|
645
|
+
<p>the name of the parameter to retrieve; this should be exactly the name
|
646
|
+
specified for the parameter in the text section of the fcs file</p>
|
647
|
+
</div>
|
648
|
+
|
649
|
+
</li>
|
650
|
+
|
651
|
+
</ul>
|
652
|
+
|
653
|
+
<p class="tag_title">Returns:</p>
|
654
|
+
<ul class="return">
|
655
|
+
|
656
|
+
<li>
|
657
|
+
|
658
|
+
|
659
|
+
<span class='type'>(<tt><span class='object_link'><a href="FCSParam.html" title="FCSParse::FCSParam (class)">FCSParam</a></span></tt>)</span>
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
—
|
664
|
+
<div class='inline'>
|
665
|
+
<p>an FCSParam object that holds the information about the named parameter.</p>
|
666
|
+
</div>
|
667
|
+
|
668
|
+
</li>
|
669
|
+
|
670
|
+
</ul>
|
671
|
+
|
672
|
+
</div><table class="source_code">
|
673
|
+
<tr>
|
674
|
+
<td>
|
675
|
+
<pre class="lines">
|
676
|
+
|
677
|
+
|
678
|
+
149
|
679
|
+
150
|
680
|
+
151
|
681
|
+
152
|
682
|
+
153</pre>
|
683
|
+
</td>
|
684
|
+
<td>
|
685
|
+
<pre class="code"><span class="info file"># File 'lib/fcsparse/fcsevent.rb', line 149</span>
|
686
|
+
|
687
|
+
<span class='rubyid_def def kw'>def</span> <span class='aref op'>[]</span><span class='lparen token'>(</span><span class='rubyid_parameter_name identifier id'>parameter_name</span><span class='rparen token'>)</span>
|
688
|
+
|
689
|
+
<span class='rubyid_@values ivar id'>@values</span><span class='lbrack token'>[</span><span class='rubyid_parameter_name identifier id'>parameter_name</span><span class='rbrack token'>]</span>
|
690
|
+
|
691
|
+
<span class='rubyid_end end kw'>end</span>
|
692
|
+
</pre>
|
693
|
+
</td>
|
694
|
+
</tr>
|
695
|
+
</table>
|
696
|
+
</div>
|
697
|
+
|
698
|
+
<div class="method_details ">
|
699
|
+
<h3 class="signature " id="[]=-instance_method">
|
700
|
+
|
701
|
+
- (<tt>Object</tt>) <strong>[]=</strong>(parameter_name, value)
|
702
|
+
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
</h3><div class="docstring">
|
708
|
+
<div class="discussion">
|
709
|
+
|
710
|
+
<p>Sets a named parameter associated with the event.</p>
|
711
|
+
|
712
|
+
|
713
|
+
</div>
|
714
|
+
</div>
|
715
|
+
<div class="tags">
|
716
|
+
<p class="tag_title">Parameters:</p>
|
717
|
+
<ul class="param">
|
718
|
+
|
719
|
+
<li>
|
720
|
+
|
721
|
+
<span class='name'>parameter_name</span>
|
722
|
+
|
723
|
+
|
724
|
+
<span class='type'>(<tt>String</tt>)</span>
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
—
|
729
|
+
<div class='inline'>
|
730
|
+
<p>the name of the parameter to retrieve; this should be exactly the name
|
731
|
+
specified for the parameter in the text section of the fcs file</p>
|
732
|
+
</div>
|
733
|
+
|
734
|
+
</li>
|
735
|
+
|
736
|
+
<li>
|
737
|
+
|
738
|
+
<span class='name'>value</span>
|
739
|
+
|
740
|
+
|
741
|
+
<span class='type'>(<tt><span class='object_link'><a href="FCSParam.html" title="FCSParse::FCSParam (class)">FCSParam</a></span></tt>)</span>
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
—
|
746
|
+
<div class='inline'>
|
747
|
+
<p>an FCSParam object that holds the information about the named parameter.</p>
|
748
|
+
</div>
|
749
|
+
|
750
|
+
</li>
|
751
|
+
|
752
|
+
</ul>
|
753
|
+
|
754
|
+
|
755
|
+
</div><table class="source_code">
|
756
|
+
<tr>
|
757
|
+
<td>
|
758
|
+
<pre class="lines">
|
759
|
+
|
760
|
+
|
761
|
+
162
|
762
|
+
163
|
763
|
+
164
|
764
|
+
165
|
765
|
+
166</pre>
|
766
|
+
</td>
|
767
|
+
<td>
|
768
|
+
<pre class="code"><span class="info file"># File 'lib/fcsparse/fcsevent.rb', line 162</span>
|
769
|
+
|
770
|
+
<span class='rubyid_def def kw'>def</span> <span class='aset op'>[]=</span><span class='lparen token'>(</span><span class='rubyid_parameter_name identifier id'>parameter_name</span><span class='comma token'>,</span> <span class='rubyid_value identifier id'>value</span><span class='rparen token'>)</span>
|
771
|
+
|
772
|
+
<span class='rubyid_@values ivar id'>@values</span><span class='lbrack token'>[</span><span class='rubyid_parameter_name identifier id'>parameter_name</span><span class='rbrack token'>]</span><span class='assign token'>=</span> <span class='rubyid_value identifier id'>value</span>
|
773
|
+
|
774
|
+
<span class='rubyid_end end kw'>end</span>
|
775
|
+
</pre>
|
776
|
+
</td>
|
777
|
+
</tr>
|
778
|
+
</table>
|
779
|
+
</div>
|
780
|
+
|
781
|
+
<div class="method_details ">
|
782
|
+
<h3 class="signature " id="names_to_s_delim-instance_method">
|
783
|
+
|
784
|
+
- (<tt>String</tt>) <strong>names_to_s_delim</strong>(delimiter)
|
785
|
+
|
786
|
+
|
787
|
+
|
788
|
+
|
789
|
+
|
790
|
+
</h3><div class="docstring">
|
791
|
+
<div class="discussion">
|
792
|
+
|
793
|
+
<p>Gets the names of the parameters associated with this event in alphabetical
|
794
|
+
order as a string, delimited by the supplied delimiter.</p>
|
795
|
+
|
796
|
+
|
797
|
+
</div>
|
798
|
+
</div>
|
799
|
+
<div class="tags">
|
800
|
+
<p class="tag_title">Parameters:</p>
|
801
|
+
<ul class="param">
|
802
|
+
|
803
|
+
<li>
|
804
|
+
|
805
|
+
<span class='name'>delimiter</span>
|
806
|
+
|
807
|
+
|
808
|
+
<span class='type'>(<tt>String</tt>)</span>
|
809
|
+
|
810
|
+
|
811
|
+
|
812
|
+
—
|
813
|
+
<div class='inline'>
|
814
|
+
<p>a String containing the desired delimiter.</p>
|
815
|
+
</div>
|
816
|
+
|
817
|
+
</li>
|
818
|
+
|
819
|
+
</ul>
|
820
|
+
|
821
|
+
<p class="tag_title">Returns:</p>
|
822
|
+
<ul class="return">
|
823
|
+
|
824
|
+
<li>
|
825
|
+
|
826
|
+
|
827
|
+
<span class='type'>(<tt>String</tt>)</span>
|
828
|
+
|
829
|
+
|
830
|
+
|
831
|
+
—
|
832
|
+
<div class='inline'>
|
833
|
+
<p>a String containing delimited alphabetized parameter names.</p>
|
834
|
+
</div>
|
835
|
+
|
836
|
+
</li>
|
837
|
+
|
838
|
+
</ul>
|
839
|
+
|
840
|
+
</div><table class="source_code">
|
841
|
+
<tr>
|
842
|
+
<td>
|
843
|
+
<pre class="lines">
|
844
|
+
|
845
|
+
|
846
|
+
175
|
847
|
+
176
|
848
|
+
177
|
849
|
+
178
|
850
|
+
179
|
851
|
+
180
|
852
|
+
181</pre>
|
853
|
+
</td>
|
854
|
+
<td>
|
855
|
+
<pre class="code"><span class="info file"># File 'lib/fcsparse/fcsevent.rb', line 175</span>
|
856
|
+
|
857
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_names_to_s_delim identifier id'>names_to_s_delim</span><span class='lparen token'>(</span><span class='rubyid_delimiter identifier id'>delimiter</span><span class='rparen token'>)</span>
|
858
|
+
|
859
|
+
<span class='rubyid_all_param_names identifier id'>all_param_names</span> <span class='assign token'>=</span> <span class='rubyid_@values ivar id'>@values</span><span class='dot token'>.</span><span class='rubyid_keys identifier id'>keys</span><span class='dot token'>.</span><span class='rubyid_sort identifier id'>sort</span>
|
860
|
+
|
861
|
+
<span class='rubyid_all_param_names identifier id'>all_param_names</span><span class='dot token'>.</span><span class='rubyid_join identifier id'>join</span><span class='lparen token'>(</span><span class='rubyid_delimiter identifier id'>delimiter</span><span class='rparen token'>)</span>
|
862
|
+
|
863
|
+
<span class='rubyid_end end kw'>end</span>
|
864
|
+
</pre>
|
865
|
+
</td>
|
866
|
+
</tr>
|
867
|
+
</table>
|
868
|
+
</div>
|
869
|
+
|
870
|
+
<div class="method_details ">
|
871
|
+
<h3 class="signature " id="to_s-instance_method">
|
872
|
+
|
873
|
+
- (<tt>String</tt>) <strong>to_s</strong>
|
874
|
+
|
875
|
+
|
876
|
+
|
877
|
+
|
878
|
+
|
879
|
+
</h3><div class="docstring">
|
880
|
+
<div class="discussion">
|
881
|
+
|
882
|
+
<p>Converts the event to a string representation. This is the same as calling
|
883
|
+
<span class='object_link'><a href="#to_s_delim-instance_method" title="FCSParse::FCSEvent#to_s_delim (method)">#to_s_delim</a></span> with the delimiter set to <span class='object_link'><a href="#DefaultDelimiter-constant" title="FCSParse::FCSEvent::DefaultDelimiter (constant)">DefaultDelimiter</a></span>.</p>
|
884
|
+
|
885
|
+
|
886
|
+
</div>
|
887
|
+
</div>
|
888
|
+
<div class="tags">
|
889
|
+
|
890
|
+
<p class="tag_title">Returns:</p>
|
891
|
+
<ul class="return">
|
892
|
+
|
893
|
+
<li>
|
894
|
+
|
895
|
+
|
896
|
+
<span class='type'>(<tt>String</tt>)</span>
|
897
|
+
|
898
|
+
|
899
|
+
|
900
|
+
—
|
901
|
+
<div class='inline'>
|
902
|
+
<p>a String containing delimited ordered parameter values.</p>
|
903
|
+
</div>
|
904
|
+
|
905
|
+
</li>
|
906
|
+
|
907
|
+
</ul>
|
908
|
+
|
909
|
+
</div><table class="source_code">
|
910
|
+
<tr>
|
911
|
+
<td>
|
912
|
+
<pre class="lines">
|
913
|
+
|
914
|
+
|
915
|
+
207
|
916
|
+
208
|
917
|
+
209
|
918
|
+
210
|
919
|
+
211</pre>
|
920
|
+
</td>
|
921
|
+
<td>
|
922
|
+
<pre class="code"><span class="info file"># File 'lib/fcsparse/fcsevent.rb', line 207</span>
|
923
|
+
|
924
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_to_s identifier id'>to_s</span>
|
925
|
+
|
926
|
+
<span class='rubyid_to_s_delim identifier id'>to_s_delim</span><span class='lparen token'>(</span><span class='rubyid_DefaultDelimiter constant id'>DefaultDelimiter</span><span class='rparen token'>)</span>
|
927
|
+
|
928
|
+
<span class='rubyid_end end kw'>end</span>
|
929
|
+
</pre>
|
930
|
+
</td>
|
931
|
+
</tr>
|
932
|
+
</table>
|
933
|
+
</div>
|
934
|
+
|
935
|
+
<div class="method_details ">
|
936
|
+
<h3 class="signature " id="to_s_delim-instance_method">
|
937
|
+
|
938
|
+
- (<tt>String</tt>) <strong>to_s_delim</strong>(delimiter)
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
|
943
|
+
|
944
|
+
</h3><div class="docstring">
|
945
|
+
<div class="discussion">
|
946
|
+
|
947
|
+
<p>Gets the values of the parameters associated with this event ordered
|
948
|
+
alphabetically by the parameter names (i.e. in the same order as when
|
949
|
+
calling <span class='object_link'><a href="#names_to_s_delim-instance_method" title="FCSParse::FCSEvent#names_to_s_delim (method)">#names_to_s_delim</a></span>), delimited by the supplied delimiter.</p>
|
950
|
+
|
951
|
+
|
952
|
+
</div>
|
953
|
+
</div>
|
954
|
+
<div class="tags">
|
955
|
+
<p class="tag_title">Parameters:</p>
|
956
|
+
<ul class="param">
|
957
|
+
|
958
|
+
<li>
|
959
|
+
|
960
|
+
<span class='name'>delimiter</span>
|
961
|
+
|
962
|
+
|
963
|
+
<span class='type'>(<tt>String</tt>)</span>
|
964
|
+
|
965
|
+
|
966
|
+
|
967
|
+
—
|
968
|
+
<div class='inline'>
|
969
|
+
<p>a String containing the desired delimiter.</p>
|
970
|
+
</div>
|
971
|
+
|
972
|
+
</li>
|
973
|
+
|
974
|
+
</ul>
|
975
|
+
|
976
|
+
<p class="tag_title">Returns:</p>
|
977
|
+
<ul class="return">
|
978
|
+
|
979
|
+
<li>
|
980
|
+
|
981
|
+
|
982
|
+
<span class='type'>(<tt>String</tt>)</span>
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
—
|
987
|
+
<div class='inline'>
|
988
|
+
<p>a String containing delimited ordered parameter values.</p>
|
989
|
+
</div>
|
990
|
+
|
991
|
+
</li>
|
992
|
+
|
993
|
+
</ul>
|
994
|
+
|
995
|
+
</div><table class="source_code">
|
996
|
+
<tr>
|
997
|
+
<td>
|
998
|
+
<pre class="lines">
|
999
|
+
|
1000
|
+
|
1001
|
+
191
|
1002
|
+
192
|
1003
|
+
193
|
1004
|
+
194
|
1005
|
+
195
|
1006
|
+
196
|
1007
|
+
197
|
1008
|
+
198
|
1009
|
+
199</pre>
|
1010
|
+
</td>
|
1011
|
+
<td>
|
1012
|
+
<pre class="code"><span class="info file"># File 'lib/fcsparse/fcsevent.rb', line 191</span>
|
1013
|
+
|
1014
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_to_s_delim identifier id'>to_s_delim</span><span class='lparen token'>(</span><span class='rubyid_delimiter identifier id'>delimiter</span><span class='rparen token'>)</span>
|
1015
|
+
|
1016
|
+
<span class='rubyid_all_param_names identifier id'>all_param_names</span> <span class='assign token'>=</span> <span class='rubyid_@values ivar id'>@values</span><span class='dot token'>.</span><span class='rubyid_keys identifier id'>keys</span><span class='dot token'>.</span><span class='rubyid_sort identifier id'>sort</span>
|
1017
|
+
|
1018
|
+
<span class='rubyid_all_param_values identifier id'>all_param_values</span> <span class='assign token'>=</span> <span class='rubyid_all_param_names identifier id'>all_param_names</span><span class='dot token'>.</span><span class='rubyid_map identifier id'>map</span><span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='rubyid_e identifier id'>e</span><span class='bitor op'>|</span> <span class='rubyid_@values ivar id'>@values</span><span class='lbrack token'>[</span><span class='rubyid_e identifier id'>e</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_value identifier id'>value</span><span class='rbrace token'>}</span>
|
1019
|
+
|
1020
|
+
<span class='rubyid_all_param_values identifier id'>all_param_values</span><span class='dot token'>.</span><span class='rubyid_join identifier id'>join</span><span class='lparen token'>(</span><span class='rubyid_delimiter identifier id'>delimiter</span><span class='rparen token'>)</span>
|
1021
|
+
|
1022
|
+
<span class='rubyid_end end kw'>end</span>
|
1023
|
+
</pre>
|
1024
|
+
</td>
|
1025
|
+
</tr>
|
1026
|
+
</table>
|
1027
|
+
</div>
|
1028
|
+
|
1029
|
+
</div>
|
1030
|
+
|
1031
|
+
</div>
|
1032
|
+
|
1033
|
+
<div id="footer">
|
1034
|
+
Generated on Wed Jun 20 16:53:16 2012 by
|
1035
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1036
|
+
0.8.2.1 (ruby-1.8.7).
|
1037
|
+
</div>
|
1038
|
+
|
1039
|
+
</body>
|
1040
|
+
</html>
|