Method: Bio::KEGG::EXPRESSION#initialize
- Defined in:
- lib/bio/db/kegg/expression.rb
#initialize(entry) ⇒ EXPRESSION
Returns a new instance of EXPRESSION.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/bio/db/kegg/expression.rb', line 19 def initialize(entry) @orf2val = Hash.new('') @orf2rgb = Hash.new('') @orf2ratio = Hash.new('') @max_intensity = 10000 entry.split("\n").each do |line| unless /^#/ =~ line ary = line.split("\t") orf = ary.shift val = ary[2, 4].collect {|x| x.to_f} @orf2val[orf] = val end end end |