bio 1.4.3.0001 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +39 -33
- data/BSDL +22 -0
- data/COPYING +2 -2
- data/COPYING.ja +36 -36
- data/ChangeLog +2404 -1025
- data/KNOWN_ISSUES.rdoc +15 -55
- data/README.rdoc +17 -23
- data/RELEASE_NOTES.rdoc +246 -183
- data/Rakefile +3 -2
- data/bin/br_biofetch.rb +29 -5
- data/bioruby.gemspec +15 -32
- data/bioruby.gemspec.erb +10 -20
- data/doc/ChangeLog-1.4.3 +1478 -0
- data/doc/RELEASE_NOTES-1.4.3.rdoc +204 -0
- data/doc/Tutorial.rd +0 -6
- data/doc/Tutorial.rd.html +7 -12
- data/doc/Tutorial.rd.ja +960 -1064
- data/doc/Tutorial.rd.ja.html +977 -1067
- data/gemfiles/Gemfile.travis-jruby1.8 +2 -1
- data/gemfiles/Gemfile.travis-jruby1.9 +2 -4
- data/gemfiles/Gemfile.travis-rbx +13 -0
- data/gemfiles/Gemfile.travis-ruby1.8 +2 -1
- data/gemfiles/Gemfile.travis-ruby1.9 +2 -4
- data/gemfiles/Gemfile.travis-ruby2.2 +9 -0
- data/lib/bio.rb +10 -43
- data/lib/bio/alignment.rb +8 -14
- data/lib/bio/appl/blast.rb +1 -2
- data/lib/bio/appl/blast/format0.rb +18 -7
- data/lib/bio/appl/blast/remote.rb +0 -9
- data/lib/bio/appl/blast/report.rb +1 -1
- data/lib/bio/appl/clustalw/report.rb +3 -1
- data/lib/bio/appl/genscan/report.rb +1 -2
- data/lib/bio/appl/iprscan/report.rb +1 -2
- data/lib/bio/appl/meme/mast.rb +4 -4
- data/lib/bio/appl/meme/mast/report.rb +1 -1
- data/lib/bio/appl/paml/codeml.rb +2 -2
- data/lib/bio/appl/paml/codeml/report.rb +1 -0
- data/lib/bio/appl/paml/common.rb +1 -1
- data/lib/bio/appl/sosui/report.rb +1 -2
- data/lib/bio/command.rb +62 -2
- data/lib/bio/data/aa.rb +13 -31
- data/lib/bio/data/codontable.rb +1 -2
- data/lib/bio/db/biosql/biosql_to_biosequence.rb +1 -0
- data/lib/bio/db/biosql/sequence.rb +1 -1
- data/lib/bio/db/embl/common.rb +1 -1
- data/lib/bio/db/embl/embl.rb +5 -4
- data/lib/bio/db/embl/format_embl.rb +3 -3
- data/lib/bio/db/embl/sptr.rb +9 -1444
- data/lib/bio/db/embl/swissprot.rb +12 -29
- data/lib/bio/db/embl/trembl.rb +13 -30
- data/lib/bio/db/embl/uniprot.rb +12 -29
- data/lib/bio/db/embl/uniprotkb.rb +1455 -0
- data/lib/bio/db/fasta.rb +17 -0
- data/lib/bio/db/fasta/defline.rb +1 -3
- data/lib/bio/db/fastq.rb +1 -1
- data/lib/bio/db/genbank/ddbj.rb +9 -5
- data/lib/bio/db/genbank/refseq.rb +11 -3
- data/lib/bio/db/gff.rb +3 -4
- data/lib/bio/db/go.rb +5 -6
- data/lib/bio/db/kegg/module.rb +4 -5
- data/lib/bio/db/kegg/pathway.rb +4 -5
- data/lib/bio/db/kegg/reaction.rb +1 -1
- data/lib/bio/db/nexus.rb +3 -2
- data/lib/bio/db/pdb/pdb.rb +2 -2
- data/lib/bio/db/phyloxml/phyloxml_elements.rb +82 -59
- data/lib/bio/db/phyloxml/phyloxml_parser.rb +2 -2
- data/lib/bio/db/phyloxml/phyloxml_writer.rb +1 -2
- data/lib/bio/db/sanger_chromatogram/chromatogram.rb +1 -2
- data/lib/bio/db/transfac.rb +1 -1
- data/lib/bio/io/das.rb +40 -41
- data/lib/bio/io/fastacmd.rb +0 -16
- data/lib/bio/io/fetch.rb +111 -55
- data/lib/bio/io/flatfile/buffer.rb +4 -5
- data/lib/bio/io/hinv.rb +2 -3
- data/lib/bio/io/ncbirest.rb +43 -6
- data/lib/bio/io/pubmed.rb +76 -81
- data/lib/bio/io/togows.rb +33 -10
- data/lib/bio/map.rb +1 -1
- data/lib/bio/pathway.rb +1 -1
- data/lib/bio/sequence/compat.rb +1 -1
- data/lib/bio/sequence/na.rb +63 -12
- data/lib/bio/shell.rb +0 -2
- data/lib/bio/shell/core.rb +5 -6
- data/lib/bio/shell/interface.rb +3 -4
- data/lib/bio/shell/irb.rb +1 -2
- data/lib/bio/shell/plugin/entry.rb +2 -3
- data/lib/bio/shell/plugin/seq.rb +7 -6
- data/lib/bio/shell/setup.rb +1 -2
- data/lib/bio/tree.rb +2 -2
- data/lib/bio/util/contingency_table.rb +0 -2
- data/lib/bio/util/restriction_enzyme/range/sequence_range.rb +2 -2
- data/lib/bio/util/sirna.rb +76 -16
- data/lib/bio/version.rb +8 -9
- data/sample/benchmark_clustalw_report.rb +47 -0
- data/sample/biofetch.rb +248 -151
- data/setup.rb +6 -7
- data/test/data/clustalw/example1-seqnos.aln +58 -0
- data/test/network/bio/appl/blast/test_remote.rb +1 -15
- data/test/network/bio/appl/test_blast.rb +0 -12
- data/test/network/bio/io/test_pubmed.rb +49 -0
- data/test/network/bio/io/test_togows.rb +0 -1
- data/test/network/bio/test_command.rb +65 -2
- data/test/unit/bio/appl/bl2seq/test_report.rb +0 -1
- data/test/unit/bio/appl/blast/test_report.rb +110 -48
- data/test/unit/bio/appl/clustalw/test_report.rb +67 -51
- data/test/unit/bio/appl/sim4/test_report.rb +46 -17
- data/test/unit/bio/appl/test_blast.rb +2 -2
- data/test/unit/bio/db/embl/test_embl.rb +0 -1
- data/test/unit/bio/db/embl/test_embl_rel89.rb +0 -1
- data/test/unit/bio/db/embl/{test_sptr.rb → test_uniprotkb.rb} +111 -115
- data/test/unit/bio/db/embl/{test_uniprot_new_part.rb → test_uniprotkb_new_part.rb} +11 -11
- data/test/unit/bio/db/genbank/test_genbank.rb +10 -4
- data/test/unit/bio/db/pdb/test_pdb.rb +14 -8
- data/test/unit/bio/db/test_fasta.rb +41 -1
- data/test/unit/bio/db/test_fastq.rb +14 -4
- data/test/unit/bio/db/test_gff.rb +2 -2
- data/test/unit/bio/db/test_phyloxml.rb +30 -30
- data/test/unit/bio/db/test_phyloxml_writer.rb +2 -2
- data/test/unit/bio/io/flatfile/test_autodetection.rb +1 -2
- data/test/unit/bio/io/flatfile/test_buffer.rb +7 -1
- data/test/unit/bio/io/flatfile/test_splitter.rb +1 -1
- data/test/unit/bio/io/test_togows.rb +3 -2
- data/test/unit/bio/sequence/test_dblink.rb +1 -1
- data/test/unit/bio/sequence/test_na.rb +3 -1
- data/test/unit/bio/test_alignment.rb +1 -2
- data/test/unit/bio/test_command.rb +5 -4
- data/test/unit/bio/test_db.rb +4 -2
- data/test/unit/bio/test_pathway.rb +25 -10
- data/test/unit/bio/util/test_sirna.rb +22 -22
- metadata +656 -1430
- data/doc/KEGG_API.rd +0 -1843
- data/doc/KEGG_API.rd.ja +0 -1834
- data/extconf.rb +0 -2
- data/lib/bio/appl/blast/ddbj.rb +0 -131
- data/lib/bio/db/kegg/taxonomy.rb +0 -280
- data/lib/bio/io/dbget.rb +0 -194
- data/lib/bio/io/ddbjrest.rb +0 -344
- data/lib/bio/io/ddbjxml.rb +0 -458
- data/lib/bio/io/ebisoap.rb +0 -158
- data/lib/bio/io/ensembl.rb +0 -229
- data/lib/bio/io/higet.rb +0 -73
- data/lib/bio/io/keggapi.rb +0 -363
- data/lib/bio/io/ncbisoap.rb +0 -156
- data/lib/bio/io/soapwsdl.rb +0 -119
- data/lib/bio/shell/plugin/keggapi.rb +0 -181
- data/lib/bio/shell/plugin/soap.rb +0 -87
- data/sample/dbget +0 -37
- data/sample/demo_ddbjxml.rb +0 -212
- data/sample/demo_kegg_taxonomy.rb +0 -92
- data/sample/demo_keggapi.rb +0 -502
- data/sample/psortplot_html.rb +0 -214
- data/test/network/bio/io/test_ddbjrest.rb +0 -47
- data/test/network/bio/io/test_ensembl.rb +0 -230
- data/test/network/bio/io/test_soapwsdl.rb +0 -53
- data/test/unit/bio/io/test_ddbjxml.rb +0 -81
- data/test/unit/bio/io/test_ensembl.rb +0 -111
- data/test/unit/bio/io/test_soapwsdl.rb +0 -33
@@ -1,53 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# test/functional/bio/io/test_soapwsdl.rb - Functional test for SOAP/WSDL
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright (C) 2005,2007
|
5
|
-
# Mitsuteru C. Nakao <n@bioruby.org>
|
6
|
-
# License:: The Ruby License
|
7
|
-
#
|
8
|
-
# $Id:$
|
9
|
-
#
|
10
|
-
|
11
|
-
# loading helper routine for testing bioruby
|
12
|
-
require 'pathname'
|
13
|
-
load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
|
14
|
-
'bioruby_test_helper.rb')).cleanpath.to_s
|
15
|
-
|
16
|
-
# libraries needed for the tests
|
17
|
-
require 'test/unit'
|
18
|
-
require 'bio/io/soapwsdl'
|
19
|
-
|
20
|
-
module Bio
|
21
|
-
|
22
|
-
class FuncTestSOAPWSDL < Test::Unit::TestCase
|
23
|
-
|
24
|
-
def setup
|
25
|
-
@wsdl = 'http://www.ebi.ac.uk/xembl/XEMBL.wsdl'
|
26
|
-
@obj = Bio::SOAPWSDL.new(@wsdl)
|
27
|
-
end
|
28
|
-
|
29
|
-
def test_wsdl
|
30
|
-
assert_equal(@wsdl, @obj.wsdl)
|
31
|
-
end
|
32
|
-
|
33
|
-
def test_set_wsdl
|
34
|
-
@obj.wsdl = 'http://soap.genome.jp/KEGG.wsdl'
|
35
|
-
assert_equal('http://soap.genome.jp/KEGG.wsdl', @obj.wsdl)
|
36
|
-
end
|
37
|
-
|
38
|
-
def test_log
|
39
|
-
assert_equal(nil, @obj.log)
|
40
|
-
end
|
41
|
-
|
42
|
-
def test_set_log
|
43
|
-
require 'stringio'
|
44
|
-
io = StringIO.new
|
45
|
-
@obj.log = io
|
46
|
-
|
47
|
-
assert_equal(StringIO, @obj.log.class)
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|
51
|
-
|
52
|
-
end
|
53
|
-
|
@@ -1,81 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# test/unit/bio/io/test_ddbjxml.rb - Unit test for DDBJ XML.
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright (C) 2005 Mitsuteru Nakao <n@bioruby.org>
|
5
|
-
# License:: The Ruby License
|
6
|
-
#
|
7
|
-
# $Id:$
|
8
|
-
#
|
9
|
-
|
10
|
-
# loading helper routine for testing bioruby
|
11
|
-
require 'pathname'
|
12
|
-
load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
|
13
|
-
'bioruby_test_helper.rb')).cleanpath.to_s
|
14
|
-
|
15
|
-
# libraries needed for the tests
|
16
|
-
require 'test/unit'
|
17
|
-
require 'bio/io/ddbjxml'
|
18
|
-
|
19
|
-
module Bio
|
20
|
-
|
21
|
-
class TestDDBJXMLConstants < Test::Unit::TestCase
|
22
|
-
|
23
|
-
def test_constants
|
24
|
-
constants = ["DDBJ", "TxSearch", "ClustalW", "PML", "Gib", "Fasta",
|
25
|
-
"BASE_URI", "SRS", "SERVER_URI", "Gtop", "GetEntry",
|
26
|
-
"Blast", "RequestManager"].sort
|
27
|
-
assert_equal(constants, Bio::DDBJ::XML.constants.sort.collect{|x| x.to_s})
|
28
|
-
end
|
29
|
-
|
30
|
-
def test_base_url
|
31
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/", Bio::DDBJ::XML::BASE_URI)
|
32
|
-
end
|
33
|
-
|
34
|
-
def test_blast_server_rul
|
35
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/Blast.wsdl", Bio::DDBJ::XML::Blast::SERVER_URI)
|
36
|
-
end
|
37
|
-
|
38
|
-
def test_clustalw_server_url
|
39
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/ClustalW.wsdl", Bio::DDBJ::XML::ClustalW::SERVER_URI)
|
40
|
-
end
|
41
|
-
|
42
|
-
def test_ddbj_server_url
|
43
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/DDBJ.wsdl", Bio::DDBJ::XML::DDBJ::SERVER_URI)
|
44
|
-
end
|
45
|
-
|
46
|
-
def test_fasta_server_url
|
47
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/Fasta.wsdl", Bio::DDBJ::XML::Fasta::SERVER_URI)
|
48
|
-
end
|
49
|
-
|
50
|
-
def test_getentry_server_url
|
51
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/GetEntry.wsdl", Bio::DDBJ::XML::GetEntry::SERVER_URI)
|
52
|
-
end
|
53
|
-
|
54
|
-
def test_gib_server_url
|
55
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/Gib.wsdl", Bio::DDBJ::XML::Gib::SERVER_URI)
|
56
|
-
end
|
57
|
-
|
58
|
-
def test_gtop_server_url
|
59
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/Gtop.wsdl", Bio::DDBJ::XML::Gtop::SERVER_URI)
|
60
|
-
end
|
61
|
-
|
62
|
-
def test_pml_server_url
|
63
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/PML.wsdl", Bio::DDBJ::XML::PML::SERVER_URI)
|
64
|
-
end
|
65
|
-
|
66
|
-
def test_srs_server_url
|
67
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/SRS.wsdl", Bio::DDBJ::XML::SRS::SERVER_URI)
|
68
|
-
end
|
69
|
-
|
70
|
-
def test_txsearch_server_url
|
71
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/TxSearch.wsdl", Bio::DDBJ::XML::TxSearch::SERVER_URI)
|
72
|
-
end
|
73
|
-
|
74
|
-
def test_requestmanager_server_url
|
75
|
-
assert_equal("http://xml.nig.ac.jp/wsdl/RequestManager.wsdl", Bio::DDBJ::XML::RequestManager::SERVER_URI)
|
76
|
-
end
|
77
|
-
|
78
|
-
end
|
79
|
-
|
80
|
-
|
81
|
-
end
|
@@ -1,111 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# = test/unit/bio/io/test_ensembl.rb - Unit test for Bio::Ensembl.
|
3
|
-
#
|
4
|
-
# Copyright:: Copyright (C) 2006, 2007
|
5
|
-
# Mitsuteru C. Nakao <n@bioruby.org>
|
6
|
-
# License:: The Ruby License
|
7
|
-
#
|
8
|
-
# $Id:$
|
9
|
-
#
|
10
|
-
|
11
|
-
# loading helper routine for testing bioruby
|
12
|
-
require 'pathname'
|
13
|
-
load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
|
14
|
-
'bioruby_test_helper.rb')).cleanpath.to_s
|
15
|
-
|
16
|
-
# libraries needed for the tests
|
17
|
-
require 'test/unit'
|
18
|
-
require 'bio/io/ensembl'
|
19
|
-
|
20
|
-
# tests for ensembl.rb,v 1.4
|
21
|
-
class TestEnsembl_v14 < Test::Unit::TestCase
|
22
|
-
def test_ensembl_url
|
23
|
-
assert_equal('http://www.ensembl.org', Bio::Ensembl::ENSEMBL_URL)
|
24
|
-
end
|
25
|
-
|
26
|
-
def test_server
|
27
|
-
obj = Bio::Ensembl.new('Homo_sapiens')
|
28
|
-
assert_equal('http://www.ensembl.org', obj.server)
|
29
|
-
end
|
30
|
-
|
31
|
-
def test_organism
|
32
|
-
organism = 'Homo_sapiens'
|
33
|
-
obj = Bio::Ensembl.new(organism)
|
34
|
-
assert_equal(organism, obj.organism)
|
35
|
-
end
|
36
|
-
|
37
|
-
def test_self_human
|
38
|
-
organism = 'Homo_sapiens'
|
39
|
-
obj = Bio::Ensembl.human
|
40
|
-
assert_equal(organism, obj.organism)
|
41
|
-
end
|
42
|
-
|
43
|
-
def test_self_mouse
|
44
|
-
organism = 'Mus_musculus'
|
45
|
-
obj = Bio::Ensembl.mouse
|
46
|
-
assert_equal(organism, obj.organism)
|
47
|
-
end
|
48
|
-
|
49
|
-
def test_new_with_2_args
|
50
|
-
organism = 'Oryza_sativa'
|
51
|
-
server_url = 'http://www.gramene.org'
|
52
|
-
obj = Bio::Ensembl.new(organism, server_url)
|
53
|
-
assert_equal(organism, obj.organism)
|
54
|
-
assert_equal(server_url, obj.server)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
|
59
|
-
class TestEnsembl < Test::Unit::TestCase
|
60
|
-
def test_server_name
|
61
|
-
assert_equal('http://www.ensembl.org', Bio::Ensembl::EBIServerURI)
|
62
|
-
end
|
63
|
-
|
64
|
-
def test_server_uri
|
65
|
-
assert_equal('http://www.ensembl.org', Bio::Ensembl.server_uri)
|
66
|
-
end
|
67
|
-
|
68
|
-
def test_set_server_uri
|
69
|
-
host = 'http://localhost'
|
70
|
-
Bio::Ensembl.server_uri(host)
|
71
|
-
assert_equal(host, Bio::Ensembl.server_uri)
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
|
76
|
-
class TestEnsemblBase < Test::Unit::TestCase
|
77
|
-
def test_exportview
|
78
|
-
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
class TestEnsemblBaseClient < Test::Unit::TestCase
|
83
|
-
def test_class
|
84
|
-
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
|
89
|
-
class TestEnsemblHuman < Test::Unit::TestCase
|
90
|
-
def test_organism
|
91
|
-
assert_equal("Homo_sapiens", Bio::Ensembl::Human::Organism)
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
class TestEnsemblMouse < Test::Unit::TestCase
|
96
|
-
def test_organism
|
97
|
-
assert_equal("Mus_musculus", Bio::Ensembl::Mouse::Organism)
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
|
102
|
-
class TestEnsemblOldStyleClient < Test::Unit::TestCase
|
103
|
-
class Rice < Bio::Ensembl::Base
|
104
|
-
Organism = 'Oryza_sativa'
|
105
|
-
end
|
106
|
-
|
107
|
-
def test_organism
|
108
|
-
assert_equal('Oryza_sativa', Rice::Organism)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
@@ -1,33 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# test/unit/bio/io/test_soapwsdl.rb - Unit test for SOAP/WSDL
|
3
|
-
#
|
4
|
-
# Copytight:: Copyright (C) 2005 Mitsuteru Nakao <n@bioruby.org>
|
5
|
-
# License:: The Ruby License
|
6
|
-
#
|
7
|
-
# $Id:$
|
8
|
-
#
|
9
|
-
|
10
|
-
# loading helper routine for testing bioruby
|
11
|
-
require 'pathname'
|
12
|
-
load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
|
13
|
-
'bioruby_test_helper.rb')).cleanpath.to_s
|
14
|
-
|
15
|
-
# libraries needed for the tests
|
16
|
-
require 'test/unit'
|
17
|
-
require 'bio/io/soapwsdl'
|
18
|
-
|
19
|
-
module Bio
|
20
|
-
|
21
|
-
class TestSOAPWSDL < Test::Unit::TestCase
|
22
|
-
|
23
|
-
def setup
|
24
|
-
@obj = Bio::SOAPWSDL
|
25
|
-
end
|
26
|
-
|
27
|
-
def test_methods
|
28
|
-
methods = ['list_methods','wsdl', 'wsdl=', 'log', 'log=']
|
29
|
-
assert_equal(methods.sort, (@obj.instance_methods - Object.methods).sort.collect { |x| x.to_s })
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
end
|