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.37.4 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.3 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.1 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.37.0 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.36.0 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.35.4 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.35.3 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.35.2 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.35.1 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.27 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.26 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.25 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.24 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.23 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.22 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.21 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.20 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.18 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.17 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.34.16 test/rbbt/persist/tsv/test_lmdb.rb