Sha256: cca0ebc4087ddf524e47f4da6517ffbbd8145a23c3801e821680d9d46caeb25f

Contents?: true

Size: 733 Bytes

Versions: 664

Compression:

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

  if Persist.respond_to? :open_leveldb
    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
end

Version data entries

664 entries across 664 versions & 1 rubygems

Version Path
rbbt-util-5.27.2 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.27.1 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.27.0 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.171 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.170 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.169 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.168 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.167 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.166 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.164 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.163 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.162 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.161 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.160 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.159 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.158 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.157 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.156 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.155 test/rbbt/persist/tsv/test_leveldb.rb
rbbt-util-5.26.154 test/rbbt/persist/tsv/test_leveldb.rb