Sha256: e83c0a30384d365b3f8b1ce5169da6fe4632ee693ce3474a22e91968763071b0
Contents?: true
Size: 1.68 KB
Versions: 3
Compression:
Stored size: 1.68 KB
Contents
# # = test/functional/bio/appl/test_blast.rb - Unit test for Bio::Blast with network connection # # Copyright:: Copyright (C) 2011 # Naohisa Goto <ng@bioruby.org> # License:: The Ruby License # # loading helper routine for testing bioruby require 'pathname' load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3, 'bioruby_test_helper.rb')).cleanpath.to_s # libraries needed for the tests require 'test/unit' require 'bio/sequence' require 'bio/appl/blast' module Bio module FunctTestBlast module NetTestBlastCommonProteinQuery filename = File.join(BioRubyTestDataPath, 'fasta', 'EFTU_BACSU.fasta') QuerySequence = File.read(filename).freeze def test_query report = nil assert_nothing_raised { report = @blast.query(QuerySequence) } assert(report.hits.size > 0) end end #module NetTestBlastCommonProteinQuery class NetTestBlast_GenomeNet < Test::Unit::TestCase include NetTestBlastCommonProteinQuery def setup @blast = Bio::Blast.new('blastp', 'mine-aa eco', [ '-e', '1e-10', '-v', '10', '-b', '10' ], 'genomenet') end end #class NetTestBlast_GenomeNet class NetTestBlast_DDBJ < Test::Unit::TestCase include NetTestBlastCommonProteinQuery def setup @blast = Bio::Blast.new('blastp', 'SWISS', ['-e', '1e-10', '-v', '10', '-b', '10' ], 'ddbj') end end #class NetTestBlast_DDBJ end #module FuncTestBlast end #module Bio
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bio-1.4.3.0001 | test/network/bio/appl/test_blast.rb |
bio-1.4.3 | test/network/bio/appl/test_blast.rb |
bio-1.4.2 | test/functional/bio/appl/test_blast.rb |