Sandbox

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 62: Line 62:
 
{{#extmass:FL1AAC}}
 
{{#extmass:FL1AAC}}
 
{{#lua:
 
{{#lua:
   local id, ms
+
   local id, ms, msd;
   local hash = {}
+
   local hash = {};
   local idx = {}
+
   local idx = {};
 
   for id, ms in stdin:gmatch("&&(%w+)&&([%d\.]+)") do
 
   for id, ms in stdin:gmatch("&&(%w+)&&([%d\.]+)") do
     hash[tonumber(ms)] = id;
+
     msd = tonumber(ms);
    table.insert(idx, tonumber(ms));
+
    if (hash[msd] == null)
 +
      then hash[msd] = id; table.insert(idx, msd);
 +
      else hash[msd] = hash[msd].."&&"..id;
 +
    end
 
   end
 
   end
 
   table.sort(idx);
 
   table.sort(idx);

Revision as of 11:11, 26 April 2008

this is sandbox page.

このページでは、変数を使用しています。


{{#graph:
pie(円グラフ)もしくはpie3(3D円グラフ)(後で、折れ線グラフ、棒グラフをサポートする予定)
横サイズx縦サイズ(ex. 300x400)
データ(,区切り)
ラベル(,区切り)
タイトル
}}

FL1 FL4


FL1 FL2 FL3 FL4


{{#extmass:FL1AAC}}

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox