Sha256: 3d747e57d36f1ed42d3f22c75bbce4a8839cfb6f2b741604049cc166d1f34dbd

Contents?: true

Size: 722 Bytes

Versions: 664

Compression:

Stored size: 722 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 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

664 entries across 664 versions & 1 rubygems

Version Path
rbbt-util-5.28.9 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.28.8 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.28.7 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.28.6 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.28.5 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.28.4 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.28.2 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.28.1 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.28.0 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.13 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.12 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.11 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.10 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.9 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.8 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.7 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.6 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.5 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.4 test/rbbt/persist/tsv/test_lmdb.rb
rbbt-util-5.27.3 test/rbbt/persist/tsv/test_lmdb.rb