Sha256: ce9e530fd9b4b20ac0e558ce5eb02a38b0d2c81ee030f2a095583cc5bda31831

Contents?: true

Size: 620 Bytes

Versions: 112

Compression:

Stored size: 620 Bytes

Contents

require 'rbbt-util'

module Barcode
  extend Resource
  self.subdir = "share/databases/Barcode"

  Barcode.claim Barcode.transcriptome, :proc do
    tsv = TSV.open(Open.open("http://rafalab.jhsph.edu/barcode/abc.ntc.GPL570.csv"), 
                   :fix => Proc.new{|l| l.gsub('"', '').gsub(',', "\t")}, :header_hash => "",
                  :type => :list, :cast => :to_f)
    io = Open.open("http://rafalab.jhsph.edu/barcode/abc.ntc.GPL570.csv")
    fields = io.gets.chomp.gsub('"','').split(',')
    io.close
    fields.shift
    tsv.fields = fields
    tsv.key_field = "AFFY HG U133-PLUS-2"
    tsv.to_s
  end

end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
rbbt-sources-3.4.2 lib/rbbt/sources/barcode.rb
rbbt-sources-3.4.1 lib/rbbt/sources/barcode.rb
rbbt-sources-3.3.0 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.16 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.15 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.14 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.13 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.12 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.11 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.10 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.9 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.8 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.6 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.4 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.3 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.2 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.1 lib/rbbt/sources/barcode.rb
rbbt-sources-3.2.0 lib/rbbt/sources/barcode.rb
rbbt-sources-3.1.52 lib/rbbt/sources/barcode.rb
rbbt-sources-3.1.51 lib/rbbt/sources/barcode.rb