|
EC |
Gene |
Localization |
END
# generate gene table with localization
names = Bio::PSORT::PSORT2::SclNames
multi_genes = Hash.new(0)
ec.values.flatten.sort.uniq.each do |ec_num|
ec.find_all {|x| x[1].include?(ec_num) }.each do |gene|
gene = gene[0]
loc = scl[gene]
color = PSORT::COLOR_Palette[loc]
name = names[loc]
multi_genes[gene] += 1
html += <
#{multi_genes[gene]} |
#{KEGG.link_ec(ec_num)} |
#{KEGG.link_genes(gene)} |
#{name} |
END
end
end
html += <
Code |
Color |
END
# generate color code table also
PSORT::COLOR_Palette.sort.each do |code, color|
html += <
#{code} |
#{names[code]} |
END
end
html += <
| |