Template:Pathway/Metabolic

From Metabolomics.JP
< Template:Pathway(Difference between revisions)
Jump to: navigation, search
 
(51 intermediate revisions by one user not shown)
Line 1: Line 1:
{{#def:pathwaySource|{{{source|}}}}}
+
{{Volatile:Pathway/Metabolic|{{{source|}}}|{{#replace:{{#trimex:{{{list|}}}}}|&&|__}}|0|{{PAGENAME}}}}
{{#def:pathwayPosition|{{#if:{{{position|}}}|{{{position}}}|}}}}
+
 
+
{{#lua:
+
  local list = {};
+
  local t = {};
+
  for line in stdin:gmatch("([^\n]+)") do
+
    print("\n" .. line .. "\n");
+
    if (string.sub(line,1,1) == 'R') then
+
      line = string.sub(line,2);
+
      for k, v in string.gmatch(line, "(%d%d?) (%d%d?) %d?%d? ?;") do
+
      t[v] = k
+
      print(v .. "-" .. k .. " ");
+
      end
+
    else
+
      for k, v in string.gmatch(line, "(%d%d?) (%d%d?) %d?%d? ?;") do
+
      t[k] = v
+
      print(k .. "-" .. v .. " ");
+
      end
+
    end
+
  end
+
  table.sort(list);
+
  for i,v in ipairs(list)
+
    do print(v) end
+
|{{#repeat:Pathway/Mapping|1|{{#cdr:{{{list}}}|&&}}|&&}}
+
}}
+

Latest revision as of 10:57, 25 March 2009


Total 0 steps.

#ifeq:
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox