Sha256: 31cd4431ceb2ab69118f1e8080952799152f1bfe8303199a0252fa3bfc95bc3a

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

require 'helper'
require 'blast_string_parser'

class BlastStringParserTest < Test::Unit::TestCase
  def test_get_species_info
    bsp = BlastStringParser.new()
    assert_equal "Xenopus (Silurana) tropicalis", bsp.get_species_name("PREDICTED: uncharacterized protein K02A2.6-like [Xenopus (Silurana) tropicalis]")
    assert_equal "Corticium_candelabrum", bsp.get_species_name("CC1c114_molpal [Corticium_candelabrum]")
  end
  def test_get_query_seq
    bsp = BlastStringParser.new()
    assert_equal "Aqu1.200003", bsp.get_query_seq("Aqu1.200003")
    assert_equal "AW3C1", bsp.get_query_seq("AW3C1 [Astrosclera_willeyana]")
    assert_equal "AW3C1_molpal", bsp.get_query_seq("AW3C1_molpal")
    assert_equal "CC1c1_molpal", bsp.get_query_seq("CC1c1_molpal [Corticium_candelabrum]")
    assert_equal "CC1c1_molpal", bsp.get_query_seq("CC1c1_molpal  [Corticium_candelabrum]")
    assert_equal "CC1c1_molpal", bsp.get_query_seq("CC1c1_molpal \n[Corticium_candelabrum]")
    assert_equal "CC1c1_molpal", bsp.get_query_seq("CC1c1_molpal [Corticium_candelabrum], this is a nice_sequence I found rummaging through my fridge [an older model from AEG]")
    assert_equal "CC1c1", bsp.get_query_seq("CC1c1 (tastes really good with curry)")
    assert_equal "CC1c1_molpal", bsp.get_query_seq("CC1c1_molpal [Corticium_candelabrum] (oh, hai!)")
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bio-phyta-0.9.4 test/test_blast_string_parser.rb
bio-phyta-0.9.3 test/test_blast_string_parser.rb
bio-phyta-0.9.2 test/test_blast_string_parser.rb
bio-phyta-0.9.1 test/test_blast_string_parser.rb
bio-phyta-0.9.0 test/test_blast_string_parser.rb