genevalidator 1.6.1 → 1.6.2
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.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/.travis.yml +2 -0
- data/README.md +78 -30
- data/Rakefile +11 -8
- data/aux/app_template_footer.erb +1 -6
- data/aux/app_template_header.erb +12 -32
- data/aux/files/css/style.css +2 -8
- data/aux/files/js/plots.js +564 -576
- data/aux/files/js/script.js +10 -0
- data/aux/json_footer.erb +8 -0
- data/aux/json_header.erb +19 -0
- data/aux/json_query.erb +14 -0
- data/aux/template_footer.erb +9 -58
- data/aux/template_header.erb +18 -58
- data/aux/template_query.erb +8 -36
- data/bin/genevalidator +45 -32
- data/genevalidator.gemspec +11 -7
- data/lib/genevalidator.rb +75 -455
- data/lib/genevalidator/arg_validation.rb +78 -107
- data/lib/genevalidator/blast.rb +57 -60
- data/lib/genevalidator/clusterization.rb +15 -15
- data/lib/genevalidator/exceptions.rb +32 -5
- data/lib/genevalidator/get_raw_sequences.rb +70 -33
- data/lib/genevalidator/hsp.rb +1 -4
- data/lib/genevalidator/json_to_gv_results.rb +109 -0
- data/lib/genevalidator/output.rb +177 -185
- data/lib/genevalidator/pool.rb +2 -1
- data/lib/genevalidator/sequences.rb +3 -3
- data/lib/genevalidator/tabular_parser.rb +24 -18
- data/lib/genevalidator/validation.rb +279 -0
- data/lib/genevalidator/validation_alignment.rb +31 -47
- data/lib/genevalidator/validation_blast_reading_frame.rb +19 -18
- data/lib/genevalidator/validation_duplication.rb +23 -19
- data/lib/genevalidator/validation_gene_merge.rb +30 -65
- data/lib/genevalidator/validation_length_cluster.rb +14 -53
- data/lib/genevalidator/validation_length_rank.rb +10 -11
- data/lib/genevalidator/validation_open_reading_frame.rb +18 -19
- data/lib/genevalidator/validation_report.rb +2 -5
- data/lib/genevalidator/validation_test.rb +8 -4
- data/lib/genevalidator/version.rb +1 -1
- data/test/test_all_validations.rb +51 -66
- data/test/test_blast.rb +68 -51
- data/test/test_clusterization.rb +1 -1
- data/test/test_clusterization_2d.rb +19 -13
- data/test/test_extended_array_methods.rb +1 -1
- data/test/test_files/all_validations_mrna/mrna.blast_tab6 +1806 -0
- data/test/test_files/all_validations_mrna/mrna.blast_tab7 +1865 -0
- data/test/test_files/all_validations_mrna/{all_validations_mrna.fasta.blast_xml → mrna.blast_xml} +18642 -1
- data/test/test_files/all_validations_mrna/{all_validations_mrna.fasta.blast_xml.index → mrna.blast_xml.index} +300 -0
- data/test/test_files/all_validations_mrna/{all_validations_mrna.fasta → mrna.fa} +0 -0
- data/test/test_files/all_validations_mrna/mrna.raw_seq +3970 -0
- data/test/test_files/all_validations_mrna/{all_validations_mrna.fasta.blast_xml.raw_seq.idx → mrna.raw_seq.idx} +901 -1
- data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_tab → prot.blast_tab6} +416 -0
- data/test/test_files/all_validations_prot/prot.blast_tab7 +2400 -0
- data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_xml → prot.blast_xml} +18299 -6723
- data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_xml.index → prot.blast_xml.index} +408 -0
- data/test/test_files/all_validations_prot/{all_validations_prot.fasta → prot.fa} +0 -0
- data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_xml.raw_seq → prot.raw_seq} +2735 -0
- data/test/test_files/all_validations_prot/{all_validations_prot.fasta.blast_xml.raw_seq.idx → prot.raw_seq.idx} +3032 -1808
- data/test/test_sequences.rb +46 -41
- data/test/test_validation_open_reading_frame.rb +318 -202
- data/test/test_validations.rb +48 -32
- metadata +76 -102
- data/doc/AliasDuplicationError.html +0 -134
- data/doc/AlignmentValidation.html +0 -1687
- data/doc/AlignmentValidationOutput.html +0 -659
- data/doc/Blast.html +0 -1905
- data/doc/BlastRFValidationOutput.html +0 -545
- data/doc/BlastReadingFrameValidation.html +0 -370
- data/doc/BlastUtils.html +0 -875
- data/doc/ClasspathError.html +0 -134
- data/doc/Cluster.html +0 -1316
- data/doc/DuplciationValidationOutput.html +0 -564
- data/doc/DuplicationValidation.html +0 -920
- data/doc/DuplicationValidationOutput.html +0 -564
- data/doc/FileNotFoundException.html +0 -134
- data/doc/GeneMergeValidation.html +0 -935
- data/doc/GeneMergeValidationOutput.html +0 -652
- data/doc/HierarchicalClusterization.html +0 -994
- data/doc/Hsp.html +0 -1485
- data/doc/InconsistentTabularFormat.html +0 -135
- data/doc/LengthClusterValidation.html +0 -982
- data/doc/LengthClusterValidationOutput.html +0 -515
- data/doc/LengthRankValidation.html +0 -496
- data/doc/LengthRankValidationOutput.html +0 -517
- data/doc/NoInternetError.html +0 -135
- data/doc/NoMafftInstallationError.html +0 -134
- data/doc/NoPIdentError.html +0 -134
- data/doc/NoValidationError.html +0 -134
- data/doc/NotEnoughHitsError.html +0 -135
- data/doc/ORFValidationOutput.html +0 -593
- data/doc/OpenReadingFrameValidation.html +0 -1107
- data/doc/OtherError.html +0 -123
- data/doc/Output.html +0 -1540
- data/doc/Pair.html +0 -309
- data/doc/PairCluster.html +0 -767
- data/doc/Plot.html +0 -837
- data/doc/QueryError.html +0 -134
- data/doc/ReportClassError.html +0 -135
- data/doc/Sequence.html +0 -1299
- data/doc/SequenceTypeError.html +0 -135
- data/doc/TabularEntry.html +0 -837
- data/doc/TabularParser.html +0 -1104
- data/doc/Validation.html +0 -2147
- data/doc/ValidationClassError.html +0 -134
- data/doc/ValidationOutput.html +0 -460
- data/doc/ValidationReport.html +0 -940
- data/doc/ValidationTest.html +0 -939
- data/doc/_index.html +0 -449
- data/doc/class_list.html +0 -54
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -338
- data/doc/file.README.html +0 -151
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -151
- data/doc/js/app.js +0 -214
- data/doc/js/full_list.js +0 -178
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1505
- data/doc/top-level-namespace.html +0 -112
- data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_tab +0 -967
- data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_tab.index +0 -967
- data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_tab.raw_seq +0 -4929
- data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_tab.raw_seq.idx +0 -1006
- data/test/test_files/all_validations_mrna/all_validations_mrna.fasta.blast_xml.raw_seq +0 -2075
- data/test/test_files/all_validations_prot/all_validations_prot.fasta.blast_tab.index +0 -1864
- data/test/test_files/all_validations_prot/all_validations_prot.fasta.blast_tab.raw_seq +0 -42411
- data/test/test_files/all_validations_prot/all_validations_prot.fasta.blast_tab.raw_seq.idx +0 -3751
@@ -1,652 +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: GeneMergeValidationOutput
|
8
|
-
|
9
|
-
— 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 (G)</a> »
|
35
|
-
|
36
|
-
|
37
|
-
<span class="title">GeneMergeValidationOutput</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: GeneMergeValidationOutput
|
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"><span class='object_link'><a href="ValidationReport.html" title="ValidationReport (class)">ValidationReport</a></span></span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next"><span class='object_link'><a href="ValidationReport.html" title="ValidationReport (class)">ValidationReport</a></span></li>
|
82
|
-
|
83
|
-
<li class="next">GeneMergeValidationOutput</li>
|
84
|
-
|
85
|
-
</ul>
|
86
|
-
<a href="#" class="inheritanceTree">show all</a>
|
87
|
-
|
88
|
-
</dd>
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
<dt class="r2 last">Defined in:</dt>
|
99
|
-
<dd class="r2 last">lib/genevalidator/validation_gene_merge.rb</dd>
|
100
|
-
|
101
|
-
</dl>
|
102
|
-
<div class="clear"></div>
|
103
|
-
|
104
|
-
<h2>Overview</h2><div class="docstring">
|
105
|
-
<div class="discussion">
|
106
|
-
|
107
|
-
<p>Class that stores the validation output information</p>
|
108
|
-
|
109
|
-
|
110
|
-
</div>
|
111
|
-
</div>
|
112
|
-
<div class="tags">
|
113
|
-
|
114
|
-
|
115
|
-
</div>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
120
|
-
<ul class="summary">
|
121
|
-
|
122
|
-
<li class="public ">
|
123
|
-
<span class="summary_signature">
|
124
|
-
|
125
|
-
<a href="#slope-instance_method" title="#slope (instance method)">- (Object) <strong>slope</strong> </a>
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
</span>
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<span class="note title readonly">readonly</span>
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<span class="summary_desc"><div class='inline'>
|
145
|
-
<p>Returns the value of attribute slope.</p>
|
146
|
-
</div></span>
|
147
|
-
|
148
|
-
</li>
|
149
|
-
|
150
|
-
|
151
|
-
<li class="public ">
|
152
|
-
<span class="summary_signature">
|
153
|
-
|
154
|
-
<a href="#threshold_down-instance_method" title="#threshold_down (instance method)">- (Object) <strong>threshold_down</strong> </a>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
</span>
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
<span class="note title readonly">readonly</span>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
<span class="summary_desc"><div class='inline'>
|
174
|
-
<p>Returns the value of attribute threshold_down.</p>
|
175
|
-
</div></span>
|
176
|
-
|
177
|
-
</li>
|
178
|
-
|
179
|
-
|
180
|
-
<li class="public ">
|
181
|
-
<span class="summary_signature">
|
182
|
-
|
183
|
-
<a href="#threshold_up-instance_method" title="#threshold_up (instance method)">- (Object) <strong>threshold_up</strong> </a>
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
</span>
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
<span class="note title readonly">readonly</span>
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
<span class="summary_desc"><div class='inline'>
|
203
|
-
<p>Returns the value of attribute threshold_up.</p>
|
204
|
-
</div></span>
|
205
|
-
|
206
|
-
</li>
|
207
|
-
|
208
|
-
|
209
|
-
</ul>
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="ValidationReport.html" title="ValidationReport (class)">ValidationReport</a></span></h3>
|
216
|
-
<p class="inherited"><span class='object_link'><a href="ValidationReport.html#bg_color-instance_method" title="ValidationReport#bg_color (method)">#bg_color</a></span>, <span class='object_link'><a href="ValidationReport.html#errors-instance_method" title="ValidationReport#errors (method)">#errors</a></span>, <span class='object_link'><a href="ValidationReport.html#expected-instance_method" title="ValidationReport#expected (method)">#expected</a></span>, <span class='object_link'><a href="ValidationReport.html#message-instance_method" title="ValidationReport#message (method)">#message</a></span>, <span class='object_link'><a href="ValidationReport.html#plot_files-instance_method" title="ValidationReport#plot_files (method)">#plot_files</a></span>, <span class='object_link'><a href="ValidationReport.html#result-instance_method" title="ValidationReport#result (method)">#result</a></span>, <span class='object_link'><a href="ValidationReport.html#validation_result-instance_method" title="ValidationReport#validation_result (method)">#validation_result</a></span></p>
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
<h2>
|
221
|
-
Instance Method Summary
|
222
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
223
|
-
</h2>
|
224
|
-
|
225
|
-
<ul class="summary">
|
226
|
-
|
227
|
-
<li class="public ">
|
228
|
-
<span class="summary_signature">
|
229
|
-
|
230
|
-
<a href="#color-instance_method" title="#color (instance method)">- (Object) <strong>color</strong> </a>
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
</span>
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
<span class="summary_desc"><div class='inline'></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)">- (GeneMergeValidationOutput) <strong>initialize</strong>(slope, threshold_down = 0.4, threshold_up = 1.2, expected = :no) </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 GeneMergeValidationOutput.</p>
|
270
|
-
</div></span>
|
271
|
-
|
272
|
-
</li>
|
273
|
-
|
274
|
-
|
275
|
-
<li class="public ">
|
276
|
-
<span class="summary_signature">
|
277
|
-
|
278
|
-
<a href="#print-instance_method" title="#print (instance method)">- (Object) <strong>print</strong> </a>
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
</span>
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
293
|
-
|
294
|
-
</li>
|
295
|
-
|
296
|
-
|
297
|
-
<li class="public ">
|
298
|
-
<span class="summary_signature">
|
299
|
-
|
300
|
-
<a href="#validation-instance_method" title="#validation (instance method)">- (Object) <strong>validation</strong> </a>
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
</span>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
315
|
-
|
316
|
-
</li>
|
317
|
-
|
318
|
-
|
319
|
-
</ul>
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
<div id="constructor_details" class="method_details_list">
|
329
|
-
<h2>Constructor Details</h2>
|
330
|
-
|
331
|
-
<div class="method_details first">
|
332
|
-
<h3 class="signature first" id="initialize-instance_method">
|
333
|
-
|
334
|
-
- (<tt><span class='object_link'><a href="" title="GeneMergeValidationOutput (class)">GeneMergeValidationOutput</a></span></tt>) <strong>initialize</strong>(slope, threshold_down = 0.4, threshold_up = 1.2, expected = :no)
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
</h3><div class="docstring">
|
341
|
-
<div class="discussion">
|
342
|
-
|
343
|
-
<p>Returns a new instance of GeneMergeValidationOutput</p>
|
344
|
-
|
345
|
-
|
346
|
-
</div>
|
347
|
-
</div>
|
348
|
-
<div class="tags">
|
349
|
-
|
350
|
-
|
351
|
-
</div><table class="source_code">
|
352
|
-
<tr>
|
353
|
-
<td>
|
354
|
-
<pre class="lines">
|
355
|
-
|
356
|
-
|
357
|
-
12
|
358
|
-
13
|
359
|
-
14
|
360
|
-
15
|
361
|
-
16
|
362
|
-
17
|
363
|
-
18
|
364
|
-
19</pre>
|
365
|
-
</td>
|
366
|
-
<td>
|
367
|
-
<pre class="code"><span class="info file"># File 'lib/genevalidator/validation_gene_merge.rb', line 12</span>
|
368
|
-
|
369
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_slope'>slope</span><span class='comma'>,</span> <span class='id identifier rubyid_threshold_down'>threshold_down</span> <span class='op'>=</span> <span class='float'>0.4</span><span class='comma'>,</span> <span class='id identifier rubyid_threshold_up'>threshold_up</span> <span class='op'>=</span> <span class='float'>1.2</span><span class='comma'>,</span> <span class='id identifier rubyid_expected'>expected</span> <span class='op'>=</span> <span class='symbol'>:no</span><span class='rparen'>)</span>
|
370
|
-
<span class='ivar'>@slope</span> <span class='op'>=</span> <span class='id identifier rubyid_slope'>slope</span>
|
371
|
-
<span class='ivar'>@threshold_down</span> <span class='op'>=</span> <span class='id identifier rubyid_threshold_down'>threshold_down</span>
|
372
|
-
<span class='ivar'>@threshold_up</span> <span class='op'>=</span> <span class='id identifier rubyid_threshold_up'>threshold_up</span>
|
373
|
-
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_validation'>validation</span>
|
374
|
-
<span class='ivar'>@expected</span> <span class='op'>=</span> <span class='id identifier rubyid_expected'>expected</span>
|
375
|
-
<span class='ivar'>@plot_files</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
376
|
-
<span class='kw'>end</span></pre>
|
377
|
-
</td>
|
378
|
-
</tr>
|
379
|
-
</table>
|
380
|
-
</div>
|
381
|
-
|
382
|
-
</div>
|
383
|
-
|
384
|
-
<div id="instance_attr_details" class="attr_details">
|
385
|
-
<h2>Instance Attribute Details</h2>
|
386
|
-
|
387
|
-
|
388
|
-
<span id=""></span>
|
389
|
-
<div class="method_details first">
|
390
|
-
<h3 class="signature first" id="slope-instance_method">
|
391
|
-
|
392
|
-
- (<tt>Object</tt>) <strong>slope</strong> <span class="extras">(readonly)</span>
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
</h3><div class="docstring">
|
399
|
-
<div class="discussion">
|
400
|
-
|
401
|
-
<p>Returns the value of attribute slope</p>
|
402
|
-
|
403
|
-
|
404
|
-
</div>
|
405
|
-
</div>
|
406
|
-
<div class="tags">
|
407
|
-
|
408
|
-
|
409
|
-
</div><table class="source_code">
|
410
|
-
<tr>
|
411
|
-
<td>
|
412
|
-
<pre class="lines">
|
413
|
-
|
414
|
-
|
415
|
-
8
|
416
|
-
9
|
417
|
-
10</pre>
|
418
|
-
</td>
|
419
|
-
<td>
|
420
|
-
<pre class="code"><span class="info file"># File 'lib/genevalidator/validation_gene_merge.rb', line 8</span>
|
421
|
-
|
422
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_slope'>slope</span>
|
423
|
-
<span class='ivar'>@slope</span>
|
424
|
-
<span class='kw'>end</span></pre>
|
425
|
-
</td>
|
426
|
-
</tr>
|
427
|
-
</table>
|
428
|
-
</div>
|
429
|
-
|
430
|
-
|
431
|
-
<span id=""></span>
|
432
|
-
<div class="method_details ">
|
433
|
-
<h3 class="signature " id="threshold_down-instance_method">
|
434
|
-
|
435
|
-
- (<tt>Object</tt>) <strong>threshold_down</strong> <span class="extras">(readonly)</span>
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
</h3><div class="docstring">
|
442
|
-
<div class="discussion">
|
443
|
-
|
444
|
-
<p>Returns the value of attribute threshold_down</p>
|
445
|
-
|
446
|
-
|
447
|
-
</div>
|
448
|
-
</div>
|
449
|
-
<div class="tags">
|
450
|
-
|
451
|
-
|
452
|
-
</div><table class="source_code">
|
453
|
-
<tr>
|
454
|
-
<td>
|
455
|
-
<pre class="lines">
|
456
|
-
|
457
|
-
|
458
|
-
9
|
459
|
-
10
|
460
|
-
11</pre>
|
461
|
-
</td>
|
462
|
-
<td>
|
463
|
-
<pre class="code"><span class="info file"># File 'lib/genevalidator/validation_gene_merge.rb', line 9</span>
|
464
|
-
|
465
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_threshold_down'>threshold_down</span>
|
466
|
-
<span class='ivar'>@threshold_down</span>
|
467
|
-
<span class='kw'>end</span></pre>
|
468
|
-
</td>
|
469
|
-
</tr>
|
470
|
-
</table>
|
471
|
-
</div>
|
472
|
-
|
473
|
-
|
474
|
-
<span id=""></span>
|
475
|
-
<div class="method_details ">
|
476
|
-
<h3 class="signature " id="threshold_up-instance_method">
|
477
|
-
|
478
|
-
- (<tt>Object</tt>) <strong>threshold_up</strong> <span class="extras">(readonly)</span>
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
</h3><div class="docstring">
|
485
|
-
<div class="discussion">
|
486
|
-
|
487
|
-
<p>Returns the value of attribute threshold_up</p>
|
488
|
-
|
489
|
-
|
490
|
-
</div>
|
491
|
-
</div>
|
492
|
-
<div class="tags">
|
493
|
-
|
494
|
-
|
495
|
-
</div><table class="source_code">
|
496
|
-
<tr>
|
497
|
-
<td>
|
498
|
-
<pre class="lines">
|
499
|
-
|
500
|
-
|
501
|
-
10
|
502
|
-
11
|
503
|
-
12</pre>
|
504
|
-
</td>
|
505
|
-
<td>
|
506
|
-
<pre class="code"><span class="info file"># File 'lib/genevalidator/validation_gene_merge.rb', line 10</span>
|
507
|
-
|
508
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_threshold_up'>threshold_up</span>
|
509
|
-
<span class='ivar'>@threshold_up</span>
|
510
|
-
<span class='kw'>end</span></pre>
|
511
|
-
</td>
|
512
|
-
</tr>
|
513
|
-
</table>
|
514
|
-
</div>
|
515
|
-
|
516
|
-
</div>
|
517
|
-
|
518
|
-
|
519
|
-
<div id="instance_method_details" class="method_details_list">
|
520
|
-
<h2>Instance Method Details</h2>
|
521
|
-
|
522
|
-
|
523
|
-
<div class="method_details first">
|
524
|
-
<h3 class="signature first" id="color-instance_method">
|
525
|
-
|
526
|
-
- (<tt>Object</tt>) <strong>color</strong>
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
</h3><table class="source_code">
|
533
|
-
<tr>
|
534
|
-
<td>
|
535
|
-
<pre class="lines">
|
536
|
-
|
537
|
-
|
538
|
-
39
|
539
|
-
40
|
540
|
-
41
|
541
|
-
42
|
542
|
-
43
|
543
|
-
44
|
544
|
-
45</pre>
|
545
|
-
</td>
|
546
|
-
<td>
|
547
|
-
<pre class="code"><span class="info file"># File 'lib/genevalidator/validation_gene_merge.rb', line 39</span>
|
548
|
-
|
549
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_color'>color</span>
|
550
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_validation'>validation</span> <span class='op'>==</span> <span class='symbol'>:no</span>
|
551
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>success</span><span class='tstring_end'>"</span></span>
|
552
|
-
<span class='kw'>else</span>
|
553
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>danger</span><span class='tstring_end'>"</span></span>
|
554
|
-
<span class='kw'>end</span>
|
555
|
-
<span class='kw'>end</span></pre>
|
556
|
-
</td>
|
557
|
-
</tr>
|
558
|
-
</table>
|
559
|
-
</div>
|
560
|
-
|
561
|
-
<div class="method_details ">
|
562
|
-
<h3 class="signature " id="print-instance_method">
|
563
|
-
|
564
|
-
- (<tt>Object</tt>) <strong>print</strong>
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
</h3><table class="source_code">
|
571
|
-
<tr>
|
572
|
-
<td>
|
573
|
-
<pre class="lines">
|
574
|
-
|
575
|
-
|
576
|
-
21
|
577
|
-
22
|
578
|
-
23
|
579
|
-
24
|
580
|
-
25
|
581
|
-
26
|
582
|
-
27</pre>
|
583
|
-
</td>
|
584
|
-
<td>
|
585
|
-
<pre class="code"><span class="info file"># File 'lib/genevalidator/validation_gene_merge.rb', line 21</span>
|
586
|
-
|
587
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_print'>print</span>
|
588
|
-
<span class='kw'>if</span> <span class='ivar'>@slope</span><span class='period'>.</span><span class='id identifier rubyid_nan?'>nan?</span>
|
589
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>slope=Inf</span><span class='tstring_end'>"</span></span>
|
590
|
-
<span class='kw'>else</span>
|
591
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>slope=</span><span class='embexpr_beg'>#{</span><span class='ivar'>@slope</span><span class='period'>.</span><span class='id identifier rubyid_round'>round</span><span class='lparen'>(</span><span class='int'>2</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span>
|
592
|
-
<span class='kw'>end</span>
|
593
|
-
<span class='kw'>end</span></pre>
|
594
|
-
</td>
|
595
|
-
</tr>
|
596
|
-
</table>
|
597
|
-
</div>
|
598
|
-
|
599
|
-
<div class="method_details ">
|
600
|
-
<h3 class="signature " id="validation-instance_method">
|
601
|
-
|
602
|
-
- (<tt>Object</tt>) <strong>validation</strong>
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
</h3><table class="source_code">
|
609
|
-
<tr>
|
610
|
-
<td>
|
611
|
-
<pre class="lines">
|
612
|
-
|
613
|
-
|
614
|
-
29
|
615
|
-
30
|
616
|
-
31
|
617
|
-
32
|
618
|
-
33
|
619
|
-
34
|
620
|
-
35
|
621
|
-
36
|
622
|
-
37</pre>
|
623
|
-
</td>
|
624
|
-
<td>
|
625
|
-
<pre class="code"><span class="info file"># File 'lib/genevalidator/validation_gene_merge.rb', line 29</span>
|
626
|
-
|
627
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_validation'>validation</span>
|
628
|
-
|
629
|
-
<span class='comment'># color gene merge validation
|
630
|
-
</span> <span class='kw'>if</span> <span class='ivar'>@slope</span> <span class='op'>></span> <span class='id identifier rubyid_threshold_down'>threshold_down</span> <span class='kw'>and</span> <span class='ivar'>@slope</span> <span class='op'><</span> <span class='id identifier rubyid_threshold_up'>threshold_up</span>
|
631
|
-
<span class='symbol'>:yes</span>
|
632
|
-
<span class='kw'>else</span>
|
633
|
-
<span class='symbol'>:no</span>
|
634
|
-
<span class='kw'>end</span>
|
635
|
-
<span class='kw'>end</span></pre>
|
636
|
-
</td>
|
637
|
-
</tr>
|
638
|
-
</table>
|
639
|
-
</div>
|
640
|
-
|
641
|
-
</div>
|
642
|
-
|
643
|
-
</div>
|
644
|
-
|
645
|
-
<div id="footer">
|
646
|
-
Generated on Sat Sep 28 07:01:33 2013 by
|
647
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
648
|
-
0.8.7.2 (ruby-1.9.3).
|
649
|
-
</div>
|
650
|
-
|
651
|
-
</body>
|
652
|
-
</html>
|