Sha256: 6a2b7ec670bbd63d4147b6fcd41c7ad561aa74831d1b3bec2ffb035d2aef3881

Contents?: true

Size: 639 Bytes

Versions: 139

Compression:

Stored size: 639 Bytes

Contents

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

class TestPersistTSVLMDB < Test::Unit::TestCase

  def test_organism
    require 'rbbt/sources/organism'
    if Persist.respond_to? :open_lmdb
      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 => "LMDB", :persist_dir => tmp_file
        assert_equal "ENSG00000141510", tsv["TP53"]
      end
    end
  end
end

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
rbbt-util-5.42.0 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.41.1 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.41.0 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.40.5 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.40.4 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.40.3 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.40.0 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.39.0 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.38.1 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.38.0 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.16 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.15 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.14 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.13 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.12 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.11 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.10 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.9 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.8 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.6 test/rbbt/persist/tsv/test_lmdb.rb