Template:Pathway/Metabolic

From Metabolomics.JP
< Template:Pathway(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
 
{{#def:pathwayPosition|{{#if:{{{position|}}}|{{{position}}}|}}}}
 
{{#def:pathwayPosition|{{#if:{{{position|}}}|{{{position}}}|}}}}
  
<!----
 
 
{{#repeat:Pathway/MetabolicTable|4|<!----
 
{{#repeat:Pathway/MetabolicTable|4|<!----
 
4行の出力内訳
 
4行の出力内訳
Line 20: Line 19:
 
       if (count==2) then
 
       if (count==2) then
 
       --- First mapping line ---
 
       --- First mapping line ---
 +
        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;
+
           list[k] = v; str = str .. " " .. k .. "->" .. v;
 
         end
 
         end
 +
        print(str);
 
       else
 
       else
 
       --- Second and later lines ---
 
       --- Second and later lines ---

Revision as of 13:45, 16 March 2009



|}

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox