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