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,1485 +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: Hsp
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 (H)</a> &raquo;
35
-
36
-
37
- <span class="title">Hsp</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: Hsp
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">Hsp</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/hsp.rb</dd>
98
-
99
- </dl>
100
- <div class="clear"></div>
101
-
102
-
103
-
104
-
105
-
106
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
107
- <ul class="summary">
108
-
109
- <li class="public ">
110
- <span class="summary_signature">
111
-
112
- <a href="#align_len-instance_method" title="#align_len (instance method)">- (Object) <strong>align_len</strong> </a>
113
-
114
-
115
-
116
- </span>
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
- <span class="summary_desc"><div class='inline'>
130
- <p>Returns the value of attribute align_len.</p>
131
- </div></span>
132
-
133
- </li>
134
-
135
-
136
- <li class="public ">
137
- <span class="summary_signature">
138
-
139
- <a href="#bit_score-instance_method" title="#bit_score (instance method)">- (Object) <strong>bit_score</strong> </a>
140
-
141
-
142
-
143
- </span>
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
- <span class="summary_desc"><div class='inline'>
157
- <p>positive (mis)matches with +, mismatches and gaps are with space.</p>
158
- </div></span>
159
-
160
- </li>
161
-
162
-
163
- <li class="public ">
164
- <span class="summary_signature">
165
-
166
- <a href="#gaps-instance_method" title="#gaps (instance method)">- (Object) <strong>gaps</strong> </a>
167
-
168
-
169
-
170
- </span>
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
- <span class="summary_desc"><div class='inline'>
184
- <p>Returns the value of attribute gaps.</p>
185
- </div></span>
186
-
187
- </li>
188
-
189
-
190
- <li class="public ">
191
- <span class="summary_signature">
192
-
193
- <a href="#hit_alignment-instance_method" title="#hit_alignment (instance method)">- (Object) <strong>hit_alignment</strong> </a>
194
-
195
-
196
-
197
- </span>
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
- <span class="summary_desc"><div class='inline'>
211
- <p>Returns the value of attribute hit_alignment.</p>
212
- </div></span>
213
-
214
- </li>
215
-
216
-
217
- <li class="public ">
218
- <span class="summary_signature">
219
-
220
- <a href="#hit_from-instance_method" title="#hit_from (instance method)">- (Object) <strong>hit_from</strong> </a>
221
-
222
-
223
-
224
- </span>
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
- <span class="summary_desc"><div class='inline'>
238
- <p>references from the unaligned hit sequence.</p>
239
- </div></span>
240
-
241
- </li>
242
-
243
-
244
- <li class="public ">
245
- <span class="summary_signature">
246
-
247
- <a href="#hit_to-instance_method" title="#hit_to (instance method)">- (Object) <strong>hit_to</strong> </a>
248
-
249
-
250
-
251
- </span>
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
- <span class="summary_desc"><div class='inline'>
265
- <p>Returns the value of attribute hit_to.</p>
266
- </div></span>
267
-
268
- </li>
269
-
270
-
271
- <li class="public ">
272
- <span class="summary_signature">
273
-
274
- <a href="#hsp_evalue-instance_method" title="#hsp_evalue (instance method)">- (Object) <strong>hsp_evalue</strong> </a>
275
-
276
-
277
-
278
- </span>
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
- <span class="summary_desc"><div class='inline'>
292
- <p>Returns the value of attribute hsp_evalue.</p>
293
- </div></span>
294
-
295
- </li>
296
-
297
-
298
- <li class="public ">
299
- <span class="summary_signature">
300
-
301
- <a href="#hsp_score-instance_method" title="#hsp_score (instance method)">- (Object) <strong>hsp_score</strong> </a>
302
-
303
-
304
-
305
- </span>
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
- <span class="summary_desc"><div class='inline'>
319
- <p>Returns the value of attribute hsp_score.</p>
320
- </div></span>
321
-
322
- </li>
323
-
324
-
325
- <li class="public ">
326
- <span class="summary_signature">
327
-
328
- <a href="#identity-instance_method" title="#identity (instance method)">- (Object) <strong>identity</strong> </a>
329
-
330
-
331
-
332
- </span>
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
- <span class="summary_desc"><div class='inline'>
346
- <p>number of conserved residues.</p>
347
- </div></span>
348
-
349
- </li>
350
-
351
-
352
- <li class="public ">
353
- <span class="summary_signature">
354
-
355
- <a href="#match_query_from-instance_method" title="#match_query_from (instance method)">- (Object) <strong>match_query_from</strong> </a>
356
-
357
-
358
-
359
- </span>
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
- <span class="summary_desc"><div class='inline'>
373
- <p>references from the unaligned query sequence.</p>
374
- </div></span>
375
-
376
- </li>
377
-
378
-
379
- <li class="public ">
380
- <span class="summary_signature">
381
-
382
- <a href="#match_query_to-instance_method" title="#match_query_to (instance method)">- (Object) <strong>match_query_to</strong> </a>
383
-
384
-
385
-
386
- </span>
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
- <span class="summary_desc"><div class='inline'>
400
- <p>Returns the value of attribute match_query_to.</p>
401
- </div></span>
402
-
403
- </li>
404
-
405
-
406
- <li class="public ">
407
- <span class="summary_signature">
408
-
409
- <a href="#middles-instance_method" title="#middles (instance method)">- (Object) <strong>middles</strong> </a>
410
-
411
-
412
-
413
- </span>
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
- <span class="summary_desc"><div class='inline'>
427
- <p>conserved residues are with letters,.</p>
428
- </div></span>
429
-
430
- </li>
431
-
432
-
433
- <li class="public ">
434
- <span class="summary_signature">
435
-
436
- <a href="#pidentity-instance_method" title="#pidentity (instance method)">- (Object) <strong>pidentity</strong> </a>
437
-
438
-
439
-
440
- </span>
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
- <span class="summary_desc"><div class='inline'>
454
- <p>percentage of identical matches.</p>
455
- </div></span>
456
-
457
- </li>
458
-
459
-
460
- <li class="public ">
461
- <span class="summary_signature">
462
-
463
- <a href="#positive-instance_method" title="#positive (instance method)">- (Object) <strong>positive</strong> </a>
464
-
465
-
466
-
467
- </span>
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
-
479
-
480
- <span class="summary_desc"><div class='inline'>
481
- <p>positive score for the (mis)match.</p>
482
- </div></span>
483
-
484
- </li>
485
-
486
-
487
- <li class="public ">
488
- <span class="summary_signature">
489
-
490
- <a href="#query_alignment-instance_method" title="#query_alignment (instance method)">- (Object) <strong>query_alignment</strong> </a>
491
-
492
-
493
-
494
- </span>
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
- <span class="summary_desc"><div class='inline'>
508
- <p>Returns the value of attribute query_alignment.</p>
509
- </div></span>
510
-
511
- </li>
512
-
513
-
514
- <li class="public ">
515
- <span class="summary_signature">
516
-
517
- <a href="#query_reading_frame-instance_method" title="#query_reading_frame (instance method)">- (Object) <strong>query_reading_frame</strong> </a>
518
-
519
-
520
-
521
- </span>
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
- <span class="summary_desc"><div class='inline'>
535
- <p>Returns the value of attribute query_reading_frame.</p>
536
- </div></span>
537
-
538
- </li>
539
-
540
-
541
- </ul>
542
-
543
-
544
-
545
-
546
-
547
- <h2>
548
- Instance Method Summary
549
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
550
- </h2>
551
-
552
- <ul class="summary">
553
-
554
- <li class="public ">
555
- <span class="summary_signature">
556
-
557
- <a href="#init_tabular_attribute-instance_method" title="#init_tabular_attribute (instance method)">- (Object) <strong>init_tabular_attribute</strong>(column, value, type = :protein) </a>
558
-
559
-
560
-
561
- </span>
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
- <span class="summary_desc"><div class='inline'>
572
- <p>Initializes the corresponding attribute of the hsp with respect to the
573
- column name of the tabular blast output Params: <tt>column</tt>: String
574
- with column name <tt>value</tt>: Value of the column <tt>type</tt>: type of
575
- the sequences: :nucleotide or :protein.</p>
576
- </div></span>
577
-
578
- </li>
579
-
580
-
581
- <li class="public ">
582
- <span class="summary_signature">
583
-
584
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Hsp) <strong>initialize</strong> </a>
585
-
586
-
587
-
588
- </span>
589
-
590
-
591
- <span class="note title constructor">constructor</span>
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
- <span class="summary_desc"><div class='inline'>
601
- <p>A new instance of Hsp.</p>
602
- </div></span>
603
-
604
- </li>
605
-
606
-
607
- </ul>
608
-
609
-
610
- <div id="constructor_details" class="method_details_list">
611
- <h2>Constructor Details</h2>
612
-
613
- <div class="method_details first">
614
- <h3 class="signature first" id="initialize-instance_method">
615
-
616
- - (<tt><span class='object_link'><a href="" title="Hsp (class)">Hsp</a></span></tt>) <strong>initialize</strong>
617
-
618
-
619
-
620
-
621
-
622
- </h3><div class="docstring">
623
- <div class="discussion">
624
-
625
- <p>Returns a new instance of Hsp</p>
626
-
627
-
628
- </div>
629
- </div>
630
- <div class="tags">
631
-
632
-
633
- </div><table class="source_code">
634
- <tr>
635
- <td>
636
- <pre class="lines">
637
-
638
-
639
- 25
640
- 26
641
- 27
642
- 28</pre>
643
- </td>
644
- <td>
645
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 25</span>
646
-
647
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
648
- <span class='id identifier rubyid_query_alignment'>query_alignment</span> <span class='op'>=</span> <span class='kw'>nil</span>
649
- <span class='id identifier rubyid_hit_alignment'>hit_alignment</span> <span class='op'>=</span> <span class='kw'>nil</span>
650
- <span class='kw'>end</span></pre>
651
- </td>
652
- </tr>
653
- </table>
654
- </div>
655
-
656
- </div>
657
-
658
- <div id="instance_attr_details" class="attr_details">
659
- <h2>Instance Attribute Details</h2>
660
-
661
-
662
- <span id="align_len=-instance_method"></span>
663
- <div class="method_details first">
664
- <h3 class="signature first" id="align_len-instance_method">
665
-
666
- - (<tt>Object</tt>) <strong>align_len</strong>
667
-
668
-
669
-
670
-
671
-
672
- </h3><div class="docstring">
673
- <div class="discussion">
674
-
675
- <p>Returns the value of attribute align_len</p>
676
-
677
-
678
- </div>
679
- </div>
680
- <div class="tags">
681
-
682
-
683
- </div><table class="source_code">
684
- <tr>
685
- <td>
686
- <pre class="lines">
687
-
688
-
689
- 23
690
- 24
691
- 25</pre>
692
- </td>
693
- <td>
694
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 23</span>
695
-
696
- <span class='kw'>def</span> <span class='id identifier rubyid_align_len'>align_len</span>
697
- <span class='ivar'>@align_len</span>
698
- <span class='kw'>end</span></pre>
699
- </td>
700
- </tr>
701
- </table>
702
- </div>
703
-
704
-
705
- <span id="bit_score=-instance_method"></span>
706
- <div class="method_details ">
707
- <h3 class="signature " id="bit_score-instance_method">
708
-
709
- - (<tt>Object</tt>) <strong>bit_score</strong>
710
-
711
-
712
-
713
-
714
-
715
- </h3><div class="docstring">
716
- <div class="discussion">
717
-
718
- <p>positive (mis)matches with +, mismatches and gaps are with space</p>
719
-
720
-
721
- </div>
722
- </div>
723
- <div class="tags">
724
-
725
-
726
- </div><table class="source_code">
727
- <tr>
728
- <td>
729
- <pre class="lines">
730
-
731
-
732
- 16
733
- 17
734
- 18</pre>
735
- </td>
736
- <td>
737
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 16</span>
738
-
739
- <span class='kw'>def</span> <span class='id identifier rubyid_bit_score'>bit_score</span>
740
- <span class='ivar'>@bit_score</span>
741
- <span class='kw'>end</span></pre>
742
- </td>
743
- </tr>
744
- </table>
745
- </div>
746
-
747
-
748
- <span id="gaps=-instance_method"></span>
749
- <div class="method_details ">
750
- <h3 class="signature " id="gaps-instance_method">
751
-
752
- - (<tt>Object</tt>) <strong>gaps</strong>
753
-
754
-
755
-
756
-
757
-
758
- </h3><div class="docstring">
759
- <div class="discussion">
760
-
761
- <p>Returns the value of attribute gaps</p>
762
-
763
-
764
- </div>
765
- </div>
766
- <div class="tags">
767
-
768
-
769
- </div><table class="source_code">
770
- <tr>
771
- <td>
772
- <pre class="lines">
773
-
774
-
775
- 22
776
- 23
777
- 24</pre>
778
- </td>
779
- <td>
780
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 22</span>
781
-
782
- <span class='kw'>def</span> <span class='id identifier rubyid_gaps'>gaps</span>
783
- <span class='ivar'>@gaps</span>
784
- <span class='kw'>end</span></pre>
785
- </td>
786
- </tr>
787
- </table>
788
- </div>
789
-
790
-
791
- <span id="hit_alignment=-instance_method"></span>
792
- <div class="method_details ">
793
- <h3 class="signature " id="hit_alignment-instance_method">
794
-
795
- - (<tt>Object</tt>) <strong>hit_alignment</strong>
796
-
797
-
798
-
799
-
800
-
801
- </h3><div class="docstring">
802
- <div class="discussion">
803
-
804
- <p>Returns the value of attribute hit_alignment</p>
805
-
806
-
807
- </div>
808
- </div>
809
- <div class="tags">
810
-
811
-
812
- </div><table class="source_code">
813
- <tr>
814
- <td>
815
- <pre class="lines">
816
-
817
-
818
- 11
819
- 12
820
- 13</pre>
821
- </td>
822
- <td>
823
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 11</span>
824
-
825
- <span class='kw'>def</span> <span class='id identifier rubyid_hit_alignment'>hit_alignment</span>
826
- <span class='ivar'>@hit_alignment</span>
827
- <span class='kw'>end</span></pre>
828
- </td>
829
- </tr>
830
- </table>
831
- </div>
832
-
833
-
834
- <span id="hit_from=-instance_method"></span>
835
- <div class="method_details ">
836
- <h3 class="signature " id="hit_from-instance_method">
837
-
838
- - (<tt>Object</tt>) <strong>hit_from</strong>
839
-
840
-
841
-
842
-
843
-
844
- </h3><div class="docstring">
845
- <div class="discussion">
846
-
847
- <p>references from the unaligned hit sequence</p>
848
-
849
-
850
- </div>
851
- </div>
852
- <div class="tags">
853
-
854
-
855
- </div><table class="source_code">
856
- <tr>
857
- <td>
858
- <pre class="lines">
859
-
860
-
861
- 6
862
- 7
863
- 8</pre>
864
- </td>
865
- <td>
866
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 6</span>
867
-
868
- <span class='kw'>def</span> <span class='id identifier rubyid_hit_from'>hit_from</span>
869
- <span class='ivar'>@hit_from</span>
870
- <span class='kw'>end</span></pre>
871
- </td>
872
- </tr>
873
- </table>
874
- </div>
875
-
876
-
877
- <span id="hit_to=-instance_method"></span>
878
- <div class="method_details ">
879
- <h3 class="signature " id="hit_to-instance_method">
880
-
881
- - (<tt>Object</tt>) <strong>hit_to</strong>
882
-
883
-
884
-
885
-
886
-
887
- </h3><div class="docstring">
888
- <div class="discussion">
889
-
890
- <p>Returns the value of attribute hit_to</p>
891
-
892
-
893
- </div>
894
- </div>
895
- <div class="tags">
896
-
897
-
898
- </div><table class="source_code">
899
- <tr>
900
- <td>
901
- <pre class="lines">
902
-
903
-
904
- 7
905
- 8
906
- 9</pre>
907
- </td>
908
- <td>
909
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 7</span>
910
-
911
- <span class='kw'>def</span> <span class='id identifier rubyid_hit_to'>hit_to</span>
912
- <span class='ivar'>@hit_to</span>
913
- <span class='kw'>end</span></pre>
914
- </td>
915
- </tr>
916
- </table>
917
- </div>
918
-
919
-
920
- <span id="hsp_evalue=-instance_method"></span>
921
- <div class="method_details ">
922
- <h3 class="signature " id="hsp_evalue-instance_method">
923
-
924
- - (<tt>Object</tt>) <strong>hsp_evalue</strong>
925
-
926
-
927
-
928
-
929
-
930
- </h3><div class="docstring">
931
- <div class="discussion">
932
-
933
- <p>Returns the value of attribute hsp_evalue</p>
934
-
935
-
936
- </div>
937
- </div>
938
- <div class="tags">
939
-
940
-
941
- </div><table class="source_code">
942
- <tr>
943
- <td>
944
- <pre class="lines">
945
-
946
-
947
- 18
948
- 19
949
- 20</pre>
950
- </td>
951
- <td>
952
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 18</span>
953
-
954
- <span class='kw'>def</span> <span class='id identifier rubyid_hsp_evalue'>hsp_evalue</span>
955
- <span class='ivar'>@hsp_evalue</span>
956
- <span class='kw'>end</span></pre>
957
- </td>
958
- </tr>
959
- </table>
960
- </div>
961
-
962
-
963
- <span id="hsp_score=-instance_method"></span>
964
- <div class="method_details ">
965
- <h3 class="signature " id="hsp_score-instance_method">
966
-
967
- - (<tt>Object</tt>) <strong>hsp_score</strong>
968
-
969
-
970
-
971
-
972
-
973
- </h3><div class="docstring">
974
- <div class="discussion">
975
-
976
- <p>Returns the value of attribute hsp_score</p>
977
-
978
-
979
- </div>
980
- </div>
981
- <div class="tags">
982
-
983
-
984
- </div><table class="source_code">
985
- <tr>
986
- <td>
987
- <pre class="lines">
988
-
989
-
990
- 17
991
- 18
992
- 19</pre>
993
- </td>
994
- <td>
995
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 17</span>
996
-
997
- <span class='kw'>def</span> <span class='id identifier rubyid_hsp_score'>hsp_score</span>
998
- <span class='ivar'>@hsp_score</span>
999
- <span class='kw'>end</span></pre>
1000
- </td>
1001
- </tr>
1002
- </table>
1003
- </div>
1004
-
1005
-
1006
- <span id="identity=-instance_method"></span>
1007
- <div class="method_details ">
1008
- <h3 class="signature " id="identity-instance_method">
1009
-
1010
- - (<tt>Object</tt>) <strong>identity</strong>
1011
-
1012
-
1013
-
1014
-
1015
-
1016
- </h3><div class="docstring">
1017
- <div class="discussion">
1018
-
1019
- <p>number of conserved residues</p>
1020
-
1021
-
1022
- </div>
1023
- </div>
1024
- <div class="tags">
1025
-
1026
-
1027
- </div><table class="source_code">
1028
- <tr>
1029
- <td>
1030
- <pre class="lines">
1031
-
1032
-
1033
- 19
1034
- 20
1035
- 21</pre>
1036
- </td>
1037
- <td>
1038
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 19</span>
1039
-
1040
- <span class='kw'>def</span> <span class='id identifier rubyid_identity'>identity</span>
1041
- <span class='ivar'>@identity</span>
1042
- <span class='kw'>end</span></pre>
1043
- </td>
1044
- </tr>
1045
- </table>
1046
- </div>
1047
-
1048
-
1049
- <span id="match_query_from=-instance_method"></span>
1050
- <div class="method_details ">
1051
- <h3 class="signature " id="match_query_from-instance_method">
1052
-
1053
- - (<tt>Object</tt>) <strong>match_query_from</strong>
1054
-
1055
-
1056
-
1057
-
1058
-
1059
- </h3><div class="docstring">
1060
- <div class="discussion">
1061
-
1062
- <p>references from the unaligned query sequence</p>
1063
-
1064
-
1065
- </div>
1066
- </div>
1067
- <div class="tags">
1068
-
1069
-
1070
- </div><table class="source_code">
1071
- <tr>
1072
- <td>
1073
- <pre class="lines">
1074
-
1075
-
1076
- 8
1077
- 9
1078
- 10</pre>
1079
- </td>
1080
- <td>
1081
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 8</span>
1082
-
1083
- <span class='kw'>def</span> <span class='id identifier rubyid_match_query_from'>match_query_from</span>
1084
- <span class='ivar'>@match_query_from</span>
1085
- <span class='kw'>end</span></pre>
1086
- </td>
1087
- </tr>
1088
- </table>
1089
- </div>
1090
-
1091
-
1092
- <span id="match_query_to=-instance_method"></span>
1093
- <div class="method_details ">
1094
- <h3 class="signature " id="match_query_to-instance_method">
1095
-
1096
- - (<tt>Object</tt>) <strong>match_query_to</strong>
1097
-
1098
-
1099
-
1100
-
1101
-
1102
- </h3><div class="docstring">
1103
- <div class="discussion">
1104
-
1105
- <p>Returns the value of attribute match_query_to</p>
1106
-
1107
-
1108
- </div>
1109
- </div>
1110
- <div class="tags">
1111
-
1112
-
1113
- </div><table class="source_code">
1114
- <tr>
1115
- <td>
1116
- <pre class="lines">
1117
-
1118
-
1119
- 9
1120
- 10
1121
- 11</pre>
1122
- </td>
1123
- <td>
1124
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 9</span>
1125
-
1126
- <span class='kw'>def</span> <span class='id identifier rubyid_match_query_to'>match_query_to</span>
1127
- <span class='ivar'>@match_query_to</span>
1128
- <span class='kw'>end</span></pre>
1129
- </td>
1130
- </tr>
1131
- </table>
1132
- </div>
1133
-
1134
-
1135
- <span id="middles=-instance_method"></span>
1136
- <div class="method_details ">
1137
- <h3 class="signature " id="middles-instance_method">
1138
-
1139
- - (<tt>Object</tt>) <strong>middles</strong>
1140
-
1141
-
1142
-
1143
-
1144
-
1145
- </h3><div class="docstring">
1146
- <div class="discussion">
1147
-
1148
- <p>conserved residues are with letters,</p>
1149
-
1150
-
1151
- </div>
1152
- </div>
1153
- <div class="tags">
1154
-
1155
-
1156
- </div><table class="source_code">
1157
- <tr>
1158
- <td>
1159
- <pre class="lines">
1160
-
1161
-
1162
- 13
1163
- 14
1164
- 15</pre>
1165
- </td>
1166
- <td>
1167
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 13</span>
1168
-
1169
- <span class='kw'>def</span> <span class='id identifier rubyid_middles'>middles</span>
1170
- <span class='ivar'>@middles</span>
1171
- <span class='kw'>end</span></pre>
1172
- </td>
1173
- </tr>
1174
- </table>
1175
- </div>
1176
-
1177
-
1178
- <span id="pidentity=-instance_method"></span>
1179
- <div class="method_details ">
1180
- <h3 class="signature " id="pidentity-instance_method">
1181
-
1182
- - (<tt>Object</tt>) <strong>pidentity</strong>
1183
-
1184
-
1185
-
1186
-
1187
-
1188
- </h3><div class="docstring">
1189
- <div class="discussion">
1190
-
1191
- <p>percentage of identical matches</p>
1192
-
1193
-
1194
- </div>
1195
- </div>
1196
- <div class="tags">
1197
-
1198
-
1199
- </div><table class="source_code">
1200
- <tr>
1201
- <td>
1202
- <pre class="lines">
1203
-
1204
-
1205
- 20
1206
- 21
1207
- 22</pre>
1208
- </td>
1209
- <td>
1210
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 20</span>
1211
-
1212
- <span class='kw'>def</span> <span class='id identifier rubyid_pidentity'>pidentity</span>
1213
- <span class='ivar'>@pidentity</span>
1214
- <span class='kw'>end</span></pre>
1215
- </td>
1216
- </tr>
1217
- </table>
1218
- </div>
1219
-
1220
-
1221
- <span id="positive=-instance_method"></span>
1222
- <div class="method_details ">
1223
- <h3 class="signature " id="positive-instance_method">
1224
-
1225
- - (<tt>Object</tt>) <strong>positive</strong>
1226
-
1227
-
1228
-
1229
-
1230
-
1231
- </h3><div class="docstring">
1232
- <div class="discussion">
1233
-
1234
- <p>positive score for the (mis)match</p>
1235
-
1236
-
1237
- </div>
1238
- </div>
1239
- <div class="tags">
1240
-
1241
-
1242
- </div><table class="source_code">
1243
- <tr>
1244
- <td>
1245
- <pre class="lines">
1246
-
1247
-
1248
- 21
1249
- 22
1250
- 23</pre>
1251
- </td>
1252
- <td>
1253
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 21</span>
1254
-
1255
- <span class='kw'>def</span> <span class='id identifier rubyid_positive'>positive</span>
1256
- <span class='ivar'>@positive</span>
1257
- <span class='kw'>end</span></pre>
1258
- </td>
1259
- </tr>
1260
- </table>
1261
- </div>
1262
-
1263
-
1264
- <span id="query_alignment=-instance_method"></span>
1265
- <div class="method_details ">
1266
- <h3 class="signature " id="query_alignment-instance_method">
1267
-
1268
- - (<tt>Object</tt>) <strong>query_alignment</strong>
1269
-
1270
-
1271
-
1272
-
1273
-
1274
- </h3><div class="docstring">
1275
- <div class="discussion">
1276
-
1277
- <p>Returns the value of attribute query_alignment</p>
1278
-
1279
-
1280
- </div>
1281
- </div>
1282
- <div class="tags">
1283
-
1284
-
1285
- </div><table class="source_code">
1286
- <tr>
1287
- <td>
1288
- <pre class="lines">
1289
-
1290
-
1291
- 12
1292
- 13
1293
- 14</pre>
1294
- </td>
1295
- <td>
1296
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 12</span>
1297
-
1298
- <span class='kw'>def</span> <span class='id identifier rubyid_query_alignment'>query_alignment</span>
1299
- <span class='ivar'>@query_alignment</span>
1300
- <span class='kw'>end</span></pre>
1301
- </td>
1302
- </tr>
1303
- </table>
1304
- </div>
1305
-
1306
-
1307
- <span id="query_reading_frame=-instance_method"></span>
1308
- <div class="method_details ">
1309
- <h3 class="signature " id="query_reading_frame-instance_method">
1310
-
1311
- - (<tt>Object</tt>) <strong>query_reading_frame</strong>
1312
-
1313
-
1314
-
1315
-
1316
-
1317
- </h3><div class="docstring">
1318
- <div class="discussion">
1319
-
1320
- <p>Returns the value of attribute query_reading_frame</p>
1321
-
1322
-
1323
- </div>
1324
- </div>
1325
- <div class="tags">
1326
-
1327
-
1328
- </div><table class="source_code">
1329
- <tr>
1330
- <td>
1331
- <pre class="lines">
1332
-
1333
-
1334
- 10
1335
- 11
1336
- 12</pre>
1337
- </td>
1338
- <td>
1339
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 10</span>
1340
-
1341
- <span class='kw'>def</span> <span class='id identifier rubyid_query_reading_frame'>query_reading_frame</span>
1342
- <span class='ivar'>@query_reading_frame</span>
1343
- <span class='kw'>end</span></pre>
1344
- </td>
1345
- </tr>
1346
- </table>
1347
- </div>
1348
-
1349
- </div>
1350
-
1351
-
1352
- <div id="instance_method_details" class="method_details_list">
1353
- <h2>Instance Method Details</h2>
1354
-
1355
-
1356
- <div class="method_details first">
1357
- <h3 class="signature first" id="init_tabular_attribute-instance_method">
1358
-
1359
- - (<tt>Object</tt>) <strong>init_tabular_attribute</strong>(column, value, type = :protein)
1360
-
1361
-
1362
-
1363
-
1364
-
1365
- </h3><div class="docstring">
1366
- <div class="discussion">
1367
-
1368
- <p>Initializes the corresponding attribute of the hsp with respect to the
1369
- column name of the tabular blast output Params: <tt>column</tt>: String
1370
- with column name <tt>value</tt>: Value of the column <tt>type</tt>: type of
1371
- the sequences: :nucleotide or :protein</p>
1372
-
1373
-
1374
- </div>
1375
- </div>
1376
- <div class="tags">
1377
-
1378
-
1379
- </div><table class="source_code">
1380
- <tr>
1381
- <td>
1382
- <pre class="lines">
1383
-
1384
-
1385
- 37
1386
- 38
1387
- 39
1388
- 40
1389
- 41
1390
- 42
1391
- 43
1392
- 44
1393
- 45
1394
- 46
1395
- 47
1396
- 48
1397
- 49
1398
- 50
1399
- 51
1400
- 52
1401
- 53
1402
- 54
1403
- 55
1404
- 56
1405
- 57
1406
- 58
1407
- 59
1408
- 60
1409
- 61
1410
- 62
1411
- 63
1412
- 64
1413
- 65
1414
- 66
1415
- 67
1416
- 68
1417
- 69
1418
- 70
1419
- 71
1420
- 72
1421
- 73
1422
- 74
1423
- 75
1424
- 76</pre>
1425
- </td>
1426
- <td>
1427
- <pre class="code"><span class="info file"># File 'lib/genevalidator/hsp.rb', line 37</span>
1428
-
1429
- <span class='kw'>def</span> <span class='id identifier rubyid_init_tabular_attribute'>init_tabular_attribute</span><span class='lparen'>(</span><span class='id identifier rubyid_column'>column</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='op'>=</span><span class='symbol'>:protein</span><span class='rparen'>)</span>
1430
- <span class='kw'>case</span> <span class='id identifier rubyid_column'>column</span>
1431
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>qstart</span><span class='tstring_end'>&quot;</span></span>
1432
- <span class='kw'>if</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='symbol'>:nucleotide</span>
1433
- <span class='ivar'>@match_query_from</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='op'>/</span><span class='int'>3</span><span class='rparen'>)</span><span class='op'>+</span><span class='int'>1</span>
1434
- <span class='kw'>else</span>
1435
- <span class='ivar'>@match_query_from</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
1436
- <span class='kw'>end</span>
1437
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>qend</span><span class='tstring_end'>&quot;</span></span>
1438
- <span class='kw'>if</span> <span class='id identifier rubyid_type'>type</span> <span class='op'>==</span> <span class='symbol'>:nucleotide</span>
1439
- <span class='ivar'>@match_query_to</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='op'>/</span><span class='int'>3</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='int'>1</span>
1440
- <span class='kw'>else</span>
1441
- <span class='ivar'>@match_query_to</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
1442
- <span class='kw'>end</span>
1443
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>qframe</span><span class='tstring_end'>&quot;</span></span>
1444
- <span class='ivar'>@query_reading_frame</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
1445
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>sstart</span><span class='tstring_end'>&quot;</span></span>
1446
- <span class='ivar'>@hit_from</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
1447
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>send</span><span class='tstring_end'>&quot;</span></span>
1448
- <span class='ivar'>@hit_to</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
1449
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>qseq</span><span class='tstring_end'>&quot;</span></span>
1450
- <span class='ivar'>@query_alignment</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
1451
- <span class='id identifier rubyid_seq_type'>seq_type</span> <span class='op'>=</span> <span class='const'>BlastUtils</span><span class='period'>.</span><span class='id identifier rubyid_guess_sequence_type'>guess_sequence_type</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
1452
- <span class='kw'>if</span> <span class='id identifier rubyid_seq_type'>seq_type</span> <span class='op'>!=</span> <span class='kw'>nil</span> <span class='kw'>and</span> <span class='id identifier rubyid_seq_type'>seq_type</span> <span class='op'>!=</span> <span class='symbol'>:protein</span>
1453
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>SequenceTypeError</span>
1454
- <span class='kw'>end</span>
1455
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>sseq</span><span class='tstring_end'>&quot;</span></span>
1456
- <span class='ivar'>@hit_alignment</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
1457
- <span class='id identifier rubyid_seq_type'>seq_type</span> <span class='op'>=</span> <span class='const'>BlastUtils</span><span class='period'>.</span><span class='id identifier rubyid_guess_sequence_type'>guess_sequence_type</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
1458
- <span class='kw'>if</span> <span class='id identifier rubyid_seq_type'>seq_type</span> <span class='op'>!=</span> <span class='kw'>nil</span> <span class='kw'>and</span> <span class='id identifier rubyid_seq_type'>seq_type</span> <span class='op'>!=</span> <span class='symbol'>:protein</span>
1459
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>SequenceTypeError</span>
1460
- <span class='kw'>end</span>
1461
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>length</span><span class='tstring_end'>&quot;</span></span>
1462
- <span class='ivar'>@align_len</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
1463
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>pident</span><span class='tstring_end'>&quot;</span></span>
1464
- <span class='ivar'>@pidentity</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span>
1465
- <span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>evalue</span><span class='tstring_end'>&quot;</span></span>
1466
- <span class='ivar'>@hsp_evalue</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span>
1467
- <span class='kw'>end</span>
1468
- <span class='kw'>end</span></pre>
1469
- </td>
1470
- </tr>
1471
- </table>
1472
- </div>
1473
-
1474
- </div>
1475
-
1476
- </div>
1477
-
1478
- <div id="footer">
1479
- Generated on Sat Sep 28 07:01:32 2013 by
1480
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1481
- 0.8.7.2 (ruby-1.9.3).
1482
- </div>
1483
-
1484
- </body>
1485
- </html>