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.1 lib/rbbt/sources/barcode.rb
rbbt-sources-3.0.0 lib/rbbt/sources/barcode.rb
rbbt-sources-2.1.7 lib/rbbt/sources/barcode.rb
rbbt-sources-2.1.5 lib/rbbt/sources/barcode.rb
rbbt-sources-2.1.4 lib/rbbt/sources/barcode.rb
rbbt-sources-2.1.3 lib/rbbt/sources/barcode.rb
rbbt-sources-2.1.2 lib/rbbt/sources/barcode.rb
rbbt-sources-2.1.1 lib/rbbt/sources/barcode.rb
rbbt-sources-2.1.0 lib/rbbt/sources/barcode.rb
rbbt-sources-2.0.2 lib/rbbt/sources/barcode.rb
rbbt-sources-2.0.1 lib/rbbt/sources/barcode.rb
rbbt-sources-2.0.0 lib/rbbt/sources/barcode.rb