Template:Pathway/Metabolic
From Metabolomics.JP
< Template:Pathway(Difference between revisions)
Line 22: | Line 22: | ||
local str = ""; | local str = ""; | ||
for k, v in string.gmatch(line, "(%d%d?) (%d%d?) %d?%d? ?;") do | for k, v in string.gmatch(line, "(%d%d?) (%d%d?) %d?%d? ?;") do | ||
− | list[k] = v; str = str .. " " .. k .. "->" .. v; | + | list[k] = v; str = str .. "<br/>" .. k .. "->" .. v; |
end | end | ||
print(str); | print(str); | ||
Line 46: | Line 46: | ||
if (map[k] ~= nil) | if (map[k] ~= nil) | ||
then list2[map[k]] = map[k]; | then list2[map[k]] = map[k]; | ||
− | str = str .. " " .. k .. "->" .. map[k]; | + | str = str .. "<br/>" .. k .. "->" .. map[k]; |
end | end | ||
end | end | ||
Line 54: | Line 54: | ||
local str = ""; | local str = ""; | ||
for k, v in pairs(list) do | for k, v in pairs(list) do | ||
− | str = str .. k .. " "; | + | str = str .. k .. "<br/>"; |
end | end | ||
print(str); -- output 4th line | print(str); -- output 4th line |
Revision as of 13:48, 16 March 2009