Template:Pathway/Metabolic

From Metabolomics.JP
< Template:Pathway(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
 
   ---Set the first line
 
   ---Set the first line
 
   local line = stdin:match("([^\n]+)");
 
   local line = stdin:match("([^\n]+)");
    for v in string.gmatch(line, "(%d%d?)") do
+
  print(line);
      table.add(list,v);
+
  for v in string.gmatch(line, "(%d%d?)") do
    end
+
    table.add(list,v);
 +
  end
 
   ---From the second line, leave connected positions only
 
   ---From the second line, leave connected positions only
 
   for line in stdin:gmatch("([^\n]+)") do
 
   for line in stdin:gmatch("([^\n]+)") do
Line 44: Line 45:
 
   for i,v in ipairs(list)
 
   for i,v in ipairs(list)
 
     do print(v) end
 
     do print(v) end
|{{#repeat:Pathway/Mapping|1|{{#cdr:{{{list}}}|&&}}|&&}}
+
| 1 2 3 4 5 6 7 8
 +
{{#repeat:Pathway/Mapping|1|{{#cdr:{{{list}}}|&&}}|&&}}
 
}}
 
}}

Revision as of 06:37, 16 March 2009


./lua: /tmp/mw_ex_lua_TmM9A5:6: attempt to call field 'add' (a nil value) 1 2 3 4 5 6 7 8

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox