bio 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +3421 -0
- data/KNOWN_ISSUES.rdoc +88 -0
- data/README.rdoc +252 -0
- data/README_DEV.rdoc +285 -0
- data/Rakefile +143 -0
- data/bin/bioruby +0 -0
- data/bin/br_biofetch.rb +0 -0
- data/bin/br_bioflat.rb +12 -1
- data/bin/br_biogetseq.rb +0 -0
- data/bin/br_pmfetch.rb +4 -3
- data/bioruby.gemspec +477 -0
- data/bioruby.gemspec.erb +117 -0
- data/doc/Changes-0.7.rd +7 -0
- data/doc/Changes-1.3.rdoc +239 -0
- data/doc/Tutorial.rd +296 -184
- data/doc/Tutorial.rd.html +1031 -0
- data/doc/Tutorial.rd.ja +111 -45
- data/doc/Tutorial.rd.ja.html +2225 -0
- data/doc/bioruby.css +281 -0
- data/extconf.rb +2 -0
- data/lib/bio.rb +29 -4
- data/lib/bio/appl/blast.rb +306 -121
- data/lib/bio/appl/blast/ddbj.rb +142 -0
- data/lib/bio/appl/blast/format0.rb +35 -25
- data/lib/bio/appl/blast/format8.rb +2 -2
- data/lib/bio/appl/blast/genomenet.rb +263 -0
- data/lib/bio/appl/blast/ncbioptions.rb +220 -0
- data/lib/bio/appl/blast/remote.rb +106 -0
- data/lib/bio/appl/blast/report.rb +260 -9
- data/lib/bio/appl/blast/rexml.rb +12 -5
- data/lib/bio/appl/blast/rpsblast.rb +277 -0
- data/lib/bio/appl/blast/wublast.rb +133 -12
- data/lib/bio/appl/blast/xmlparser.rb +35 -18
- data/lib/bio/appl/blat/report.rb +46 -5
- data/lib/bio/appl/emboss.rb +62 -13
- data/lib/bio/appl/fasta.rb +9 -11
- data/lib/bio/appl/genscan/report.rb +3 -3
- data/lib/bio/appl/hmmer.rb +1 -1
- data/lib/bio/appl/hmmer/report.rb +10 -10
- data/lib/bio/appl/paml/baseml.rb +95 -0
- data/lib/bio/appl/paml/baseml/report.rb +32 -0
- data/lib/bio/appl/paml/codeml.rb +242 -0
- data/lib/bio/appl/paml/codeml/rates.rb +67 -0
- data/lib/bio/appl/paml/codeml/report.rb +67 -0
- data/lib/bio/appl/paml/common.rb +348 -0
- data/lib/bio/appl/paml/common_report.rb +38 -0
- data/lib/bio/appl/paml/yn00.rb +103 -0
- data/lib/bio/appl/paml/yn00/report.rb +32 -0
- data/lib/bio/appl/psort.rb +2 -2
- data/lib/bio/appl/pts1.rb +5 -5
- data/lib/bio/appl/tmhmm/report.rb +10 -1
- data/lib/bio/command.rb +297 -41
- data/lib/bio/compat/features.rb +157 -0
- data/lib/bio/compat/references.rb +128 -0
- data/lib/bio/db/biosql/biosql_to_biosequence.rb +67 -0
- data/lib/bio/db/biosql/sequence.rb +508 -0
- data/lib/bio/db/embl/common.rb +28 -12
- data/lib/bio/db/embl/embl.rb +107 -9
- data/lib/bio/db/embl/embl_to_biosequence.rb +85 -0
- data/lib/bio/db/embl/format_embl.rb +190 -0
- data/lib/bio/db/embl/sptr.rb +15 -16
- data/lib/bio/db/fantom.rb +6 -8
- data/lib/bio/db/fasta.rb +10 -507
- data/lib/bio/db/fasta/defline.rb +532 -0
- data/lib/bio/db/fasta/fasta_to_biosequence.rb +63 -0
- data/lib/bio/db/fasta/format_fasta.rb +97 -0
- data/lib/bio/db/genbank/common.rb +25 -8
- data/lib/bio/db/genbank/format_genbank.rb +187 -0
- data/lib/bio/db/genbank/genbank.rb +36 -1
- data/lib/bio/db/genbank/genbank_to_biosequence.rb +86 -0
- data/lib/bio/db/gff.rb +1791 -119
- data/lib/bio/db/kegg/glycan.rb +2 -6
- data/lib/bio/db/lasergene.rb +3 -3
- data/lib/bio/db/medline.rb +4 -1
- data/lib/bio/db/newick.rb +10 -10
- data/lib/bio/db/pdb/chain.rb +6 -2
- data/lib/bio/db/pdb/pdb.rb +12 -3
- data/lib/bio/db/rebase.rb +7 -8
- data/lib/bio/db/soft.rb +3 -3
- data/lib/bio/feature.rb +1 -88
- data/lib/bio/io/biosql/biodatabase.rb +64 -0
- data/lib/bio/io/biosql/bioentry.rb +29 -0
- data/lib/bio/io/biosql/bioentry_dbxref.rb +11 -0
- data/lib/bio/io/biosql/bioentry_path.rb +12 -0
- data/lib/bio/io/biosql/bioentry_qualifier_value.rb +10 -0
- data/lib/bio/io/biosql/bioentry_reference.rb +10 -0
- data/lib/bio/io/biosql/bioentry_relationship.rb +10 -0
- data/lib/bio/io/biosql/biosequence.rb +11 -0
- data/lib/bio/io/biosql/comment.rb +7 -0
- data/lib/bio/io/biosql/config/database.yml +20 -0
- data/lib/bio/io/biosql/dbxref.rb +13 -0
- data/lib/bio/io/biosql/dbxref_qualifier_value.rb +12 -0
- data/lib/bio/io/biosql/location.rb +32 -0
- data/lib/bio/io/biosql/location_qualifier_value.rb +11 -0
- data/lib/bio/io/biosql/ontology.rb +10 -0
- data/lib/bio/io/biosql/reference.rb +9 -0
- data/lib/bio/io/biosql/seqfeature.rb +32 -0
- data/lib/bio/io/biosql/seqfeature_dbxref.rb +11 -0
- data/lib/bio/io/biosql/seqfeature_path.rb +11 -0
- data/lib/bio/io/biosql/seqfeature_qualifier_value.rb +20 -0
- data/lib/bio/io/biosql/seqfeature_relationship.rb +11 -0
- data/lib/bio/io/biosql/taxon.rb +12 -0
- data/lib/bio/io/biosql/taxon_name.rb +9 -0
- data/lib/bio/io/biosql/term.rb +27 -0
- data/lib/bio/io/biosql/term_dbxref.rb +11 -0
- data/lib/bio/io/biosql/term_path.rb +12 -0
- data/lib/bio/io/biosql/term_relationship.rb +13 -0
- data/lib/bio/io/biosql/term_relationship_term.rb +11 -0
- data/lib/bio/io/biosql/term_synonym.rb +10 -0
- data/lib/bio/io/das.rb +7 -7
- data/lib/bio/io/ddbjxml.rb +57 -0
- data/lib/bio/io/ensembl.rb +2 -2
- data/lib/bio/io/fetch.rb +28 -14
- data/lib/bio/io/flatfile.rb +17 -853
- data/lib/bio/io/flatfile/autodetection.rb +545 -0
- data/lib/bio/io/flatfile/buffer.rb +237 -0
- data/lib/bio/io/flatfile/index.rb +17 -7
- data/lib/bio/io/flatfile/indexer.rb +30 -12
- data/lib/bio/io/flatfile/splitter.rb +297 -0
- data/lib/bio/io/hinv.rb +442 -0
- data/lib/bio/io/keggapi.rb +2 -2
- data/lib/bio/io/ncbirest.rb +733 -0
- data/lib/bio/io/pubmed.rb +34 -80
- data/lib/bio/io/registry.rb +2 -2
- data/lib/bio/io/sql.rb +178 -357
- data/lib/bio/io/togows.rb +458 -0
- data/lib/bio/location.rb +106 -11
- data/lib/bio/pathway.rb +120 -14
- data/lib/bio/reference.rb +115 -101
- data/lib/bio/sequence.rb +164 -183
- data/lib/bio/sequence/adapter.rb +108 -0
- data/lib/bio/sequence/common.rb +22 -45
- data/lib/bio/sequence/compat.rb +2 -2
- data/lib/bio/sequence/dblink.rb +54 -0
- data/lib/bio/sequence/format.rb +254 -77
- data/lib/bio/sequence/format_raw.rb +23 -0
- data/lib/bio/shell.rb +3 -1
- data/lib/bio/shell/core.rb +2 -2
- data/lib/bio/shell/plugin/entry.rb +33 -4
- data/lib/bio/shell/plugin/ncbirest.rb +64 -0
- data/lib/bio/shell/plugin/togows.rb +40 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/bioruby_generator.rb +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/_classes.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/_log.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/_methods.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/_modules.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/_variables.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/bioruby-bg.gif +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/bioruby-gem.png +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/bioruby-link.gif +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/bioruby.css +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/bioruby.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/bioruby_controller.rb +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/bioruby_helper.rb +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/commands.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/history.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/index.rhtml +0 -0
- data/lib/bio/shell/rails/vendor/plugins/{generators → bioruby/generators}/bioruby/templates/spinner.gif +0 -0
- data/lib/bio/tree.rb +4 -2
- data/lib/bio/util/color_scheme.rb +2 -2
- data/lib/bio/util/contingency_table.rb +2 -2
- data/lib/bio/util/restriction_enzyme.rb +2 -2
- data/lib/bio/util/restriction_enzyme/single_strand.rb +6 -5
- data/lib/bio/version.rb +25 -0
- data/rdoc.zsh +8 -0
- data/sample/any2fasta.rb +0 -0
- data/sample/biofetch.rb +0 -0
- data/sample/dbget +0 -0
- data/sample/demo_sequence.rb +158 -0
- data/sample/enzymes.rb +0 -0
- data/sample/fasta2tab.rb +0 -0
- data/sample/fastagrep.rb +72 -0
- data/sample/fastasort.rb +54 -0
- data/sample/fsplit.rb +0 -0
- data/sample/gb2fasta.rb +2 -3
- data/sample/gb2tab.rb +0 -0
- data/sample/gbtab2mysql.rb +0 -0
- data/sample/genes2nuc.rb +0 -0
- data/sample/genes2pep.rb +0 -0
- data/sample/genes2tab.rb +0 -0
- data/sample/genome2rb.rb +0 -0
- data/sample/genome2tab.rb +0 -0
- data/sample/goslim.rb +0 -0
- data/sample/gt2fasta.rb +0 -0
- data/sample/na2aa.rb +34 -0
- data/sample/pmfetch.rb +0 -0
- data/sample/pmsearch.rb +0 -0
- data/sample/ssearch2tab.rb +0 -0
- data/sample/tfastx2tab.rb +0 -0
- data/sample/vs-genes.rb +0 -0
- data/setup.rb +1596 -0
- data/test/data/blast/blastp-multi.m7 +188 -0
- data/test/data/command/echoarg2.bat +1 -0
- data/test/data/paml/codeml/control_file.txt +30 -0
- data/test/data/paml/codeml/output.txt +78 -0
- data/test/data/paml/codeml/rates +217 -0
- data/test/data/rpsblast/misc.rpsblast +193 -0
- data/test/data/soft/GDS100_partial.soft +0 -0
- data/test/data/soft/GSE3457_family_partial.soft +0 -0
- data/test/functional/bio/appl/test_pts1.rb +115 -0
- data/test/functional/bio/io/test_ensembl.rb +123 -80
- data/test/functional/bio/io/test_togows.rb +267 -0
- data/test/functional/bio/sequence/test_output_embl.rb +51 -0
- data/test/functional/bio/test_command.rb +301 -0
- data/test/runner.rb +17 -1
- data/test/unit/bio/appl/blast/test_ncbioptions.rb +112 -0
- data/test/unit/bio/appl/blast/test_report.rb +753 -35
- data/test/unit/bio/appl/blast/test_rpsblast.rb +398 -0
- data/test/unit/bio/appl/paml/codeml/test_rates.rb +45 -0
- data/test/unit/bio/appl/paml/codeml/test_report.rb +45 -0
- data/test/unit/bio/appl/paml/test_codeml.rb +174 -0
- data/test/unit/bio/appl/test_blast.rb +135 -4
- data/test/unit/bio/appl/test_fasta.rb +2 -2
- data/test/unit/bio/appl/test_pts1.rb +1 -64
- data/test/unit/bio/db/embl/test_common.rb +15 -15
- data/test/unit/bio/db/embl/test_embl.rb +4 -4
- data/test/unit/bio/db/embl/test_embl_rel89.rb +5 -5
- data/test/unit/bio/db/embl/test_embl_to_bioseq.rb +203 -0
- data/test/unit/bio/db/embl/test_sptr.rb +38 -1
- data/test/unit/bio/db/pdb/test_pdb.rb +2 -2
- data/test/unit/bio/db/test_gff.rb +1151 -25
- data/test/unit/bio/db/test_medline.rb +127 -0
- data/test/unit/bio/db/test_nexus.rb +5 -1
- data/test/unit/bio/db/test_prosite.rb +4 -4
- data/test/unit/bio/io/flatfile/test_autodetection.rb +375 -0
- data/test/unit/bio/io/flatfile/test_buffer.rb +251 -0
- data/test/unit/bio/io/flatfile/test_splitter.rb +369 -0
- data/test/unit/bio/io/test_ddbjxml.rb +8 -3
- data/test/unit/bio/io/test_fastacmd.rb +5 -5
- data/test/unit/bio/io/test_flatfile.rb +357 -106
- data/test/unit/bio/io/test_soapwsdl.rb +2 -2
- data/test/unit/bio/io/test_togows.rb +161 -0
- data/test/unit/bio/sequence/test_common.rb +210 -11
- data/test/unit/bio/sequence/test_compat.rb +3 -3
- data/test/unit/bio/sequence/test_dblink.rb +58 -0
- data/test/unit/bio/sequence/test_na.rb +2 -2
- data/test/unit/bio/test_command.rb +111 -50
- data/test/unit/bio/test_feature.rb +29 -1
- data/test/unit/bio/test_location.rb +566 -6
- data/test/unit/bio/test_pathway.rb +91 -65
- data/test/unit/bio/test_reference.rb +67 -13
- data/test/unit/bio/util/restriction_enzyme/analysis/test_calculated_cuts.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/analysis/test_cut_ranges.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/analysis/test_sequence_range.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_aligned_strands.rb +4 -3
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_location_pair.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_location_pair_in_enzyme_notation.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_locations.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/double_stranded/test_cut_locations_in_enzyme_notation.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/single_strand/test_cut_locations_in_enzyme_notation.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/test_analysis.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/test_cut_symbol.rb +4 -4
- data/test/unit/bio/util/restriction_enzyme/test_double_stranded.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/test_single_strand.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/test_single_strand_complement.rb +3 -3
- data/test/unit/bio/util/restriction_enzyme/test_string_formatting.rb +3 -3
- data/test/unit/bio/util/test_restriction_enzyme.rb +3 -3
- metadata +202 -167
- data/test/unit/bio/appl/blast/test_xmlparser.rb +0 -388
@@ -1,388 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# test/unit/bio/appl/blast/test_xmlparser.rb - Unit test for Bio::Blast::Report
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright (C) 2005 Mitsuteru Nakao <n@bioruby.org>
|
5
|
-
# License:: The Ruby License
|
6
|
-
#
|
7
|
-
# $Id: test_xmlparser.rb,v 1.7 2007/04/05 23:35:43 trevor Exp $
|
8
|
-
#
|
9
|
-
|
10
|
-
require 'pathname'
|
11
|
-
libpath = Pathname.new(File.join(File.join(File.dirname(__FILE__), ['..'] * 5, 'lib'))).cleanpath.to_s
|
12
|
-
$:.unshift(libpath) unless $:.include?(libpath)
|
13
|
-
|
14
|
-
require 'test/unit'
|
15
|
-
require 'bio/appl/blast'
|
16
|
-
|
17
|
-
|
18
|
-
module Bio
|
19
|
-
class TestBlastFormat7XMLParserData
|
20
|
-
bioruby_root = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 5)).cleanpath.to_s
|
21
|
-
TestDataBlast = Pathname.new(File.join(bioruby_root, 'test', 'data', 'blast')).cleanpath.to_s
|
22
|
-
|
23
|
-
def self.input
|
24
|
-
File.open(File.join(TestDataBlast, 'b0002.faa')).read
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.output
|
28
|
-
File.open(File.join(TestDataBlast, 'b0002.faa.m7')).read
|
29
|
-
# File.open(File.join(TestDataBlast, '2.2.15.blastp.m7')).read
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
class TestBlastReport < Test::Unit::TestCase
|
35
|
-
require 'bio/appl/blast/report'
|
36
|
-
|
37
|
-
def setup
|
38
|
-
@report = Bio::Blast::Report.new(Bio::TestBlastFormat7XMLParserData.output)
|
39
|
-
end
|
40
|
-
|
41
|
-
def test_iterations
|
42
|
-
@report.iterations
|
43
|
-
end
|
44
|
-
|
45
|
-
def test_parameters
|
46
|
-
@report.parameters
|
47
|
-
end
|
48
|
-
|
49
|
-
def test_program
|
50
|
-
@report.program
|
51
|
-
end
|
52
|
-
|
53
|
-
def test_version
|
54
|
-
@report.version
|
55
|
-
end
|
56
|
-
|
57
|
-
def test_reference
|
58
|
-
@report.reference
|
59
|
-
end
|
60
|
-
|
61
|
-
def test_db
|
62
|
-
assert_equal("b0002.faa", @report.db)
|
63
|
-
end
|
64
|
-
|
65
|
-
def test_query_id
|
66
|
-
@report.query_id
|
67
|
-
end
|
68
|
-
|
69
|
-
def test_query_def
|
70
|
-
@report.query_def
|
71
|
-
end
|
72
|
-
|
73
|
-
def test_query_len
|
74
|
-
@report.query_len
|
75
|
-
end
|
76
|
-
|
77
|
-
def test_matrix
|
78
|
-
@report.matrix
|
79
|
-
end
|
80
|
-
|
81
|
-
def test_expect
|
82
|
-
@report.expect
|
83
|
-
end
|
84
|
-
|
85
|
-
def test_inclusion
|
86
|
-
@report.inclusion
|
87
|
-
end
|
88
|
-
|
89
|
-
def test_sc_match
|
90
|
-
@report.sc_match
|
91
|
-
end
|
92
|
-
|
93
|
-
def test_sc_mismatch
|
94
|
-
@report.sc_mismatch
|
95
|
-
end
|
96
|
-
|
97
|
-
def test_gap_open
|
98
|
-
@report.gap_open
|
99
|
-
end
|
100
|
-
|
101
|
-
def test_gap_extend
|
102
|
-
@report.gap_extend
|
103
|
-
end
|
104
|
-
|
105
|
-
def test_filter
|
106
|
-
@report.filter
|
107
|
-
end
|
108
|
-
|
109
|
-
def test_pattern
|
110
|
-
@report.pattern
|
111
|
-
end
|
112
|
-
|
113
|
-
def test_extrez_query
|
114
|
-
@report.entrez_query
|
115
|
-
end
|
116
|
-
|
117
|
-
def test_each_iteration
|
118
|
-
end
|
119
|
-
|
120
|
-
def test_each_hit
|
121
|
-
end
|
122
|
-
|
123
|
-
def test_hits
|
124
|
-
end
|
125
|
-
|
126
|
-
def test_statistics
|
127
|
-
end
|
128
|
-
|
129
|
-
def test_db_num
|
130
|
-
@report.db_num
|
131
|
-
end
|
132
|
-
|
133
|
-
def test_db_len
|
134
|
-
@report.db_len
|
135
|
-
end
|
136
|
-
|
137
|
-
def test_hsp_len
|
138
|
-
@report.hsp_len
|
139
|
-
end
|
140
|
-
|
141
|
-
def test_eff_space
|
142
|
-
@report.eff_space
|
143
|
-
end
|
144
|
-
|
145
|
-
def test_kappa
|
146
|
-
@report.kappa
|
147
|
-
end
|
148
|
-
|
149
|
-
def test_lambda
|
150
|
-
@report.lambda
|
151
|
-
end
|
152
|
-
|
153
|
-
def test_entropy
|
154
|
-
@report.entropy
|
155
|
-
end
|
156
|
-
|
157
|
-
def test_message
|
158
|
-
@report.message
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
|
163
|
-
class TestBlastReportIteration < Test::Unit::TestCase
|
164
|
-
def setup
|
165
|
-
data = TestBlastFormat7XMLParserData.output
|
166
|
-
report = Bio::Blast::Report.new(data)
|
167
|
-
@itr = report.iterations.first
|
168
|
-
end
|
169
|
-
|
170
|
-
def test_hits
|
171
|
-
@itr.hits
|
172
|
-
end
|
173
|
-
|
174
|
-
def test_statistics
|
175
|
-
@itr.statistics
|
176
|
-
end
|
177
|
-
|
178
|
-
def test_num
|
179
|
-
@itr.num
|
180
|
-
end
|
181
|
-
|
182
|
-
def test_message
|
183
|
-
@itr.message
|
184
|
-
end
|
185
|
-
end
|
186
|
-
|
187
|
-
|
188
|
-
class TestBlastReportHit < Test::Unit::TestCase
|
189
|
-
def setup
|
190
|
-
data = Bio::TestBlastFormat7XMLParserData.output
|
191
|
-
report = Bio::Blast::Report.new(data)
|
192
|
-
@hit = report.hits.first
|
193
|
-
end
|
194
|
-
|
195
|
-
def test_hsps
|
196
|
-
@hit.hsps
|
197
|
-
end
|
198
|
-
|
199
|
-
def test_query_id
|
200
|
-
@hit.query_id
|
201
|
-
end
|
202
|
-
|
203
|
-
def test_query_def
|
204
|
-
@hit.query_def
|
205
|
-
end
|
206
|
-
|
207
|
-
def test_query_len
|
208
|
-
@hit.query_len
|
209
|
-
end
|
210
|
-
|
211
|
-
def test_num
|
212
|
-
@hit.num
|
213
|
-
end
|
214
|
-
|
215
|
-
def test_hit_id
|
216
|
-
@hit.hit_id
|
217
|
-
end
|
218
|
-
|
219
|
-
def test_len
|
220
|
-
@hit.len
|
221
|
-
end
|
222
|
-
|
223
|
-
def test_target_len
|
224
|
-
@hit.target_len
|
225
|
-
end
|
226
|
-
|
227
|
-
def test_definition
|
228
|
-
@hit.definition
|
229
|
-
end
|
230
|
-
|
231
|
-
def test_taeget_def
|
232
|
-
@hit.target_def
|
233
|
-
end
|
234
|
-
|
235
|
-
def test_accession
|
236
|
-
@hit.accession
|
237
|
-
end
|
238
|
-
|
239
|
-
def test_target_id
|
240
|
-
@hit.target_id
|
241
|
-
end
|
242
|
-
|
243
|
-
def test_evalue
|
244
|
-
@hit.evalue
|
245
|
-
end
|
246
|
-
|
247
|
-
def test_bit_score
|
248
|
-
@hit.bit_score
|
249
|
-
end
|
250
|
-
|
251
|
-
def test_identity
|
252
|
-
@hit.identity
|
253
|
-
end
|
254
|
-
|
255
|
-
def test_overlap
|
256
|
-
@hit.overlap
|
257
|
-
end
|
258
|
-
|
259
|
-
def test_query_seq
|
260
|
-
@hit.query_seq
|
261
|
-
end
|
262
|
-
|
263
|
-
def test_target_seq
|
264
|
-
@hit.target_seq
|
265
|
-
end
|
266
|
-
|
267
|
-
def test_midline
|
268
|
-
@hit.midline
|
269
|
-
end
|
270
|
-
|
271
|
-
def test_query_start
|
272
|
-
@hit.query_start
|
273
|
-
end
|
274
|
-
|
275
|
-
def test_query_end
|
276
|
-
@hit.query_end
|
277
|
-
end
|
278
|
-
|
279
|
-
def test_target_start
|
280
|
-
@hit.target_start
|
281
|
-
end
|
282
|
-
|
283
|
-
def test_target_end
|
284
|
-
@hit.target_end
|
285
|
-
end
|
286
|
-
|
287
|
-
def test_lap_at
|
288
|
-
@hit.lap_at
|
289
|
-
end
|
290
|
-
end
|
291
|
-
|
292
|
-
|
293
|
-
class TestBlastReportHsp < Test::Unit::TestCase
|
294
|
-
def setup
|
295
|
-
data = Bio::TestBlastFormat7XMLParserData.output
|
296
|
-
report = Bio::Blast::Report.new(data)
|
297
|
-
@hsp = report.hits.first.hsps.first
|
298
|
-
end
|
299
|
-
|
300
|
-
def test_num
|
301
|
-
assert_equal(1, @hsp.num)
|
302
|
-
end
|
303
|
-
|
304
|
-
def test_hit_score
|
305
|
-
@hsp.bit_score
|
306
|
-
end
|
307
|
-
|
308
|
-
def test_score
|
309
|
-
@hsp.score
|
310
|
-
end
|
311
|
-
|
312
|
-
def test_evalue
|
313
|
-
@hsp.evalue
|
314
|
-
end
|
315
|
-
|
316
|
-
def test_identity
|
317
|
-
@hsp.identity
|
318
|
-
end
|
319
|
-
|
320
|
-
def test_gaps
|
321
|
-
@hsp.gaps
|
322
|
-
end
|
323
|
-
|
324
|
-
def test_positive
|
325
|
-
@hsp.positive
|
326
|
-
end
|
327
|
-
|
328
|
-
def test_align_len
|
329
|
-
@hsp.align_len
|
330
|
-
end
|
331
|
-
|
332
|
-
def test_density
|
333
|
-
@hsp.density
|
334
|
-
end
|
335
|
-
|
336
|
-
def test_query_frame
|
337
|
-
@hsp.query_frame
|
338
|
-
end
|
339
|
-
|
340
|
-
def test_query_from
|
341
|
-
@hsp.query_from
|
342
|
-
end
|
343
|
-
|
344
|
-
def test_query_to
|
345
|
-
@hsp.query_to
|
346
|
-
end
|
347
|
-
|
348
|
-
def test_hit_frame
|
349
|
-
@hsp.hit_frame
|
350
|
-
end
|
351
|
-
|
352
|
-
def test_hit_from
|
353
|
-
@hsp.hit_from
|
354
|
-
end
|
355
|
-
|
356
|
-
def test_hit_to
|
357
|
-
@hsp.hit_to
|
358
|
-
end
|
359
|
-
|
360
|
-
def test_pattern_from
|
361
|
-
@hsp.pattern_from
|
362
|
-
end
|
363
|
-
|
364
|
-
def test_pattern_to
|
365
|
-
@hsp.pattern_to
|
366
|
-
end
|
367
|
-
|
368
|
-
def test_qseq
|
369
|
-
@hsp.qseq
|
370
|
-
end
|
371
|
-
|
372
|
-
def test_midline
|
373
|
-
@hsp.midline
|
374
|
-
end
|
375
|
-
|
376
|
-
def test_hseq
|
377
|
-
@hsp.hseq
|
378
|
-
end
|
379
|
-
|
380
|
-
def test_percent_identity
|
381
|
-
@hsp.percent_identity
|
382
|
-
end
|
383
|
-
|
384
|
-
def test_mismatch_count
|
385
|
-
@hsp.mismatch_count
|
386
|
-
end
|
387
|
-
end
|
388
|
-
end
|