Sha256: c96aab9ff5025065f92ddef39906088bc82c7d4617ae8e02af8f1008d2c68f05

Contents?: true

Size: 674 Bytes

Versions: 29

Compression:

Stored size: 674 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../test_helper')
require 'rbbt/persist'
require 'rbbt/annotations'
require 'rbbt/util/tmpfile'
require 'test/unit'

module TestAnnotation
  extend Annotation

  self.annotation :test_annotation
end

class TestPersistTSVLevelDB < Test::Unit::TestCase

  def test_organism
    require 'rbbt/sources/organism'
    TmpFile.with_file do |tmp_file|
      tsv = Organism.identifiers("Hsa").tsv :key_field => "Associated Gene Name", :fields => ["Ensembl Gene ID"], :type => :single, :persist => true, :persist_engine => "LevelDB", :persist_dir => tmp_file
      assert_equal "ENSG00000141510", tsv["TP53"]
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
rbbt-util-5.6.8 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.6.7 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.6.6 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.6.5 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.6.4 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.6.3 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.6.2 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.6.1 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.6.0 test/rbbt/persist/tsv/test_leveldb.rb