Template:JournalTitle/TableRow3

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
(Undo revision 69863 by Editor (Talk))
Line 1: Line 1:
 
+
{{#if:{{{1|}}}{{{2|}}}{{{3|}}}|{{#cr:}}{{#Bar:}}- valign="top"{{#cr:}}{{#Bar:}}[[Special:Search?ns102=1&search={{#replace:{{{1|}}}|\.? |_}}|{{{1|}}}]]{{#Bar:}}{{#Bar:}}{{{2|}}}{{#Bar:}}{{#Bar:}}{{{3|}}}}}{{#cr:}}
Last updated: {{REVISIONTIMESTAMP}}
+
{| width=100%
+
|-
+
|align=left| {{Index/persist|{{#if:true|exact mass|average mass}}|{{#expr:225-250+225}}|225|Index/mass|FL|true}}
+
|align=center| [[Index:FL|Back to Index]]
+
|align=right| {{Index/persist|{{#if:true|exact mass|average mass}}|250|{{#expr:250+250-225}}|Index/mass|FL|true}}
+
|}
+
 
+
{| class="wikitable" style="width=100%; margin: 1em auto; border-width:0px 0px 0px 0px;"
+
|- style="background:#ccf"
+
{{#repeat:IndexTable|1|
+
{{#lua:
+
  local id, ms, msd;
+
  local min = 225;
+
  local max = 250;
+
  local hash = {};
+
  local idx = {};
+
  for id, ms in stdin:gmatch("&&(%w+)&&([%d\.]+)") do
+
    msd = tonumber(ms); ---質量の最小と最大の間に入る部分のみ考慮
+
    if ((msd >= min) and (msd <= max)) then
+
      if (hash[msd] == null)
+
        then hash[msd] = id;
+
          table.insert(idx, msd);
+
        else hash[msd] = hash[msd].."&&"..id;
+
      end
+
    end
+
  end
+
  table.sort(idx);
+
  local output = "";
+
  for id, val in pairs(idx) do
+
    output = output .. val .."&&".. hash[val] .. "\n";
+
  end
+
  print(output);
+
|{{#if:true| {{#extmass:FL}}| {{#avemass:FL}} }}
+
}}
+
}}
+
|}
+

Revision as of 13:33, 16 May 2008


Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox