bio 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/bioruby +107 -0
- data/bin/br_biofetch.rb +59 -0
- data/bin/br_bioflat.rb +294 -0
- data/bin/br_biogetseq.rb +57 -0
- data/bin/br_pmfetch.rb +431 -0
- data/doc/BioRuby.rd.ja +225 -0
- data/doc/Changes-0.7.rd +236 -0
- data/doc/Design.rd.ja +341 -0
- data/doc/KEGG_API.rd +1437 -0
- data/doc/KEGG_API.rd.ja +1399 -0
- data/doc/TODO.rd.ja +138 -0
- data/doc/Tutorial.rd +1138 -0
- data/doc/Tutorial.rd.ja +2110 -0
- data/etc/bioinformatics/seqdatabase.ini +210 -0
- data/lib/bio.rb +256 -0
- data/lib/bio/alignment.rb +1906 -0
- data/lib/bio/appl/bl2seq/report.rb +350 -0
- data/lib/bio/appl/blast.rb +269 -0
- data/lib/bio/appl/blast/format0.rb +1402 -0
- data/lib/bio/appl/blast/format8.rb +95 -0
- data/lib/bio/appl/blast/report.rb +652 -0
- data/lib/bio/appl/blast/rexml.rb +151 -0
- data/lib/bio/appl/blast/wublast.rb +553 -0
- data/lib/bio/appl/blast/xmlparser.rb +222 -0
- data/lib/bio/appl/blat/report.rb +392 -0
- data/lib/bio/appl/clustalw.rb +191 -0
- data/lib/bio/appl/clustalw/report.rb +154 -0
- data/lib/bio/appl/emboss.rb +68 -0
- data/lib/bio/appl/fasta.rb +262 -0
- data/lib/bio/appl/fasta/format10.rb +428 -0
- data/lib/bio/appl/fasta/format6.rb +37 -0
- data/lib/bio/appl/genscan/report.rb +570 -0
- data/lib/bio/appl/hmmer.rb +129 -0
- data/lib/bio/appl/hmmer/report.rb +556 -0
- data/lib/bio/appl/mafft.rb +222 -0
- data/lib/bio/appl/mafft/report.rb +119 -0
- data/lib/bio/appl/psort.rb +555 -0
- data/lib/bio/appl/psort/report.rb +473 -0
- data/lib/bio/appl/sim4.rb +134 -0
- data/lib/bio/appl/sim4/report.rb +501 -0
- data/lib/bio/appl/sosui/report.rb +166 -0
- data/lib/bio/appl/spidey/report.rb +604 -0
- data/lib/bio/appl/targetp/report.rb +283 -0
- data/lib/bio/appl/tmhmm/report.rb +238 -0
- data/lib/bio/command.rb +166 -0
- data/lib/bio/data/aa.rb +354 -0
- data/lib/bio/data/codontable.rb +740 -0
- data/lib/bio/data/na.rb +226 -0
- data/lib/bio/db.rb +340 -0
- data/lib/bio/db/aaindex.rb +280 -0
- data/lib/bio/db/embl/common.rb +332 -0
- data/lib/bio/db/embl/embl.rb +446 -0
- data/lib/bio/db/embl/sptr.rb +954 -0
- data/lib/bio/db/embl/swissprot.rb +32 -0
- data/lib/bio/db/embl/trembl.rb +31 -0
- data/lib/bio/db/embl/uniprot.rb +32 -0
- data/lib/bio/db/fantom.rb +604 -0
- data/lib/bio/db/fasta.rb +869 -0
- data/lib/bio/db/genbank/common.rb +299 -0
- data/lib/bio/db/genbank/ddbj.rb +34 -0
- data/lib/bio/db/genbank/genbank.rb +354 -0
- data/lib/bio/db/genbank/genpept.rb +73 -0
- data/lib/bio/db/genbank/refseq.rb +31 -0
- data/lib/bio/db/gff.rb +106 -0
- data/lib/bio/db/go.rb +497 -0
- data/lib/bio/db/kegg/brite.rb +51 -0
- data/lib/bio/db/kegg/cell.rb +88 -0
- data/lib/bio/db/kegg/compound.rb +130 -0
- data/lib/bio/db/kegg/enzyme.rb +125 -0
- data/lib/bio/db/kegg/expression.rb +173 -0
- data/lib/bio/db/kegg/genes.rb +293 -0
- data/lib/bio/db/kegg/genome.rb +362 -0
- data/lib/bio/db/kegg/glycan.rb +213 -0
- data/lib/bio/db/kegg/keggtab.rb +418 -0
- data/lib/bio/db/kegg/kgml.rb +299 -0
- data/lib/bio/db/kegg/ko.rb +178 -0
- data/lib/bio/db/kegg/reaction.rb +97 -0
- data/lib/bio/db/litdb.rb +131 -0
- data/lib/bio/db/medline.rb +317 -0
- data/lib/bio/db/nbrf.rb +199 -0
- data/lib/bio/db/pdb.rb +38 -0
- data/lib/bio/db/pdb/atom.rb +60 -0
- data/lib/bio/db/pdb/chain.rb +117 -0
- data/lib/bio/db/pdb/model.rb +106 -0
- data/lib/bio/db/pdb/pdb.rb +1682 -0
- data/lib/bio/db/pdb/residue.rb +122 -0
- data/lib/bio/db/pdb/utils.rb +234 -0
- data/lib/bio/db/prosite.rb +616 -0
- data/lib/bio/db/rebase.rb +417 -0
- data/lib/bio/db/transfac.rb +387 -0
- data/lib/bio/feature.rb +201 -0
- data/lib/bio/io/brdb.rb +103 -0
- data/lib/bio/io/das.rb +471 -0
- data/lib/bio/io/dbget.rb +212 -0
- data/lib/bio/io/ddbjxml.rb +614 -0
- data/lib/bio/io/fastacmd.rb +123 -0
- data/lib/bio/io/fetch.rb +114 -0
- data/lib/bio/io/flatfile.rb +496 -0
- data/lib/bio/io/flatfile/bdb.rb +266 -0
- data/lib/bio/io/flatfile/index.rb +1308 -0
- data/lib/bio/io/flatfile/indexer.rb +778 -0
- data/lib/bio/io/higet.rb +92 -0
- data/lib/bio/io/keggapi.rb +863 -0
- data/lib/bio/io/pubmed.rb +189 -0
- data/lib/bio/io/registry.rb +308 -0
- data/lib/bio/io/soapwsdl.rb +114 -0
- data/lib/bio/io/sql.rb +428 -0
- data/lib/bio/location.rb +650 -0
- data/lib/bio/pathway.rb +991 -0
- data/lib/bio/reference.rb +308 -0
- data/lib/bio/sequence.rb +593 -0
- data/lib/bio/shell.rb +51 -0
- data/lib/bio/shell/core.rb +512 -0
- data/lib/bio/shell/plugin/codon.rb +228 -0
- data/lib/bio/shell/plugin/entry.rb +85 -0
- data/lib/bio/shell/plugin/flatfile.rb +119 -0
- data/lib/bio/shell/plugin/keggapi.rb +187 -0
- data/lib/bio/shell/plugin/midi.rb +448 -0
- data/lib/bio/shell/plugin/obda.rb +63 -0
- data/lib/bio/shell/plugin/seq.rb +238 -0
- data/lib/bio/shell/session.rb +214 -0
- data/lib/bio/util/color_scheme.rb +214 -0
- data/lib/bio/util/color_scheme/buried.rb +78 -0
- data/lib/bio/util/color_scheme/helix.rb +78 -0
- data/lib/bio/util/color_scheme/hydropathy.rb +83 -0
- data/lib/bio/util/color_scheme/nucleotide.rb +50 -0
- data/lib/bio/util/color_scheme/strand.rb +78 -0
- data/lib/bio/util/color_scheme/taylor.rb +69 -0
- data/lib/bio/util/color_scheme/turn.rb +78 -0
- data/lib/bio/util/color_scheme/zappo.rb +69 -0
- data/lib/bio/util/contingency_table.rb +337 -0
- data/lib/bio/util/sirna.rb +306 -0
- data/lib/bioruby.rb +34 -0
- data/sample/biofetch.rb +475 -0
- data/sample/color_scheme_na.rb +99 -0
- data/sample/dbget +37 -0
- data/sample/fasta2tab.rb +99 -0
- data/sample/fsplit.rb +51 -0
- data/sample/gb2fasta.rb +31 -0
- data/sample/gb2tab.rb +325 -0
- data/sample/gbtab2mysql.rb +161 -0
- data/sample/genes2nuc.rb +33 -0
- data/sample/genes2pep.rb +33 -0
- data/sample/genes2tab.rb +81 -0
- data/sample/genome2rb.rb +29 -0
- data/sample/genome2tab.rb +76 -0
- data/sample/goslim.rb +311 -0
- data/sample/gt2fasta.rb +47 -0
- data/sample/pmfetch.rb +42 -0
- data/sample/pmsearch.rb +42 -0
- data/sample/psortplot_html.rb +222 -0
- data/sample/ssearch2tab.rb +96 -0
- data/sample/tdiary.rb +158 -0
- data/sample/tfastx2tab.rb +100 -0
- data/sample/vs-genes.rb +212 -0
- data/test/data/SOSUI/sample.report +11 -0
- data/test/data/TMHMM/sample.report +21 -0
- data/test/data/blast/eco:b0002.faa +15 -0
- data/test/data/blast/eco:b0002.faa.m0 +128 -0
- data/test/data/blast/eco:b0002.faa.m7 +65 -0
- data/test/data/blast/eco:b0002.faa.m8 +1 -0
- data/test/data/embl/AB090716.embl +65 -0
- data/test/data/genscan/sample.report +63 -0
- data/test/data/prosite/prosite.dat +2233 -0
- data/test/data/refseq/nm_126355.entret +64 -0
- data/test/data/uniprot/p53_human.uniprot +1456 -0
- data/test/runner.rb +10 -0
- data/test/unit/bio/appl/blast/test_report.rb +427 -0
- data/test/unit/bio/appl/blast/test_xmlparser.rb +400 -0
- data/test/unit/bio/appl/genscan/test_report.rb +195 -0
- data/test/unit/bio/appl/sosui/test_report.rb +94 -0
- data/test/unit/bio/appl/targetp/test_report.rb +159 -0
- data/test/unit/bio/appl/test_blast.rb +159 -0
- data/test/unit/bio/appl/test_fasta.rb +142 -0
- data/test/unit/bio/appl/tmhmm/test_report.rb +139 -0
- data/test/unit/bio/data/test_aa.rb +103 -0
- data/test/unit/bio/data/test_codontable.rb +120 -0
- data/test/unit/bio/data/test_na.rb +89 -0
- data/test/unit/bio/db/embl/test_common.rb +130 -0
- data/test/unit/bio/db/embl/test_embl.rb +227 -0
- data/test/unit/bio/db/embl/test_sptr.rb +268 -0
- data/test/unit/bio/db/embl/test_uniprot.rb +44 -0
- data/test/unit/bio/db/kegg/test_genes.rb +58 -0
- data/test/unit/bio/db/test_fasta.rb +263 -0
- data/test/unit/bio/db/test_gff.rb +140 -0
- data/test/unit/bio/db/test_prosite.rb +1450 -0
- data/test/unit/bio/io/test_ddbjxml.rb +87 -0
- data/test/unit/bio/io/test_soapwsdl.rb +45 -0
- data/test/unit/bio/shell/plugin/test_seq.rb +175 -0
- data/test/unit/bio/test_alignment.rb +1028 -0
- data/test/unit/bio/test_command.rb +71 -0
- data/test/unit/bio/test_db.rb +109 -0
- data/test/unit/bio/test_feature.rb +128 -0
- data/test/unit/bio/test_location.rb +51 -0
- data/test/unit/bio/test_pathway.rb +485 -0
- data/test/unit/bio/test_sequence.rb +386 -0
- data/test/unit/bio/test_shell.rb +31 -0
- data/test/unit/bio/util/test_color_scheme.rb +45 -0
- data/test/unit/bio/util/test_contingency_table.rb +106 -0
- data/test/unit/bio/util/test_sirna.rb +258 -0
- metadata +295 -0
@@ -0,0 +1,140 @@
|
|
1
|
+
#
|
2
|
+
# test/unit/bio/db/test_gff.rb - Unit test for Bio::GFF
|
3
|
+
#
|
4
|
+
# Copyright (C) 2005 Mitsuteru Nakao <n@bioruby.org>
|
5
|
+
#
|
6
|
+
# This library is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU Lesser General Public
|
8
|
+
# License as published by the Free Software Foundation; either
|
9
|
+
# version 2 of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This library is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
# Lesser General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU Lesser General Public
|
17
|
+
# License along with this library; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
+
#
|
20
|
+
# $Id: test_gff.rb,v 1.4 2005/12/19 01:21:42 k Exp $
|
21
|
+
#
|
22
|
+
|
23
|
+
require 'pathname'
|
24
|
+
libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4, 'lib')).cleanpath.to_s
|
25
|
+
$:.unshift(libpath) unless $:.include?(libpath)
|
26
|
+
|
27
|
+
require 'test/unit'
|
28
|
+
require 'bio/db/gff'
|
29
|
+
|
30
|
+
module Bio
|
31
|
+
class TestGFF < Test::Unit::TestCase
|
32
|
+
|
33
|
+
def setup
|
34
|
+
data = <<END
|
35
|
+
I sgd CEN 151453 151591 . + . CEN "CEN1" ; Note "CEN1\; Chromosome I Centromere"
|
36
|
+
I sgd gene 147591 151163 . - . Gene "TFC3" ; Note "transcription factor tau (TFIIIC) subunit 138"
|
37
|
+
I sgd gene 147591 151163 . - . Gene "FUN24" ; Note "transcription factor tau (TFIIIC) subunit 138"
|
38
|
+
I sgd gene 147591 151163 . - . Gene "TSV115" ; Note "transcription factor tau (TFIIIC) subunit 138"
|
39
|
+
I sgd ORF 147591 151163 . - . ORF "YAL001C" ; Note "TFC3\; transcription factor tau (TFIIIC) subunit 138"
|
40
|
+
I sgd gene 143998 147528 . + . Gene "VPS8" ; Note "Vps8p is a membrane-associated hydrophilic protein which contains a C-terminal cysteine-rich region that conforms to the H2 variant of the RING finger Zn2+ binding motif."
|
41
|
+
I sgd gene 143998 147528 . + . Gene "FUN15" ; Note "Vps8p is a membrane-associated hydrophilic protein which contains a C-terminal cysteine-rich region that conforms to the H2 variant of the RING finger Zn2+ binding motif."
|
42
|
+
I sgd gene 143998 147528 . + . Gene "VPT8" ; Note "Vps8p is a membrane-associated hydrophilic protein which contains a C-terminal cysteine-rich region that conforms to the H2 variant of the RING finger Zn2+ binding motif."
|
43
|
+
END
|
44
|
+
@obj = Bio::GFF.new(data)
|
45
|
+
end
|
46
|
+
|
47
|
+
def test_records
|
48
|
+
assert_equal(8, @obj.records.size)
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_record_class
|
52
|
+
assert_equal(Bio::GFF::Record, @obj.records[0].class)
|
53
|
+
end
|
54
|
+
|
55
|
+
end # class TestGFF
|
56
|
+
|
57
|
+
|
58
|
+
class TestGFF2 < Test::Unit::TestCase
|
59
|
+
def test_version
|
60
|
+
assert_equal(2, Bio::GFF::GFF2::VERSION)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
class TestGFF3 < Test::Unit::TestCase
|
66
|
+
def test_version
|
67
|
+
assert_equal(3, Bio::GFF::GFF3::VERSION)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
|
72
|
+
class TestGFFRecord < Test::Unit::TestCase
|
73
|
+
|
74
|
+
def setup
|
75
|
+
data =<<END
|
76
|
+
I sgd gene 151453 151591 . + . Gene "CEN1" ; Note "Chromosome I Centromere"
|
77
|
+
END
|
78
|
+
@obj = Bio::GFF::Record.new(data)
|
79
|
+
end
|
80
|
+
|
81
|
+
def test_seqname
|
82
|
+
assert_equal('I', @obj.seqname)
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_source
|
86
|
+
assert_equal('sgd', @obj.source)
|
87
|
+
end
|
88
|
+
|
89
|
+
def test_feature
|
90
|
+
assert_equal('gene', @obj.feature)
|
91
|
+
end
|
92
|
+
|
93
|
+
def test_start
|
94
|
+
assert_equal('151453', @obj.start)
|
95
|
+
end
|
96
|
+
|
97
|
+
def test_end
|
98
|
+
assert_equal('151591', @obj.end)
|
99
|
+
end
|
100
|
+
|
101
|
+
def test_score
|
102
|
+
assert_equal('.', @obj.score)
|
103
|
+
end
|
104
|
+
|
105
|
+
def test_strand
|
106
|
+
assert_equal('+', @obj.strand)
|
107
|
+
end
|
108
|
+
|
109
|
+
def test_frame
|
110
|
+
assert_equal('.', @obj.frame)
|
111
|
+
end
|
112
|
+
|
113
|
+
def test_attributes
|
114
|
+
at = {"Note"=>'"Chromosome I Centromere"', "Gene"=>'"CEN1"'}
|
115
|
+
assert_equal(at, @obj.attributes)
|
116
|
+
end
|
117
|
+
|
118
|
+
def test_comments
|
119
|
+
assert_equal(nil, @obj.comments)
|
120
|
+
end
|
121
|
+
|
122
|
+
end # class TestGFFRecord
|
123
|
+
|
124
|
+
|
125
|
+
class TestGFFRecordConstruct < Test::Unit::TestCase
|
126
|
+
|
127
|
+
def setup
|
128
|
+
@obj = Bio::GFF.new
|
129
|
+
end
|
130
|
+
|
131
|
+
def test_add_seqname
|
132
|
+
name = "test"
|
133
|
+
record = Bio::GFF::Record.new("")
|
134
|
+
record.seqname = name
|
135
|
+
@obj.records << record
|
136
|
+
assert_equal(name, @obj.records[0].seqname)
|
137
|
+
end
|
138
|
+
|
139
|
+
end # class TestGFFRecordConstruct
|
140
|
+
end
|
@@ -0,0 +1,1450 @@
|
|
1
|
+
#
|
2
|
+
# test/unit/bio/db/test_prosite.rb - Unit test for Bio::PROSITE
|
3
|
+
#
|
4
|
+
# Copyright (C) 2005 Mitsuteru Nakao <n@bioruby.org>
|
5
|
+
#
|
6
|
+
# This library is free software; you can redistribute it and/or
|
7
|
+
# modify it under the terms of the GNU Lesser General Public
|
8
|
+
# License as published by the Free Software Foundation; either
|
9
|
+
# version 2 of the License, or (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This library is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
# Lesser General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU Lesser General Public
|
17
|
+
# License along with this library; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
+
#
|
20
|
+
# $Id: test_prosite.rb,v 1.3 2005/12/18 18:21:58 k Exp $
|
21
|
+
#
|
22
|
+
|
23
|
+
require 'pathname'
|
24
|
+
libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4, 'lib')).cleanpath.to_s
|
25
|
+
$:.unshift(libpath) unless $:.include?(libpath)
|
26
|
+
|
27
|
+
require 'test/unit'
|
28
|
+
require 'bio/db/prosite'
|
29
|
+
|
30
|
+
module Bio
|
31
|
+
class TestPROSITEConst < Test::Unit::TestCase
|
32
|
+
|
33
|
+
def test_delimiter
|
34
|
+
assert_equal("\n//\n", Bio::PROSITE::DELIMITER)
|
35
|
+
assert_equal("\n//\n", Bio::PROSITE::RS)
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_tagsize
|
39
|
+
assert_equal(5, Bio::PROSITE::TAGSIZE)
|
40
|
+
end
|
41
|
+
|
42
|
+
end # class TestPROSITEConst
|
43
|
+
|
44
|
+
|
45
|
+
class TestPROSITE < Test::Unit::TestCase
|
46
|
+
|
47
|
+
def setup
|
48
|
+
bioruby_root = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4)).cleanpath.to_s
|
49
|
+
data = File.open(File.join(bioruby_root, 'test', 'data', 'prosite', 'prosite.dat')).read
|
50
|
+
data = data.split(Bio::PROSITE::RS)[0]
|
51
|
+
@obj = Bio::PROSITE.new(data)
|
52
|
+
end
|
53
|
+
|
54
|
+
def test_name
|
55
|
+
assert_equal("G_PROTEIN_RECEP_F1_1", @obj.name)
|
56
|
+
end
|
57
|
+
|
58
|
+
def test_division
|
59
|
+
data = "PATTERN"
|
60
|
+
assert_equal(data, @obj.division)
|
61
|
+
end
|
62
|
+
|
63
|
+
def test_ac
|
64
|
+
data = "PS00237"
|
65
|
+
assert_equal(data, @obj.ac)
|
66
|
+
end
|
67
|
+
|
68
|
+
def test_dt
|
69
|
+
assert_equal("APR-1990 (CREATED); NOV-1997 (DATA UPDATE); JUL-1998 (INFO UPDATE).", @obj.dt)
|
70
|
+
end
|
71
|
+
|
72
|
+
def test_de
|
73
|
+
data = "G-protein coupled receptors family 1 signature."
|
74
|
+
assert_equal(data, @obj.de)
|
75
|
+
end
|
76
|
+
|
77
|
+
def test_pa
|
78
|
+
pattern = "[GSTALIVMFYWC]-[GSTANCPDE]-{EDPKRH}-x(2)-[LIVMNQGA]-x(2)-[LIVMFT]-[GSTANC]-[LIVMFYWSTAC]-[DENH]-R-[FYWCSH]-x(2)-[LIVM]."
|
79
|
+
assert_equal(pattern, @obj.pa)
|
80
|
+
end
|
81
|
+
|
82
|
+
def test_ma
|
83
|
+
assert_equal('', @obj.ma)
|
84
|
+
end
|
85
|
+
|
86
|
+
def test_ru
|
87
|
+
assert_equal('', @obj.ru)
|
88
|
+
end
|
89
|
+
|
90
|
+
def test_nr
|
91
|
+
data = {"FALSE_NEG"=>112, "POSITIVE"=>[1057, 1057], "PARTIAL"=>48, "FALSE_POS"=>[64, 64], "RELEASE"=>["40.7", 103373], "TOTAL"=>[1121, 1121], "UNKNOWN"=>[0, 0]}
|
92
|
+
|
93
|
+
assert_equal(data, @obj.nr)
|
94
|
+
end
|
95
|
+
|
96
|
+
def test_release
|
97
|
+
assert_equal(['40.7', 103373], @obj.release)
|
98
|
+
end
|
99
|
+
|
100
|
+
def test_swissprot_release_number
|
101
|
+
assert_equal('40.7', @obj.swissprot_release_number)
|
102
|
+
end
|
103
|
+
|
104
|
+
def test_swissprot_release_sequences
|
105
|
+
assert_equal(103373, @obj.swissprot_release_sequences)
|
106
|
+
end
|
107
|
+
|
108
|
+
def test_total
|
109
|
+
assert_equal([1121, 1121], @obj.total)
|
110
|
+
end
|
111
|
+
|
112
|
+
def test_total_hits
|
113
|
+
assert_equal(1121, @obj.total_hits)
|
114
|
+
end
|
115
|
+
|
116
|
+
def test_total_sequences
|
117
|
+
assert_equal(1121, @obj.total_sequences)
|
118
|
+
end
|
119
|
+
|
120
|
+
def test_positive
|
121
|
+
assert_equal([1057, 1057], @obj.positive)
|
122
|
+
end
|
123
|
+
|
124
|
+
def test_positive_hits
|
125
|
+
assert_equal(1057, @obj.positive_hits)
|
126
|
+
end
|
127
|
+
|
128
|
+
def test_positive_sequences
|
129
|
+
assert_equal(1057, @obj.positive_sequences)
|
130
|
+
end
|
131
|
+
|
132
|
+
def test_unknown
|
133
|
+
assert_equal([0, 0], @obj.unknown)
|
134
|
+
end
|
135
|
+
|
136
|
+
def test_unknown_hits
|
137
|
+
assert_equal(0, @obj.unknown_hits)
|
138
|
+
end
|
139
|
+
|
140
|
+
def test_unknown_sequences
|
141
|
+
assert_equal(0, @obj.unknown_sequences)
|
142
|
+
end
|
143
|
+
|
144
|
+
def test_false_pos
|
145
|
+
assert_equal([64, 64], @obj.false_pos)
|
146
|
+
end
|
147
|
+
|
148
|
+
def test_false_positive_sequences
|
149
|
+
assert_equal(64, @obj.false_positive_sequences)
|
150
|
+
end
|
151
|
+
|
152
|
+
def test_false_neg
|
153
|
+
assert_equal(112, @obj.false_neg)
|
154
|
+
end
|
155
|
+
|
156
|
+
def test_partial
|
157
|
+
assert_equal(48, @obj.partial)
|
158
|
+
end
|
159
|
+
|
160
|
+
def test_cc
|
161
|
+
assert_equal({"TAXO-RANGE"=>"??E?V", "MAX-REPEAT"=>"1"}, @obj.cc)
|
162
|
+
end
|
163
|
+
|
164
|
+
def test_taxon_range
|
165
|
+
assert_equal('??E?V', @obj.taxon_range)
|
166
|
+
end
|
167
|
+
|
168
|
+
def test_max_repeat
|
169
|
+
assert_equal(1, @obj.max_repeat)
|
170
|
+
end
|
171
|
+
|
172
|
+
def test_site
|
173
|
+
assert_equal([0, nil], @obj.site)
|
174
|
+
end
|
175
|
+
|
176
|
+
def test_skip_flag
|
177
|
+
assert_equal(nil, @obj.skip_flag)
|
178
|
+
end
|
179
|
+
|
180
|
+
def test_dr
|
181
|
+
assert_equal(Hash, @obj.dr.class)
|
182
|
+
data = ['OPSD_LIMBE', 'T']
|
183
|
+
assert_equal(data, @obj.dr["O42427"])
|
184
|
+
end
|
185
|
+
|
186
|
+
def test_list_xref
|
187
|
+
flag = ''
|
188
|
+
assert_equal([], @obj.list_xref(flag))
|
189
|
+
end
|
190
|
+
|
191
|
+
def test_list_truepositive
|
192
|
+
data = ["O42427",
|
193
|
+
"P11617",
|
194
|
+
"P46090",
|
195
|
+
"P30939",
|
196
|
+
"P28336",
|
197
|
+
"Q9Z2J6",
|
198
|
+
"Q64326",
|
199
|
+
"P46092",
|
200
|
+
"P07550",
|
201
|
+
"Q9UKL2",
|
202
|
+
"P30940",
|
203
|
+
"P46093",
|
204
|
+
"Q61224",
|
205
|
+
"Q63384",
|
206
|
+
"P46094",
|
207
|
+
"Q28309",
|
208
|
+
"P22328",
|
209
|
+
"P46095",
|
210
|
+
"O77590",
|
211
|
+
"O02813",
|
212
|
+
"Q9R1C8",
|
213
|
+
"P22329",
|
214
|
+
"O93441",
|
215
|
+
"O42300",
|
216
|
+
"Q10904",
|
217
|
+
"O43613",
|
218
|
+
"Q9Z0D9",
|
219
|
+
"P18130",
|
220
|
+
"O42301",
|
221
|
+
"O43614",
|
222
|
+
"P22330",
|
223
|
+
"P22331",
|
224
|
+
"Q9GLJ8",
|
225
|
+
"O15552",
|
226
|
+
"O43193",
|
227
|
+
"P22332",
|
228
|
+
"O43194",
|
229
|
+
"Q9WV26",
|
230
|
+
"Q9TST4",
|
231
|
+
"Q62053",
|
232
|
+
"P58307",
|
233
|
+
"O42307",
|
234
|
+
"Q9TST5",
|
235
|
+
"P58308",
|
236
|
+
"Q9TST6",
|
237
|
+
"P41983",
|
238
|
+
"P30951",
|
239
|
+
"P41984",
|
240
|
+
"O02824",
|
241
|
+
"O88626",
|
242
|
+
"P91657",
|
243
|
+
"P30953",
|
244
|
+
"P18825",
|
245
|
+
"O62709",
|
246
|
+
"O42574",
|
247
|
+
"P30954",
|
248
|
+
"Q28585",
|
249
|
+
"O88628",
|
250
|
+
"P30955",
|
251
|
+
"P28221",
|
252
|
+
"Q9WU02",
|
253
|
+
"P28222",
|
254
|
+
"P32299",
|
255
|
+
"P70310",
|
256
|
+
"P28223",
|
257
|
+
"O76099",
|
258
|
+
"P04201",
|
259
|
+
"P35894",
|
260
|
+
"Q15722",
|
261
|
+
"P35895",
|
262
|
+
"O93459",
|
263
|
+
"P14416",
|
264
|
+
"P35897",
|
265
|
+
"P35898",
|
266
|
+
"P35899",
|
267
|
+
"P49578",
|
268
|
+
"O42451",
|
269
|
+
"P47745",
|
270
|
+
"Q9Y5N1",
|
271
|
+
"O42452",
|
272
|
+
"P50052",
|
273
|
+
"P47746",
|
274
|
+
"O97878",
|
275
|
+
"O02835",
|
276
|
+
"Q09502",
|
277
|
+
"Q28596",
|
278
|
+
"O00254",
|
279
|
+
"P31355",
|
280
|
+
"P47747",
|
281
|
+
"O97879",
|
282
|
+
"O02836",
|
283
|
+
"P31356",
|
284
|
+
"P30966",
|
285
|
+
"P79436",
|
286
|
+
"P47748",
|
287
|
+
"P87365",
|
288
|
+
"P08099",
|
289
|
+
"Q9JL21",
|
290
|
+
"P47749",
|
291
|
+
"P87366",
|
292
|
+
"O18481",
|
293
|
+
"P16582",
|
294
|
+
"P87367",
|
295
|
+
"P30968",
|
296
|
+
"O97880",
|
297
|
+
"P47750",
|
298
|
+
"P87368",
|
299
|
+
"Q62758",
|
300
|
+
"P30969",
|
301
|
+
"Q28468",
|
302
|
+
"O97881",
|
303
|
+
"Q09638",
|
304
|
+
"P09703",
|
305
|
+
"P87369",
|
306
|
+
"O95918",
|
307
|
+
"Q9TUE1",
|
308
|
+
"O97882",
|
309
|
+
"P22909",
|
310
|
+
"P09704",
|
311
|
+
"O18485",
|
312
|
+
"O42327",
|
313
|
+
"P47751",
|
314
|
+
"P47883",
|
315
|
+
"P18841",
|
316
|
+
"O55193",
|
317
|
+
"O97883",
|
318
|
+
"O18486",
|
319
|
+
"O42328",
|
320
|
+
"P47884",
|
321
|
+
"Q9EP86",
|
322
|
+
"O42329",
|
323
|
+
"O14626",
|
324
|
+
"P48145",
|
325
|
+
"P47887",
|
326
|
+
"O08725",
|
327
|
+
"P48146",
|
328
|
+
"P30974",
|
329
|
+
"O08858",
|
330
|
+
"O18910",
|
331
|
+
"O42330",
|
332
|
+
"O55197",
|
333
|
+
"O08726",
|
334
|
+
"O70526",
|
335
|
+
"P30975",
|
336
|
+
"O18911",
|
337
|
+
"Q28474",
|
338
|
+
"O18912",
|
339
|
+
"O70528",
|
340
|
+
"O18913",
|
341
|
+
"P34311",
|
342
|
+
"O18914",
|
343
|
+
"O42466",
|
344
|
+
"O95371",
|
345
|
+
"Q9WU25",
|
346
|
+
"P47892",
|
347
|
+
"P70596",
|
348
|
+
"P33396",
|
349
|
+
"P70597",
|
350
|
+
"Q61130",
|
351
|
+
"Q15743",
|
352
|
+
"Q15612",
|
353
|
+
"P51144",
|
354
|
+
"P32745",
|
355
|
+
"O00270",
|
356
|
+
"Q00991",
|
357
|
+
"Q9YGY9",
|
358
|
+
"P29754",
|
359
|
+
"Q9GZK3",
|
360
|
+
"O02721",
|
361
|
+
"Q9GZK4",
|
362
|
+
"Q15615",
|
363
|
+
"Q9Y5P1",
|
364
|
+
"Q60613",
|
365
|
+
"Q15062",
|
366
|
+
"P29755",
|
367
|
+
"Q9UKP6",
|
368
|
+
"Q28905",
|
369
|
+
"Q9YGZ0",
|
370
|
+
"P47898",
|
371
|
+
"Q60614",
|
372
|
+
"P47899",
|
373
|
+
"Q9GZK7",
|
374
|
+
"Q9YGZ1",
|
375
|
+
"Q9YGZ2",
|
376
|
+
"O97504",
|
377
|
+
"Q15619",
|
378
|
+
"P30987",
|
379
|
+
"Q9YGZ3",
|
380
|
+
"Q9YGZ4",
|
381
|
+
"Q93126",
|
382
|
+
"Q15620",
|
383
|
+
"Q9YGZ5",
|
384
|
+
"P30989",
|
385
|
+
"Q13725",
|
386
|
+
"Q93127",
|
387
|
+
"P16473",
|
388
|
+
"P23749",
|
389
|
+
"Q9YGZ6",
|
390
|
+
"O54814",
|
391
|
+
"O62743",
|
392
|
+
"Q9YGZ7",
|
393
|
+
"P52202",
|
394
|
+
"Q15622",
|
395
|
+
"Q9YGZ8",
|
396
|
+
"P56514",
|
397
|
+
"P30728",
|
398
|
+
"O97772",
|
399
|
+
"Q9YGZ9",
|
400
|
+
"P30991",
|
401
|
+
"P56515",
|
402
|
+
"P30729",
|
403
|
+
"Q9J529",
|
404
|
+
"P56516",
|
405
|
+
"P47774",
|
406
|
+
"O62747",
|
407
|
+
"P30992",
|
408
|
+
"P35403",
|
409
|
+
"P15823",
|
410
|
+
"P47775",
|
411
|
+
"Q9WUK7",
|
412
|
+
"P30993",
|
413
|
+
"O97512",
|
414
|
+
"P35404",
|
415
|
+
"P06002",
|
416
|
+
"O08878",
|
417
|
+
"P30730",
|
418
|
+
"P30994",
|
419
|
+
"O46635",
|
420
|
+
"P35405",
|
421
|
+
"P30731",
|
422
|
+
"P21728",
|
423
|
+
"P35406",
|
424
|
+
"P42288",
|
425
|
+
"P21729",
|
426
|
+
"P35407",
|
427
|
+
"P49217",
|
428
|
+
"P31387",
|
429
|
+
"P35408",
|
430
|
+
"P42289",
|
431
|
+
"O00155",
|
432
|
+
"P31388",
|
433
|
+
"O46639",
|
434
|
+
"P48039",
|
435
|
+
"Q64121",
|
436
|
+
"P35409",
|
437
|
+
"P49219",
|
438
|
+
"P31389",
|
439
|
+
"O18935",
|
440
|
+
"Q9TU05",
|
441
|
+
"P42290",
|
442
|
+
"P21730",
|
443
|
+
"P21731",
|
444
|
+
"P18871",
|
445
|
+
"P31390",
|
446
|
+
"P42291",
|
447
|
+
"P48040",
|
448
|
+
"P31391",
|
449
|
+
"P35410",
|
450
|
+
"P20789",
|
451
|
+
"Q13606",
|
452
|
+
"P48042",
|
453
|
+
"O42490",
|
454
|
+
"P35411",
|
455
|
+
"O88410",
|
456
|
+
"P31392",
|
457
|
+
"P29089",
|
458
|
+
"Q13607",
|
459
|
+
"P48043",
|
460
|
+
"P35412",
|
461
|
+
"P48044",
|
462
|
+
"O89039",
|
463
|
+
"P35413",
|
464
|
+
"P30872",
|
465
|
+
"O01668",
|
466
|
+
"P35414",
|
467
|
+
"P30873",
|
468
|
+
"Q9YH00",
|
469
|
+
"P79211",
|
470
|
+
"P30874",
|
471
|
+
"Q9YH01",
|
472
|
+
"Q28927",
|
473
|
+
"P30875",
|
474
|
+
"Q9YH02",
|
475
|
+
"P49912",
|
476
|
+
"O08890",
|
477
|
+
"P25100",
|
478
|
+
"Q28928",
|
479
|
+
"O95006",
|
480
|
+
"Q9YH03",
|
481
|
+
"P25101",
|
482
|
+
"Q28929",
|
483
|
+
"O95007",
|
484
|
+
"O15218",
|
485
|
+
"O88680",
|
486
|
+
"Q9YH04",
|
487
|
+
"O08892",
|
488
|
+
"Q05394",
|
489
|
+
"P79901",
|
490
|
+
"Q9YH05",
|
491
|
+
"P25102",
|
492
|
+
"P33032",
|
493
|
+
"Q64264",
|
494
|
+
"Q9ERZ3",
|
495
|
+
"P79902",
|
496
|
+
"P25103",
|
497
|
+
"P79217",
|
498
|
+
"Q9UGF5",
|
499
|
+
"Q9ERZ4",
|
500
|
+
"Q9N2A2",
|
501
|
+
"P79903",
|
502
|
+
"P13945",
|
503
|
+
"P25104",
|
504
|
+
"P79218",
|
505
|
+
"P33033",
|
506
|
+
"Q9UGF6",
|
507
|
+
"Q9N2A3",
|
508
|
+
"P25105",
|
509
|
+
"O97661",
|
510
|
+
"O70431",
|
511
|
+
"P79350",
|
512
|
+
"Q9UGF7",
|
513
|
+
"Q9N2A4",
|
514
|
+
"P48974",
|
515
|
+
"P25106",
|
516
|
+
"O97663",
|
517
|
+
"P03999",
|
518
|
+
"P16235",
|
519
|
+
"O95013",
|
520
|
+
"P22269",
|
521
|
+
"O97665",
|
522
|
+
"P26684",
|
523
|
+
"P97468",
|
524
|
+
"P47798",
|
525
|
+
"O97666",
|
526
|
+
"P22270",
|
527
|
+
"O18821",
|
528
|
+
"P47799",
|
529
|
+
"P49922",
|
530
|
+
"Q61038",
|
531
|
+
"P51050",
|
532
|
+
"P25929",
|
533
|
+
"P49238",
|
534
|
+
"Q28807",
|
535
|
+
"P28285",
|
536
|
+
"P79911",
|
537
|
+
"P28286",
|
538
|
+
"P13953",
|
539
|
+
"Q19084",
|
540
|
+
"O61303",
|
541
|
+
"P04000",
|
542
|
+
"P25930",
|
543
|
+
"P04001",
|
544
|
+
"Q9NPB9",
|
545
|
+
"P25931",
|
546
|
+
"Q9R1K6",
|
547
|
+
"P42866",
|
548
|
+
"P56412",
|
549
|
+
"P79914",
|
550
|
+
"Q61041",
|
551
|
+
"Q9GK74",
|
552
|
+
"P25115",
|
553
|
+
"P04950",
|
554
|
+
"P25116",
|
555
|
+
"P19020",
|
556
|
+
"P18762",
|
557
|
+
"O12948",
|
558
|
+
"Q26495",
|
559
|
+
"Q09561",
|
560
|
+
"Q25157",
|
561
|
+
"P70115",
|
562
|
+
"O77830",
|
563
|
+
"Q83207",
|
564
|
+
"P02699",
|
565
|
+
"O12000",
|
566
|
+
"Q01717",
|
567
|
+
"Q25158",
|
568
|
+
"P29403",
|
569
|
+
"P50406",
|
570
|
+
"Q01718",
|
571
|
+
"P29404",
|
572
|
+
"O42384",
|
573
|
+
"P50407",
|
574
|
+
"P79234",
|
575
|
+
"O42385",
|
576
|
+
"O02769",
|
577
|
+
"Q17232",
|
578
|
+
"P79236",
|
579
|
+
"P21761",
|
580
|
+
"P79237",
|
581
|
+
"P04274",
|
582
|
+
"Q28003",
|
583
|
+
"O75388",
|
584
|
+
"P24603",
|
585
|
+
"Q9TUK4",
|
586
|
+
"P53452",
|
587
|
+
"P08588",
|
588
|
+
"Q28005",
|
589
|
+
"P43240",
|
590
|
+
"Q61184",
|
591
|
+
"O08786",
|
592
|
+
"P79240",
|
593
|
+
"P53453",
|
594
|
+
"Q13639",
|
595
|
+
"Q9Y3N9",
|
596
|
+
"Q9UP62",
|
597
|
+
"P18089",
|
598
|
+
"P53454",
|
599
|
+
"P79928",
|
600
|
+
"P79242",
|
601
|
+
"Q01726",
|
602
|
+
"P24053",
|
603
|
+
"P79243",
|
604
|
+
"Q17239",
|
605
|
+
"Q01727",
|
606
|
+
"Q14330",
|
607
|
+
"P18090",
|
608
|
+
"Q9R024",
|
609
|
+
"O62791",
|
610
|
+
"O02777",
|
611
|
+
"P43114",
|
612
|
+
"O62792",
|
613
|
+
"P79113",
|
614
|
+
"O77713",
|
615
|
+
"O08790",
|
616
|
+
"O62793",
|
617
|
+
"P54833",
|
618
|
+
"P43116",
|
619
|
+
"O62794",
|
620
|
+
"Q61614",
|
621
|
+
"O77715",
|
622
|
+
"Q00788",
|
623
|
+
"P43117",
|
624
|
+
"O42266",
|
625
|
+
"O62795",
|
626
|
+
"O88319",
|
627
|
+
"Q03566",
|
628
|
+
"P43118",
|
629
|
+
"O62796",
|
630
|
+
"O02781",
|
631
|
+
"O08530",
|
632
|
+
"P43119",
|
633
|
+
"O42268",
|
634
|
+
"P16395",
|
635
|
+
"O62798",
|
636
|
+
"Q9DDN6",
|
637
|
+
"P05363",
|
638
|
+
"P30518",
|
639
|
+
"O13227",
|
640
|
+
"Q9GZQ6",
|
641
|
+
"P43252",
|
642
|
+
"O18982",
|
643
|
+
"P43253",
|
644
|
+
"P79807",
|
645
|
+
"O18983",
|
646
|
+
"P79808",
|
647
|
+
"O77721",
|
648
|
+
"O35786",
|
649
|
+
"P30098",
|
650
|
+
"P56439",
|
651
|
+
"P79809",
|
652
|
+
"P20309",
|
653
|
+
"O77723",
|
654
|
+
"P56440",
|
655
|
+
"Q28838",
|
656
|
+
"P55919",
|
657
|
+
"Q9UHM6",
|
658
|
+
"Q9TT23",
|
659
|
+
"P56441",
|
660
|
+
"P97926",
|
661
|
+
"Q63652",
|
662
|
+
"P55920",
|
663
|
+
"P56442",
|
664
|
+
"P79812",
|
665
|
+
"P25962",
|
666
|
+
"P56443",
|
667
|
+
"P35462",
|
668
|
+
"P56444",
|
669
|
+
"P35463",
|
670
|
+
"P56445",
|
671
|
+
"O97571",
|
672
|
+
"P79393",
|
673
|
+
"P56446",
|
674
|
+
"O02662",
|
675
|
+
"P49144",
|
676
|
+
"P56447",
|
677
|
+
"P79394",
|
678
|
+
"Q25188",
|
679
|
+
"P49145",
|
680
|
+
"P28190",
|
681
|
+
"P56448",
|
682
|
+
"P24628",
|
683
|
+
"P56449",
|
684
|
+
"O02664",
|
685
|
+
"P49146",
|
686
|
+
"P33765",
|
687
|
+
"Q9EQD2",
|
688
|
+
"Q24563",
|
689
|
+
"P33766",
|
690
|
+
"Q90674",
|
691
|
+
"O02666",
|
692
|
+
"P56450",
|
693
|
+
"P06199",
|
694
|
+
"Q25190",
|
695
|
+
"O02667",
|
696
|
+
"Q99500",
|
697
|
+
"P25021",
|
698
|
+
"P56451",
|
699
|
+
"P08482",
|
700
|
+
"P30796",
|
701
|
+
"Q9H1Y3",
|
702
|
+
"Q28031",
|
703
|
+
"P79266",
|
704
|
+
"O14581",
|
705
|
+
"P08483",
|
706
|
+
"P25023",
|
707
|
+
"P49019",
|
708
|
+
"P25024",
|
709
|
+
"P08485",
|
710
|
+
"P12657",
|
711
|
+
"P12526",
|
712
|
+
"Q9QXZ9",
|
713
|
+
"P08908",
|
714
|
+
"P07700",
|
715
|
+
"P25025",
|
716
|
+
"P32300",
|
717
|
+
"Q9Z1S9",
|
718
|
+
"P35342",
|
719
|
+
"P17200",
|
720
|
+
"O09047",
|
721
|
+
"P08909",
|
722
|
+
"O76100",
|
723
|
+
"Q91175",
|
724
|
+
"P43140",
|
725
|
+
"P49285",
|
726
|
+
"P32302",
|
727
|
+
"P35343",
|
728
|
+
"P43141",
|
729
|
+
"P49286",
|
730
|
+
"P32303",
|
731
|
+
"P35344",
|
732
|
+
"Q91178",
|
733
|
+
"P32304",
|
734
|
+
"Q9Y5X5",
|
735
|
+
"P35345",
|
736
|
+
"P08911",
|
737
|
+
"P43142",
|
738
|
+
"O08556",
|
739
|
+
"P49288",
|
740
|
+
"P35346",
|
741
|
+
"P52702",
|
742
|
+
"P32305",
|
743
|
+
"P08912",
|
744
|
+
"P11483",
|
745
|
+
"P32306",
|
746
|
+
"P52703",
|
747
|
+
"Q9R0M1",
|
748
|
+
"P08913",
|
749
|
+
"P32307",
|
750
|
+
"Q62463",
|
751
|
+
"P35348",
|
752
|
+
"O42294",
|
753
|
+
"P30542",
|
754
|
+
"P32308",
|
755
|
+
"P30411",
|
756
|
+
"P30543",
|
757
|
+
"P32309",
|
758
|
+
"Q9TU77",
|
759
|
+
"Q02152",
|
760
|
+
"Q02284",
|
761
|
+
"Q18904",
|
762
|
+
"P35350",
|
763
|
+
"P30545",
|
764
|
+
"Q28044",
|
765
|
+
"P08100",
|
766
|
+
"O77616",
|
767
|
+
"P35351",
|
768
|
+
"P70031",
|
769
|
+
"P30546",
|
770
|
+
"P79148",
|
771
|
+
"P30547",
|
772
|
+
"P32310",
|
773
|
+
"P16849",
|
774
|
+
"P32311",
|
775
|
+
"Q9JI35",
|
776
|
+
"P30548",
|
777
|
+
"P32312",
|
778
|
+
"P30549",
|
779
|
+
"Q9Y5Y4",
|
780
|
+
"P30680",
|
781
|
+
"P32313",
|
782
|
+
"O08565",
|
783
|
+
"Q28997",
|
784
|
+
"P97266",
|
785
|
+
"P11229",
|
786
|
+
"Q28998",
|
787
|
+
"Q9NYM4",
|
788
|
+
"O93603",
|
789
|
+
"P35356",
|
790
|
+
"P30550",
|
791
|
+
"O15973",
|
792
|
+
"P35357",
|
793
|
+
"P30551",
|
794
|
+
"O77621",
|
795
|
+
"P35358",
|
796
|
+
"P58173",
|
797
|
+
"P34968",
|
798
|
+
"P30552",
|
799
|
+
"P35359",
|
800
|
+
"P34969",
|
801
|
+
"P22888",
|
802
|
+
"P30553",
|
803
|
+
"O19012",
|
804
|
+
"P30554",
|
805
|
+
"P30555",
|
806
|
+
"O19014",
|
807
|
+
"P35360",
|
808
|
+
"Q9MZV8",
|
809
|
+
"P30556",
|
810
|
+
"Q99788",
|
811
|
+
"P35361",
|
812
|
+
"Q04683",
|
813
|
+
"P34970",
|
814
|
+
"P35362",
|
815
|
+
"P70174",
|
816
|
+
"P34971",
|
817
|
+
"Q9WUT7",
|
818
|
+
"P30558",
|
819
|
+
"Q9TUP7",
|
820
|
+
"P79291",
|
821
|
+
"P28088",
|
822
|
+
"P35363",
|
823
|
+
"P34972",
|
824
|
+
"O42179",
|
825
|
+
"P30559",
|
826
|
+
"P79292",
|
827
|
+
"Q99527",
|
828
|
+
"Q01776",
|
829
|
+
"P35364",
|
830
|
+
"P34973",
|
831
|
+
"Q64077",
|
832
|
+
"P41591",
|
833
|
+
"P21554",
|
834
|
+
"P34974",
|
835
|
+
"Q9XT45",
|
836
|
+
"O88495",
|
837
|
+
"P46002",
|
838
|
+
"Q90309",
|
839
|
+
"P41592",
|
840
|
+
"P79848",
|
841
|
+
"P56479",
|
842
|
+
"P21555",
|
843
|
+
"Q9GLX8",
|
844
|
+
"P35365",
|
845
|
+
"P34975",
|
846
|
+
"Q29003",
|
847
|
+
"P30560",
|
848
|
+
"P35366",
|
849
|
+
"P21556",
|
850
|
+
"P47211",
|
851
|
+
"P16177",
|
852
|
+
"P34976",
|
853
|
+
"P10980",
|
854
|
+
"O42604",
|
855
|
+
"P35367",
|
856
|
+
"Q95247",
|
857
|
+
"P34977",
|
858
|
+
"Q29005",
|
859
|
+
"P33533",
|
860
|
+
"P34978",
|
861
|
+
"P28646",
|
862
|
+
"Q17292",
|
863
|
+
"P41595",
|
864
|
+
"P35368",
|
865
|
+
"P33534",
|
866
|
+
"P56481",
|
867
|
+
"P79166",
|
868
|
+
"P41596",
|
869
|
+
"P20905",
|
870
|
+
"P35369",
|
871
|
+
"P28647",
|
872
|
+
"P33535",
|
873
|
+
"P56482",
|
874
|
+
"P41597",
|
875
|
+
"P24530",
|
876
|
+
"P56483",
|
877
|
+
"P47900",
|
878
|
+
"O19024",
|
879
|
+
"P35370",
|
880
|
+
"P56484",
|
881
|
+
"P47901",
|
882
|
+
"O18766",
|
883
|
+
"Q17296",
|
884
|
+
"O19025",
|
885
|
+
"P35371",
|
886
|
+
"P51651",
|
887
|
+
"P34981",
|
888
|
+
"P56485",
|
889
|
+
"Q9H207",
|
890
|
+
"P35372",
|
891
|
+
"P56486",
|
892
|
+
"Q13304",
|
893
|
+
"P35373",
|
894
|
+
"P34982",
|
895
|
+
"Q29010",
|
896
|
+
"Q9H209",
|
897
|
+
"P35374",
|
898
|
+
"P34983",
|
899
|
+
"O76000",
|
900
|
+
"P08255",
|
901
|
+
"P04761",
|
902
|
+
"P22086",
|
903
|
+
"P56488",
|
904
|
+
"P35375",
|
905
|
+
"Q98980",
|
906
|
+
"Q28886",
|
907
|
+
"Q95254",
|
908
|
+
"P14842",
|
909
|
+
"P34984",
|
910
|
+
"O76001",
|
911
|
+
"O76002",
|
912
|
+
"P56489",
|
913
|
+
"P35376",
|
914
|
+
"P34986",
|
915
|
+
"Q9XT57",
|
916
|
+
"Q98982",
|
917
|
+
"Q95125",
|
918
|
+
"Q28756",
|
919
|
+
"Q9H343",
|
920
|
+
"O13018",
|
921
|
+
"P35377",
|
922
|
+
"P34987",
|
923
|
+
"Q9XT58",
|
924
|
+
"P97288",
|
925
|
+
"P56490",
|
926
|
+
"Q9H344",
|
927
|
+
"P35378",
|
928
|
+
"P70612",
|
929
|
+
"P56491",
|
930
|
+
"P79175",
|
931
|
+
"P34989",
|
932
|
+
"P35379",
|
933
|
+
"P16610",
|
934
|
+
"P56492",
|
935
|
+
"O19032",
|
936
|
+
"P79176",
|
937
|
+
"Q9H346",
|
938
|
+
"P49059",
|
939
|
+
"P56493",
|
940
|
+
"P79177",
|
941
|
+
"P56494",
|
942
|
+
"Q9NQN1",
|
943
|
+
"P56495",
|
944
|
+
"P79863",
|
945
|
+
"P97292",
|
946
|
+
"Q91081",
|
947
|
+
"P79178",
|
948
|
+
"P97714",
|
949
|
+
"Q99677",
|
950
|
+
"P35382",
|
951
|
+
"P35383",
|
952
|
+
"O54798",
|
953
|
+
"P56496",
|
954
|
+
"Q99678",
|
955
|
+
"O19037",
|
956
|
+
"Q04573",
|
957
|
+
"P34992",
|
958
|
+
"P34993",
|
959
|
+
"P15409",
|
960
|
+
"O54799",
|
961
|
+
"P56497",
|
962
|
+
"Q99679",
|
963
|
+
"Q94741",
|
964
|
+
"P97717",
|
965
|
+
"P34994",
|
966
|
+
"Q29154",
|
967
|
+
"P97295",
|
968
|
+
"Q90328",
|
969
|
+
"P56498",
|
970
|
+
"P32211",
|
971
|
+
"Q92847",
|
972
|
+
"P34995",
|
973
|
+
"P32212",
|
974
|
+
"P34996",
|
975
|
+
"Q60474",
|
976
|
+
"P34997",
|
977
|
+
"Q63447",
|
978
|
+
"Q60475",
|
979
|
+
"P10608",
|
980
|
+
"Q60476",
|
981
|
+
"Q62928",
|
982
|
+
"Q13585",
|
983
|
+
"O95665",
|
984
|
+
"P79188",
|
985
|
+
"P37288",
|
986
|
+
"Q9DGG4",
|
987
|
+
"Q90334",
|
988
|
+
"P51436",
|
989
|
+
"P26255",
|
990
|
+
"P37289",
|
991
|
+
"Q17053",
|
992
|
+
"O16005",
|
993
|
+
"Q28509",
|
994
|
+
"P21450",
|
995
|
+
"P55167",
|
996
|
+
"Q9Z2D5",
|
997
|
+
"P79190",
|
998
|
+
"P21451",
|
999
|
+
"Q9QZN9",
|
1000
|
+
"P79191",
|
1001
|
+
"P21452",
|
1002
|
+
"P51675",
|
1003
|
+
"Q28642",
|
1004
|
+
"P21453",
|
1005
|
+
"P51676",
|
1006
|
+
"Q60483",
|
1007
|
+
"P49892",
|
1008
|
+
"P14600",
|
1009
|
+
"P51677",
|
1010
|
+
"Q60484",
|
1011
|
+
"Q9ES90",
|
1012
|
+
"Q9HC97",
|
1013
|
+
"P51678",
|
1014
|
+
"P17124",
|
1015
|
+
"P79748",
|
1016
|
+
"P51679",
|
1017
|
+
"O18793",
|
1018
|
+
"Q62805",
|
1019
|
+
"P41231",
|
1020
|
+
"P28678",
|
1021
|
+
"P41232",
|
1022
|
+
"Q9Y2T5",
|
1023
|
+
"P51680",
|
1024
|
+
"P18599",
|
1025
|
+
"Q9TT96",
|
1026
|
+
"Q9WVD0",
|
1027
|
+
"P28679",
|
1028
|
+
"O19054",
|
1029
|
+
"Q18007",
|
1030
|
+
"P32229",
|
1031
|
+
"Q9XT82",
|
1032
|
+
"O35599",
|
1033
|
+
"P51681",
|
1034
|
+
"P51682",
|
1035
|
+
"P47800",
|
1036
|
+
"P28680",
|
1037
|
+
"Q25414",
|
1038
|
+
"P28681",
|
1039
|
+
"P51683",
|
1040
|
+
"Q90214",
|
1041
|
+
"Q28519",
|
1042
|
+
"Q90215",
|
1043
|
+
"P51684",
|
1044
|
+
"P28682",
|
1045
|
+
"O60755",
|
1046
|
+
"P28683",
|
1047
|
+
"P29371",
|
1048
|
+
"P51685",
|
1049
|
+
"Q9H3N8",
|
1050
|
+
"O16017",
|
1051
|
+
"P21462",
|
1052
|
+
"P25089",
|
1053
|
+
"O00574",
|
1054
|
+
"P21463",
|
1055
|
+
"P28684",
|
1056
|
+
"P79756",
|
1057
|
+
"O54689",
|
1058
|
+
"P51686",
|
1059
|
+
"P47936",
|
1060
|
+
"O16018",
|
1061
|
+
"P51582",
|
1062
|
+
"O16019",
|
1063
|
+
"P22671",
|
1064
|
+
"Q9UM60",
|
1065
|
+
"P47937",
|
1066
|
+
"O77408",
|
1067
|
+
"Q9TTQ9",
|
1068
|
+
"Q95154",
|
1069
|
+
"P26824",
|
1070
|
+
"P25090",
|
1071
|
+
"Q95155",
|
1072
|
+
"O16020",
|
1073
|
+
"P52500",
|
1074
|
+
"Q95156",
|
1075
|
+
"Q28524",
|
1076
|
+
"O35210",
|
1077
|
+
"P32236",
|
1078
|
+
"Q95157",
|
1079
|
+
"P48302",
|
1080
|
+
"Q90352",
|
1081
|
+
"P32237",
|
1082
|
+
"O35476",
|
1083
|
+
"P02700",
|
1084
|
+
"P48303",
|
1085
|
+
"P32238",
|
1086
|
+
"O02213",
|
1087
|
+
"P25095",
|
1088
|
+
"P32239",
|
1089
|
+
"O35214",
|
1090
|
+
"O35478",
|
1091
|
+
"P32240",
|
1092
|
+
"P20395",
|
1093
|
+
"P79763",
|
1094
|
+
"P18901",
|
1095
|
+
"Q16581",
|
1096
|
+
"P25099",
|
1097
|
+
"P79898",
|
1098
|
+
"O77680",
|
1099
|
+
"P32244",
|
1100
|
+
"Q9PUI7",
|
1101
|
+
"P28564",
|
1102
|
+
"P49650",
|
1103
|
+
"P32245",
|
1104
|
+
"P28565",
|
1105
|
+
"P49651",
|
1106
|
+
"P32246",
|
1107
|
+
"P28566",
|
1108
|
+
"P49652",
|
1109
|
+
"Q98894",
|
1110
|
+
"P32247",
|
1111
|
+
"Q9H255",
|
1112
|
+
"Q98895",
|
1113
|
+
"P32248",
|
1114
|
+
"P32249",
|
1115
|
+
"P20272",
|
1116
|
+
"P43088",
|
1117
|
+
"Q95170",
|
1118
|
+
"P50128",
|
1119
|
+
"P32250",
|
1120
|
+
"P50391",
|
1121
|
+
"P70658",
|
1122
|
+
"P08172",
|
1123
|
+
"P50129",
|
1124
|
+
"P08173",
|
1125
|
+
"P32251",
|
1126
|
+
"P46616",
|
1127
|
+
"Q9QYN8",
|
1128
|
+
"P50130",
|
1129
|
+
"P51470",
|
1130
|
+
"P14763",
|
1131
|
+
"P51471",
|
1132
|
+
"P50132",
|
1133
|
+
"Q27987",
|
1134
|
+
"P49660",
|
1135
|
+
"P51472",
|
1136
|
+
"P51473",
|
1137
|
+
"O60412",
|
1138
|
+
"P51474",
|
1139
|
+
"P51475",
|
1140
|
+
"Q90373",
|
1141
|
+
"Q95179",
|
1142
|
+
"P51476",
|
1143
|
+
"P58406",
|
1144
|
+
"O88853",
|
1145
|
+
"P70536",
|
1146
|
+
"Q17094",
|
1147
|
+
"O88854",
|
1148
|
+
"Q11082",
|
1149
|
+
"P37067",
|
1150
|
+
"Q90245",
|
1151
|
+
"P79785",
|
1152
|
+
"P37068",
|
1153
|
+
"O13076",
|
1154
|
+
"Q92633",
|
1155
|
+
"P46626",
|
1156
|
+
"Q91559",
|
1157
|
+
"P37069",
|
1158
|
+
"P46627",
|
1159
|
+
"P21917",
|
1160
|
+
"P23944",
|
1161
|
+
"O97967",
|
1162
|
+
"P46628",
|
1163
|
+
"P56971",
|
1164
|
+
"P43657",
|
1165
|
+
"O62809",
|
1166
|
+
"Q28553",
|
1167
|
+
"P21918",
|
1168
|
+
"P23945",
|
1169
|
+
"P20288",
|
1170
|
+
"O19091",
|
1171
|
+
"O15529",
|
1172
|
+
"P37070",
|
1173
|
+
"Q28422",
|
1174
|
+
"P29274",
|
1175
|
+
"P37071",
|
1176
|
+
"P29275",
|
1177
|
+
"Q9Z0Z6",
|
1178
|
+
"P29276",
|
1179
|
+
"Q25321",
|
1180
|
+
"Q18179",
|
1181
|
+
"P30372",
|
1182
|
+
"Q90252",
|
1183
|
+
"O14843",
|
1184
|
+
"Q9Z2I3",
|
1185
|
+
"Q25322",
|
1186
|
+
"Q08520",
|
1187
|
+
"Q28558",
|
1188
|
+
"P51488",
|
1189
|
+
"P41143",
|
1190
|
+
"P23265",
|
1191
|
+
"Q28691",
|
1192
|
+
"P51489",
|
1193
|
+
"P09241",
|
1194
|
+
"O18312",
|
1195
|
+
"P41144",
|
1196
|
+
"Q61212",
|
1197
|
+
"P23266",
|
1198
|
+
"Q9WV08",
|
1199
|
+
"P41145",
|
1200
|
+
"P46636",
|
1201
|
+
"P23267",
|
1202
|
+
"P56718",
|
1203
|
+
"P41146",
|
1204
|
+
"P21109",
|
1205
|
+
"P51490",
|
1206
|
+
"P79400",
|
1207
|
+
"Q9UPC5",
|
1208
|
+
"Q62035",
|
1209
|
+
"P56719",
|
1210
|
+
"P23269",
|
1211
|
+
"O14718",
|
1212
|
+
"P79798",
|
1213
|
+
"P51491",
|
1214
|
+
"O18315",
|
1215
|
+
"P41149",
|
1216
|
+
"P23270",
|
1217
|
+
"O60431",
|
1218
|
+
"P49681",
|
1219
|
+
"P23271",
|
1220
|
+
"P19327",
|
1221
|
+
"P30935",
|
1222
|
+
"P11613",
|
1223
|
+
"P49682",
|
1224
|
+
"P23272",
|
1225
|
+
"P41968",
|
1226
|
+
"O43603",
|
1227
|
+
"P19328",
|
1228
|
+
"Q63931",
|
1229
|
+
"P30936",
|
1230
|
+
"P49683",
|
1231
|
+
"P11614",
|
1232
|
+
"P23273",
|
1233
|
+
"P46089",
|
1234
|
+
"P28334",
|
1235
|
+
"P49684",
|
1236
|
+
"P30937",
|
1237
|
+
"P11615",
|
1238
|
+
"P23274",
|
1239
|
+
"P28335",
|
1240
|
+
"O13092",
|
1241
|
+
"O43869",
|
1242
|
+
"P97520",
|
1243
|
+
"Q01337",
|
1244
|
+
"P30938",
|
1245
|
+
"P49685",
|
1246
|
+
"P11616",
|
1247
|
+
"P23275",
|
1248
|
+
"Q01338"]
|
1249
|
+
assert_equal(data, @obj.list_truepositive)
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
def test_list_falsenegative
|
1253
|
+
data = ["P18259",
|
1254
|
+
"Q13813",
|
1255
|
+
"Q55593",
|
1256
|
+
"Q00274",
|
1257
|
+
"P54466",
|
1258
|
+
"Q9HJA4",
|
1259
|
+
"P55687",
|
1260
|
+
"Q9W0K0",
|
1261
|
+
"Q42608",
|
1262
|
+
"P45873",
|
1263
|
+
"P45198",
|
1264
|
+
"P15828",
|
1265
|
+
"P18609",
|
1266
|
+
"Q51758",
|
1267
|
+
"P24151",
|
1268
|
+
"P23892",
|
1269
|
+
"P41510",
|
1270
|
+
"P22817",
|
1271
|
+
"P46457",
|
1272
|
+
"O15910",
|
1273
|
+
"P23515",
|
1274
|
+
"O59098",
|
1275
|
+
"P26560",
|
1276
|
+
"P26561",
|
1277
|
+
"P47551",
|
1278
|
+
"P22023",
|
1279
|
+
"P21503",
|
1280
|
+
"Q9VNB3",
|
1281
|
+
"P25147",
|
1282
|
+
"Q42675",
|
1283
|
+
"P21524",
|
1284
|
+
"P06882",
|
1285
|
+
"Q61647",
|
1286
|
+
"P42790",
|
1287
|
+
"Q10775",
|
1288
|
+
"O84877",
|
1289
|
+
"P51656",
|
1290
|
+
"P75548",
|
1291
|
+
"Q92839",
|
1292
|
+
"P51657",
|
1293
|
+
"P37274",
|
1294
|
+
"P34724",
|
1295
|
+
"P07751",
|
1296
|
+
"P00498",
|
1297
|
+
"P07886",
|
1298
|
+
"P26258",
|
1299
|
+
"O67284",
|
1300
|
+
"Q25410",
|
1301
|
+
"P46724",
|
1302
|
+
"P76097",
|
1303
|
+
"P16086",
|
1304
|
+
"P08032",
|
1305
|
+
"P14198",
|
1306
|
+
"P77916",
|
1307
|
+
"O60779",
|
1308
|
+
"P13688",
|
1309
|
+
"Q03834",
|
1310
|
+
"Q63912",
|
1311
|
+
"O68824",
|
1312
|
+
"P77932",
|
1313
|
+
"Q53547",
|
1314
|
+
"P77933",
|
1315
|
+
"P34529",
|
1316
|
+
"Q00126"]
|
1317
|
+
assert_equal(data, @obj.list_falsenegative)
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
def test_list_falsepositive
|
1321
|
+
data =["P41985",
|
1322
|
+
"P41986",
|
1323
|
+
"P17645",
|
1324
|
+
"Q60612",
|
1325
|
+
"Q60879",
|
1326
|
+
"P52592",
|
1327
|
+
"Q60882",
|
1328
|
+
"Q60883",
|
1329
|
+
"Q60884",
|
1330
|
+
"Q60885",
|
1331
|
+
"Q60886",
|
1332
|
+
"Q60887",
|
1333
|
+
"Q60888",
|
1334
|
+
"Q60889",
|
1335
|
+
"Q60890",
|
1336
|
+
"P49218",
|
1337
|
+
"Q60891",
|
1338
|
+
"Q60892",
|
1339
|
+
"P49220",
|
1340
|
+
"Q60893",
|
1341
|
+
"Q60894",
|
1342
|
+
"Q60895",
|
1343
|
+
"O70430",
|
1344
|
+
"O70432",
|
1345
|
+
"P51046",
|
1346
|
+
"P51047",
|
1347
|
+
"P51048",
|
1348
|
+
"P51049",
|
1349
|
+
"P51051",
|
1350
|
+
"P51052",
|
1351
|
+
"Q98913",
|
1352
|
+
"Q98914",
|
1353
|
+
"Q61616",
|
1354
|
+
"Q61618",
|
1355
|
+
"P79250",
|
1356
|
+
"P14803",
|
1357
|
+
"P49287",
|
1358
|
+
"Q28602",
|
1359
|
+
"P97267",
|
1360
|
+
"Q90305",
|
1361
|
+
"Q29006",
|
1362
|
+
"Q95252",
|
1363
|
+
"P34985",
|
1364
|
+
"Q90456",
|
1365
|
+
"Q95136",
|
1366
|
+
"Q95137",
|
1367
|
+
"Q62953",
|
1368
|
+
"Q95195"]
|
1369
|
+
assert_equal(data, @obj.list_falsepositive)
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
def test_list_potentialhit
|
1373
|
+
data = ["P41985",
|
1374
|
+
"P41986",
|
1375
|
+
"P17645",
|
1376
|
+
"Q60612",
|
1377
|
+
"Q60879",
|
1378
|
+
"P52592",
|
1379
|
+
"Q60882",
|
1380
|
+
"Q60883",
|
1381
|
+
"Q60884",
|
1382
|
+
"Q60885",
|
1383
|
+
"Q60886",
|
1384
|
+
"Q60887",
|
1385
|
+
"Q60888",
|
1386
|
+
"Q60889",
|
1387
|
+
"Q60890",
|
1388
|
+
"P49218",
|
1389
|
+
"Q60891",
|
1390
|
+
"Q60892",
|
1391
|
+
"P49220",
|
1392
|
+
"Q60893",
|
1393
|
+
"Q60894",
|
1394
|
+
"Q60895",
|
1395
|
+
"O70430",
|
1396
|
+
"O70432",
|
1397
|
+
"P51046",
|
1398
|
+
"P51047",
|
1399
|
+
"P51048",
|
1400
|
+
"P51049",
|
1401
|
+
"P51051",
|
1402
|
+
"P51052",
|
1403
|
+
"Q98913",
|
1404
|
+
"Q98914",
|
1405
|
+
"Q61616",
|
1406
|
+
"Q61618",
|
1407
|
+
"P79250",
|
1408
|
+
"P14803",
|
1409
|
+
"P49287",
|
1410
|
+
"Q28602",
|
1411
|
+
"P97267",
|
1412
|
+
"Q90305",
|
1413
|
+
"Q29006",
|
1414
|
+
"Q95252",
|
1415
|
+
"P34985",
|
1416
|
+
"Q90456",
|
1417
|
+
"Q95136",
|
1418
|
+
"Q95137",
|
1419
|
+
"Q62953",
|
1420
|
+
"Q95195"]
|
1421
|
+
assert_equal(data, @obj.list_potentialhit)
|
1422
|
+
end
|
1423
|
+
|
1424
|
+
def test_list_unknown
|
1425
|
+
data = []
|
1426
|
+
assert_equal(data, @obj.list_unknown)
|
1427
|
+
end
|
1428
|
+
|
1429
|
+
def test_pdb_xref
|
1430
|
+
data = ["1BOJ", "1BOK", "1F88"]
|
1431
|
+
assert_equal(data, @obj.pdb_xref)
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
def test_pdoc_xref
|
1435
|
+
data = "PDOC00210"
|
1436
|
+
assert_equal(data, @obj.pdoc_xref)
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
def test_pa2re
|
1440
|
+
pa = '[AC]-x-V-x(4)-{ED}.'
|
1441
|
+
assert_equal(/[AC].V.{4}[^ED]/, @obj.pa2re(pa))
|
1442
|
+
end
|
1443
|
+
|
1444
|
+
def test_self_pa2re
|
1445
|
+
pa = '[AC]-x-V-x(4)-{ED}.'
|
1446
|
+
assert_equal(/[AC].V.{4}[^ED]/, Bio::PROSITE.pa2re(pa))
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
end # class TestPROSITE
|
1450
|
+
end
|