Template:JournalTitle/TableRow3
From Metabolomics.JP
(Difference between revisions)
| Line 1: | Line 1: | ||
| − | + | ||
| + | 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:31, 16 May 2008
Last updated: 20080516133108
| Back to Index |