Method: Bio::KEGG::GENES#cu_list
- Defined in:
- lib/bio/db/kegg/genes.rb
#cu_list ⇒ Object
223 224 225 226 227 228 229 230 231 |
# File 'lib/bio/db/kegg/genes.rb', line 223 def cu_list ary = [] get('CODON_USAGE').sub(/.*/,'').each_line do |line| # cut 1st line line.chomp.sub(/^.{11}/, '').scan(/..../) do |cu| ary.push(cu.to_i) end end return ary end |