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.0.22 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.21 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.20 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.19 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.18 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.17 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.16 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.14 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.13 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.12 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.11 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.10 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.9 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.8 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.7 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.6 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.5 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.4 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.3 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.2 lib/rbbt/sources/barcode.rb