genevalidator 1.6.1 → 1.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -1
  3. data/.travis.yml +2 -0
  4. data/README.md +78 -30
  5. data/Rakefile +11 -8
  6. data/aux/app_template_footer.erb +1 -6
  7. data/aux/app_template_header.erb +12 -32
  8. data/aux/files/css/style.css +2 -8
  9. data/aux/files/js/plots.js +564 -576
  10. data/aux/files/js/script.js +10 -0
  11. data/aux/json_footer.erb +8 -0
  12. data/aux/json_header.erb +19 -0
  13. data/aux/json_query.erb +14 -0
  14. data/aux/template_footer.erb +9 -58
  15. data/aux/template_header.erb +18 -58
  16. data/aux/template_query.erb +8 -36
  17. data/bin/genevalidator +45 -32
  18. data/genevalidator.gemspec +11 -7
  19. data/lib/genevalidator.rb +75 -455
  20. data/lib/genevalidator/arg_validation.rb +78 -107
  21. data/lib/genevalidator/blast.rb +57 -60
  22. data/lib/genevalidator/clusterization.rb +15 -15
  23. data/lib/genevalidator/exceptions.rb +32 -5
  24. data/lib/genevalidator/get_raw_sequences.rb +70 -33
  25. data/lib/genevalidator/hsp.rb +1 -4
  26. data/lib/genevalidator/json_to_gv_results.rb +109 -0
  27. data/lib/genevalidator/output.rb +177 -185
  28. data/lib/genevalidator/pool.rb +2 -1
  29. data/lib/genevalidator/sequences.rb +3 -3
  30. data/lib/genevalidator/tabular_parser.rb +24 -18
  31. data/lib/genevalidator/validation.rb +279 -0
  32. data/lib/genevalidator/validation_alignment.rb +31 -47
  33. data/lib/genevalidator/validation_blast_reading_frame.rb +19 -18
  34. data/lib/genevalidator/validation_duplication.rb +23 -19
  35. data/lib/genevalidator/validation_gene_merge.rb +30 -65
  36. data/lib/genevalidator/validation_length_cluster.rb +14 -53
  37. data/lib/genevalidator/validation_length_rank.rb +10 -11
  38. data/lib/genevalidator/validation_open_reading_frame.rb +18 -19
  39. data/lib/genevalidator/validation_report.rb +2 -5
  40. data/lib/genevalidator/validation_test.rb +8 -4
  41. data/lib/genevalidator/version.rb +1 -1
  42. data/test/test_all_validations.rb +51 -66
  43. data/test/test_blast.rb +68 -51
  44. data/test/test_clusterization.rb +1 -1
  45. data/test/test_clusterization_2d.rb +19 -13
  46. data/test/test_extended_array_methods.rb +1 -1
  47. data/test/test_files/all_validations_mrna/mrna.blast_tab6 +1806 -0
  48. data/test/test_files/all_validations_mrna/mrna.blast_tab7 +1865 -0
  49. data/test/test_files/all_validations_mrna/{all_validations_mrna.fasta.blast_xml → mrna.blast_xml} +18642 -1
  50. data/test/test_files/all_validations_mrna/{all_validations_mrna.fasta.blast_xml.index → mrna.blast_xml.index} +300 -0
  51. data/test/test_files/all_validations_mrna/{all_validations_mrna.fasta → mrna.fa} +0 -0
  52. data/test/test_files/all_validations_mrna/mrna.raw_seq +3970 -0
  53. data/test/test_files/all_validations_mrna/{all_validations_mrna.fasta.blast_xml.raw_seq.idx → mrna.raw_seq.idx} +901 -1
  54. data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_tab → prot.blast_tab6} +416 -0
  55. data/test/test_files/all_validations_prot/prot.blast_tab7 +2400 -0
  56. data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_xml → prot.blast_xml} +18299 -6723
  57. data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_xml.index → prot.blast_xml.index} +408 -0
  58. data/test/test_files/all_validations_prot/{all_validations_prot.fasta → prot.fa} +0 -0
  59. data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_xml.raw_seq → prot.raw_seq} +2735 -0
  60. data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_xml.raw_seq.idx → prot.raw_seq.idx} +3032 -1808
  61. data/test/test_sequences.rb +46 -41
  62. data/test/test_validation_open_reading_frame.rb +318 -202
  63. data/test/test_validations.rb +48 -32
  64. metadata +76 -102
  65. data/doc/AliasDuplicationError.html +0 -134
  66. data/doc/AlignmentValidation.html +0 -1687
  67. data/doc/AlignmentValidationOutput.html +0 -659
  68. data/doc/Blast.html +0 -1905
  69. data/doc/BlastRFValidationOutput.html +0 -545
  70. data/doc/BlastReadingFrameValidation.html +0 -370
  71. data/doc/BlastUtils.html +0 -875
  72. data/doc/ClasspathError.html +0 -134
  73. data/doc/Cluster.html +0 -1316
  74. data/doc/DuplciationValidationOutput.html +0 -564
  75. data/doc/DuplicationValidation.html +0 -920
  76. data/doc/DuplicationValidationOutput.html +0 -564
  77. data/doc/FileNotFoundException.html +0 -134
  78. data/doc/GeneMergeValidation.html +0 -935
  79. data/doc/GeneMergeValidationOutput.html +0 -652
  80. data/doc/HierarchicalClusterization.html +0 -994
  81. data/doc/Hsp.html +0 -1485
  82. data/doc/InconsistentTabularFormat.html +0 -135
  83. data/doc/LengthClusterValidation.html +0 -982
  84. data/doc/LengthClusterValidationOutput.html +0 -515
  85. data/doc/LengthRankValidation.html +0 -496
  86. data/doc/LengthRankValidationOutput.html +0 -517
  87. data/doc/NoInternetError.html +0 -135
  88. data/doc/NoMafftInstallationError.html +0 -134
  89. data/doc/NoPIdentError.html +0 -134
  90. data/doc/NoValidationError.html +0 -134
  91. data/doc/NotEnoughHitsError.html +0 -135
  92. data/doc/ORFValidationOutput.html +0 -593
  93. data/doc/OpenReadingFrameValidation.html +0 -1107
  94. data/doc/OtherError.html +0 -123
  95. data/doc/Output.html +0 -1540
  96. data/doc/Pair.html +0 -309
  97. data/doc/PairCluster.html +0 -767
  98. data/doc/Plot.html +0 -837
  99. data/doc/QueryError.html +0 -134
  100. data/doc/ReportClassError.html +0 -135
  101. data/doc/Sequence.html +0 -1299
  102. data/doc/SequenceTypeError.html +0 -135
  103. data/doc/TabularEntry.html +0 -837
  104. data/doc/TabularParser.html +0 -1104
  105. data/doc/Validation.html +0 -2147
  106. data/doc/ValidationClassError.html +0 -134
  107. data/doc/ValidationOutput.html +0 -460
  108. data/doc/ValidationReport.html +0 -940
  109. data/doc/ValidationTest.html +0 -939
  110. data/doc/_index.html +0 -449
  111. data/doc/class_list.html +0 -54
  112. data/doc/css/common.css +0 -1
  113. data/doc/css/full_list.css +0 -57
  114. data/doc/css/style.css +0 -338
  115. data/doc/file.README.html +0 -151
  116. data/doc/file_list.html +0 -56
  117. data/doc/frames.html +0 -26
  118. data/doc/index.html +0 -151
  119. data/doc/js/app.js +0 -214
  120. data/doc/js/full_list.js +0 -178
  121. data/doc/js/jquery.js +0 -4
  122. data/doc/method_list.html +0 -1505
  123. data/doc/top-level-namespace.html +0 -112
  124. data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_tab +0 -967
  125. data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_tab.index +0 -967
  126. data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_tab.raw_seq +0 -4929
  127. data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_tab.raw_seq.idx +0 -1006
  128. data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_xml.raw_seq +0 -2075
  129. data/test/test_files/all_validations_prot/all_validations_prot.fasta.blast_tab.index +0 -1864
  130. data/test/test_files/all_validations_prot/all_validations_prot.fasta.blast_tab.raw_seq +0 -42411
  131. data/test/test_files/all_validations_prot/all_validations_prot.fasta.blast_tab.raw_seq.idx +0 -3751
@@ -1,940 +0,0 @@
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: ValidationReport
8
-
9
- &mdash; Documentation by YARD 0.8.7.2
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" 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 (V)</a> &raquo;
35
-
36
-
37
- <span class="title">ValidationReport</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: ValidationReport
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">ValidationReport</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/genevalidator/validation_output.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>This is an abstract class extended by all validation reports</p>
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
-
113
- </div><div id="subclasses">
114
- <h2>Direct Known Subclasses</h2>
115
- <p class="children"><span class='object_link'><a href="AlignmentValidationOutput.html" title="AlignmentValidationOutput (class)">AlignmentValidationOutput</a></span>, <span class='object_link'><a href="BlastRFValidationOutput.html" title="BlastRFValidationOutput (class)">BlastRFValidationOutput</a></span>, <span class='object_link'><a href="DuplicationValidationOutput.html" title="DuplicationValidationOutput (class)">DuplicationValidationOutput</a></span>, <span class='object_link'><a href="GeneMergeValidationOutput.html" title="GeneMergeValidationOutput (class)">GeneMergeValidationOutput</a></span>, <span class='object_link'><a href="LengthClusterValidationOutput.html" title="LengthClusterValidationOutput (class)">LengthClusterValidationOutput</a></span>, <span class='object_link'><a href="LengthRankValidationOutput.html" title="LengthRankValidationOutput (class)">LengthRankValidationOutput</a></span>, <span class='object_link'><a href="ORFValidationOutput.html" title="ORFValidationOutput (class)">ORFValidationOutput</a></span></p>
116
- </div>
117
-
118
-
119
-
120
-
121
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
122
- <ul class="summary">
123
-
124
- <li class="public ">
125
- <span class="summary_signature">
126
-
127
- <a href="#bg_color-instance_method" title="#bg_color (instance method)">- (Object) <strong>bg_color</strong> </a>
128
-
129
-
130
-
131
- </span>
132
-
133
-
134
-
135
-
136
- <span class="note title readonly">readonly</span>
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
- <span class="summary_desc"><div class='inline'>
147
- <p>Returns the value of attribute bg_color.</p>
148
- </div></span>
149
-
150
- </li>
151
-
152
-
153
- <li class="public ">
154
- <span class="summary_signature">
155
-
156
- <a href="#errors-instance_method" title="#errors (instance method)">- (Object) <strong>errors</strong> </a>
157
-
158
-
159
-
160
- </span>
161
-
162
-
163
-
164
-
165
- <span class="note title readonly">readonly</span>
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
- <span class="summary_desc"><div class='inline'>
176
- <p>Returns the value of attribute errors.</p>
177
- </div></span>
178
-
179
- </li>
180
-
181
-
182
- <li class="public ">
183
- <span class="summary_signature">
184
-
185
- <a href="#expected-instance_method" title="#expected (instance method)">- (Object) <strong>expected</strong> </a>
186
-
187
-
188
-
189
- </span>
190
-
191
-
192
-
193
-
194
- <span class="note title readonly">readonly</span>
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
- <span class="summary_desc"><div class='inline'>
205
- <p>Returns the value of attribute expected.</p>
206
- </div></span>
207
-
208
- </li>
209
-
210
-
211
- <li class="public ">
212
- <span class="summary_signature">
213
-
214
- <a href="#message-instance_method" title="#message (instance method)">- (Object) <strong>message</strong> </a>
215
-
216
-
217
-
218
- </span>
219
-
220
-
221
-
222
-
223
- <span class="note title readonly">readonly</span>
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
- <span class="summary_desc"><div class='inline'>
234
- <p>Returns the value of attribute message.</p>
235
- </div></span>
236
-
237
- </li>
238
-
239
-
240
- <li class="public ">
241
- <span class="summary_signature">
242
-
243
- <a href="#plot_files-instance_method" title="#plot_files (instance method)">- (Object) <strong>plot_files</strong> </a>
244
-
245
-
246
-
247
- </span>
248
-
249
-
250
-
251
-
252
- <span class="note title readonly">readonly</span>
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
- <span class="summary_desc"><div class='inline'>
263
- <p>Returns the value of attribute plot_files.</p>
264
- </div></span>
265
-
266
- </li>
267
-
268
-
269
- <li class="public ">
270
- <span class="summary_signature">
271
-
272
- <a href="#result-instance_method" title="#result (instance method)">- (Object) <strong>result</strong> </a>
273
-
274
-
275
-
276
- </span>
277
-
278
-
279
-
280
-
281
- <span class="note title readonly">readonly</span>
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
- <span class="summary_desc"><div class='inline'>
292
- <p>Returns the value of attribute result.</p>
293
- </div></span>
294
-
295
- </li>
296
-
297
-
298
- <li class="public ">
299
- <span class="summary_signature">
300
-
301
- <a href="#validation_result-instance_method" title="#validation_result (instance method)">- (Object) <strong>validation_result</strong> </a>
302
-
303
-
304
-
305
- </span>
306
-
307
-
308
-
309
-
310
- <span class="note title readonly">readonly</span>
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
- <span class="summary_desc"><div class='inline'>
321
- <p>Returns the value of attribute validation_result.</p>
322
- </div></span>
323
-
324
- </li>
325
-
326
-
327
- </ul>
328
-
329
-
330
-
331
-
332
-
333
- <h2>
334
- Instance Method Summary
335
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
336
- </h2>
337
-
338
- <ul class="summary">
339
-
340
- <li class="public ">
341
- <span class="summary_signature">
342
-
343
- <a href="#color-instance_method" title="#color (instance method)">- (Object) <strong>color</strong> </a>
344
-
345
-
346
-
347
- </span>
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
- <span class="summary_desc"><div class='inline'>
358
- <p>May return "success" or "error".</p>
359
- </div></span>
360
-
361
- </li>
362
-
363
-
364
- <li class="public ">
365
- <span class="summary_signature">
366
-
367
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (ValidationReport) <strong>initialize</strong>(message = &quot;Not enough evidence&quot;, validation_result = :no) </a>
368
-
369
-
370
-
371
- </span>
372
-
373
-
374
- <span class="note title constructor">constructor</span>
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
- <span class="summary_desc"><div class='inline'>
384
- <p>Initilizes the object Params: <tt>message</tt>: result of the validation
385
- (to be displayed in the output) <tt>bg_color</tt>: background color of the
386
- table cell for the html output (nil by default).</p>
387
- </div></span>
388
-
389
- </li>
390
-
391
-
392
- <li class="public ">
393
- <span class="summary_signature">
394
-
395
- <a href="#print-instance_method" title="#print (instance method)">- (Object) <strong>print</strong> </a>
396
-
397
-
398
-
399
- </span>
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
- <span class="summary_desc"><div class='inline'></div></span>
410
-
411
- </li>
412
-
413
-
414
- <li class="public ">
415
- <span class="summary_signature">
416
-
417
- <a href="#validation-instance_method" title="#validation (instance method)">- (Object) <strong>validation</strong> </a>
418
-
419
-
420
-
421
- </span>
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
- <span class="summary_desc"><div class='inline'></div></span>
432
-
433
- </li>
434
-
435
-
436
- </ul>
437
-
438
-
439
- <div id="constructor_details" class="method_details_list">
440
- <h2>Constructor Details</h2>
441
-
442
- <div class="method_details first">
443
- <h3 class="signature first" id="initialize-instance_method">
444
-
445
- - (<tt><span class='object_link'><a href="" title="ValidationReport (class)">ValidationReport</a></span></tt>) <strong>initialize</strong>(message = &quot;Not enough evidence&quot;, validation_result = :no)
446
-
447
-
448
-
449
-
450
-
451
- </h3><div class="docstring">
452
- <div class="discussion">
453
-
454
- <p>Initilizes the object Params: <tt>message</tt>: result of the validation
455
- (to be displayed in the output) <tt>bg_color</tt>: background color of the
456
- table cell for the html output (nil by default)</p>
457
-
458
-
459
- </div>
460
- </div>
461
- <div class="tags">
462
-
463
-
464
- </div><table class="source_code">
465
- <tr>
466
- <td>
467
- <pre class="lines">
468
-
469
-
470
- 22
471
- 23
472
- 24
473
- 25
474
- 26
475
- 27
476
- 28</pre>
477
- </td>
478
- <td>
479
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 22</span>
480
-
481
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Not enough evidence</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_validation_result'>validation_result</span> <span class='op'>=</span> <span class='symbol'>:no</span><span class='rparen'>)</span>
482
- <span class='ivar'>@message</span> <span class='op'>=</span> <span class='id identifier rubyid_message'>message</span>
483
- <span class='ivar'>@errors</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
484
- <span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_validation_result'>validation_result</span>
485
- <span class='ivar'>@expected</span> <span class='op'>=</span> <span class='symbol'>:yes</span>
486
- <span class='ivar'>@validation_result</span> <span class='op'>=</span> <span class='id identifier rubyid_validation_result'>validation_result</span>
487
- <span class='kw'>end</span></pre>
488
- </td>
489
- </tr>
490
- </table>
491
- </div>
492
-
493
- </div>
494
-
495
- <div id="instance_attr_details" class="attr_details">
496
- <h2>Instance Attribute Details</h2>
497
-
498
-
499
- <span id=""></span>
500
- <div class="method_details first">
501
- <h3 class="signature first" id="bg_color-instance_method">
502
-
503
- - (<tt>Object</tt>) <strong>bg_color</strong> <span class="extras">(readonly)</span>
504
-
505
-
506
-
507
-
508
-
509
- </h3><div class="docstring">
510
- <div class="discussion">
511
-
512
- <p>Returns the value of attribute bg_color</p>
513
-
514
-
515
- </div>
516
- </div>
517
- <div class="tags">
518
-
519
-
520
- </div><table class="source_code">
521
- <tr>
522
- <td>
523
- <pre class="lines">
524
-
525
-
526
- 10
527
- 11
528
- 12</pre>
529
- </td>
530
- <td>
531
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 10</span>
532
-
533
- <span class='kw'>def</span> <span class='id identifier rubyid_bg_color'>bg_color</span>
534
- <span class='ivar'>@bg_color</span>
535
- <span class='kw'>end</span></pre>
536
- </td>
537
- </tr>
538
- </table>
539
- </div>
540
-
541
-
542
- <span id=""></span>
543
- <div class="method_details ">
544
- <h3 class="signature " id="errors-instance_method">
545
-
546
- - (<tt>Object</tt>) <strong>errors</strong> <span class="extras">(readonly)</span>
547
-
548
-
549
-
550
-
551
-
552
- </h3><div class="docstring">
553
- <div class="discussion">
554
-
555
- <p>Returns the value of attribute errors</p>
556
-
557
-
558
- </div>
559
- </div>
560
- <div class="tags">
561
-
562
-
563
- </div><table class="source_code">
564
- <tr>
565
- <td>
566
- <pre class="lines">
567
-
568
-
569
- 15
570
- 16
571
- 17</pre>
572
- </td>
573
- <td>
574
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 15</span>
575
-
576
- <span class='kw'>def</span> <span class='id identifier rubyid_errors'>errors</span>
577
- <span class='ivar'>@errors</span>
578
- <span class='kw'>end</span></pre>
579
- </td>
580
- </tr>
581
- </table>
582
- </div>
583
-
584
-
585
- <span id=""></span>
586
- <div class="method_details ">
587
- <h3 class="signature " id="expected-instance_method">
588
-
589
- - (<tt>Object</tt>) <strong>expected</strong> <span class="extras">(readonly)</span>
590
-
591
-
592
-
593
-
594
-
595
- </h3><div class="docstring">
596
- <div class="discussion">
597
-
598
- <p>Returns the value of attribute expected</p>
599
-
600
-
601
- </div>
602
- </div>
603
- <div class="tags">
604
-
605
-
606
- </div><table class="source_code">
607
- <tr>
608
- <td>
609
- <pre class="lines">
610
-
611
-
612
- 13
613
- 14
614
- 15</pre>
615
- </td>
616
- <td>
617
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 13</span>
618
-
619
- <span class='kw'>def</span> <span class='id identifier rubyid_expected'>expected</span>
620
- <span class='ivar'>@expected</span>
621
- <span class='kw'>end</span></pre>
622
- </td>
623
- </tr>
624
- </table>
625
- </div>
626
-
627
-
628
- <span id=""></span>
629
- <div class="method_details ">
630
- <h3 class="signature " id="message-instance_method">
631
-
632
- - (<tt>Object</tt>) <strong>message</strong> <span class="extras">(readonly)</span>
633
-
634
-
635
-
636
-
637
-
638
- </h3><div class="docstring">
639
- <div class="discussion">
640
-
641
- <p>Returns the value of attribute message</p>
642
-
643
-
644
- </div>
645
- </div>
646
- <div class="tags">
647
-
648
-
649
- </div><table class="source_code">
650
- <tr>
651
- <td>
652
- <pre class="lines">
653
-
654
-
655
- 9
656
- 10
657
- 11</pre>
658
- </td>
659
- <td>
660
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 9</span>
661
-
662
- <span class='kw'>def</span> <span class='id identifier rubyid_message'>message</span>
663
- <span class='ivar'>@message</span>
664
- <span class='kw'>end</span></pre>
665
- </td>
666
- </tr>
667
- </table>
668
- </div>
669
-
670
-
671
- <span id=""></span>
672
- <div class="method_details ">
673
- <h3 class="signature " id="plot_files-instance_method">
674
-
675
- - (<tt>Object</tt>) <strong>plot_files</strong> <span class="extras">(readonly)</span>
676
-
677
-
678
-
679
-
680
-
681
- </h3><div class="docstring">
682
- <div class="discussion">
683
-
684
- <p>Returns the value of attribute plot_files</p>
685
-
686
-
687
- </div>
688
- </div>
689
- <div class="tags">
690
-
691
-
692
- </div><table class="source_code">
693
- <tr>
694
- <td>
695
- <pre class="lines">
696
-
697
-
698
- 11
699
- 12
700
- 13</pre>
701
- </td>
702
- <td>
703
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 11</span>
704
-
705
- <span class='kw'>def</span> <span class='id identifier rubyid_plot_files'>plot_files</span>
706
- <span class='ivar'>@plot_files</span>
707
- <span class='kw'>end</span></pre>
708
- </td>
709
- </tr>
710
- </table>
711
- </div>
712
-
713
-
714
- <span id=""></span>
715
- <div class="method_details ">
716
- <h3 class="signature " id="result-instance_method">
717
-
718
- - (<tt>Object</tt>) <strong>result</strong> <span class="extras">(readonly)</span>
719
-
720
-
721
-
722
-
723
-
724
- </h3><div class="docstring">
725
- <div class="discussion">
726
-
727
- <p>Returns the value of attribute result</p>
728
-
729
-
730
- </div>
731
- </div>
732
- <div class="tags">
733
-
734
-
735
- </div><table class="source_code">
736
- <tr>
737
- <td>
738
- <pre class="lines">
739
-
740
-
741
- 12
742
- 13
743
- 14</pre>
744
- </td>
745
- <td>
746
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 12</span>
747
-
748
- <span class='kw'>def</span> <span class='id identifier rubyid_result'>result</span>
749
- <span class='ivar'>@result</span>
750
- <span class='kw'>end</span></pre>
751
- </td>
752
- </tr>
753
- </table>
754
- </div>
755
-
756
-
757
- <span id=""></span>
758
- <div class="method_details ">
759
- <h3 class="signature " id="validation_result-instance_method">
760
-
761
- - (<tt>Object</tt>) <strong>validation_result</strong> <span class="extras">(readonly)</span>
762
-
763
-
764
-
765
-
766
-
767
- </h3><div class="docstring">
768
- <div class="discussion">
769
-
770
- <p>Returns the value of attribute validation_result</p>
771
-
772
-
773
- </div>
774
- </div>
775
- <div class="tags">
776
-
777
-
778
- </div><table class="source_code">
779
- <tr>
780
- <td>
781
- <pre class="lines">
782
-
783
-
784
- 14
785
- 15
786
- 16</pre>
787
- </td>
788
- <td>
789
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 14</span>
790
-
791
- <span class='kw'>def</span> <span class='id identifier rubyid_validation_result'>validation_result</span>
792
- <span class='ivar'>@validation_result</span>
793
- <span class='kw'>end</span></pre>
794
- </td>
795
- </tr>
796
- </table>
797
- </div>
798
-
799
- </div>
800
-
801
-
802
- <div id="instance_method_details" class="method_details_list">
803
- <h2>Instance Method Details</h2>
804
-
805
-
806
- <div class="method_details first">
807
- <h3 class="signature first" id="color-instance_method">
808
-
809
- - (<tt>Object</tt>) <strong>color</strong>
810
-
811
-
812
-
813
-
814
-
815
- </h3><div class="docstring">
816
- <div class="discussion">
817
-
818
- <p>May return "success" or "error"</p>
819
-
820
-
821
- </div>
822
- </div>
823
- <div class="tags">
824
-
825
-
826
- </div><table class="source_code">
827
- <tr>
828
- <td>
829
- <pre class="lines">
830
-
831
-
832
- 40
833
- 41
834
- 42
835
- 43
836
- 44
837
- 45
838
- 46
839
- 47
840
- 48
841
- 49
842
- 50
843
- 51
844
- 52
845
- 53</pre>
846
- </td>
847
- <td>
848
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 40</span>
849
-
850
- <span class='kw'>def</span> <span class='id identifier rubyid_color'>color</span>
851
- <span class='kw'>if</span> <span class='id identifier rubyid_bg_color'>bg_color</span> <span class='op'>!=</span> <span class='kw'>nil</span>
852
- <span class='kw'>return</span> <span class='id identifier rubyid_bg_color'>bg_color</span>
853
- <span class='kw'>end</span>
854
- <span class='kw'>if</span> <span class='id identifier rubyid_validation'>validation</span> <span class='op'>==</span> <span class='ivar'>@expected</span>
855
- <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>success</span><span class='tstring_end'>&quot;</span></span>
856
- <span class='kw'>else</span>
857
- <span class='kw'>if</span> <span class='id identifier rubyid_validation'>validation</span> <span class='op'>==</span> <span class='symbol'>:warning</span>
858
- <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>warning</span><span class='tstring_end'>&quot;</span></span>
859
- <span class='kw'>else</span>
860
- <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>danger</span><span class='tstring_end'>&quot;</span></span>
861
- <span class='kw'>end</span>
862
- <span class='kw'>end</span>
863
- <span class='kw'>end</span></pre>
864
- </td>
865
- </tr>
866
- </table>
867
- </div>
868
-
869
- <div class="method_details ">
870
- <h3 class="signature " id="print-instance_method">
871
-
872
- - (<tt>Object</tt>) <strong>print</strong>
873
-
874
-
875
-
876
-
877
-
878
- </h3><table class="source_code">
879
- <tr>
880
- <td>
881
- <pre class="lines">
882
-
883
-
884
- 30
885
- 31
886
- 32</pre>
887
- </td>
888
- <td>
889
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 30</span>
890
-
891
- <span class='kw'>def</span> <span class='id identifier rubyid_print'>print</span>
892
- <span class='id identifier rubyid_message'>message</span>
893
- <span class='kw'>end</span></pre>
894
- </td>
895
- </tr>
896
- </table>
897
- </div>
898
-
899
- <div class="method_details ">
900
- <h3 class="signature " id="validation-instance_method">
901
-
902
- - (<tt>Object</tt>) <strong>validation</strong>
903
-
904
-
905
-
906
-
907
-
908
- </h3><table class="source_code">
909
- <tr>
910
- <td>
911
- <pre class="lines">
912
-
913
-
914
- 34
915
- 35
916
- 36</pre>
917
- </td>
918
- <td>
919
- <pre class="code"><span class="info file"># File 'lib/genevalidator/validation_output.rb', line 34</span>
920
-
921
- <span class='kw'>def</span> <span class='id identifier rubyid_validation'>validation</span>
922
- <span class='id identifier rubyid_validation_result'>validation_result</span>
923
- <span class='kw'>end</span></pre>
924
- </td>
925
- </tr>
926
- </table>
927
- </div>
928
-
929
- </div>
930
-
931
- </div>
932
-
933
- <div id="footer">
934
- Generated on Sat Sep 28 07:01:33 2013 by
935
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
936
- 0.8.7.2 (ruby-1.9.3).
937
- </div>
938
-
939
- </body>
940
- </html>