Template:JournalTitle/TableRow3
From Metabolomics.JP
(Difference between revisions)
|
|
| (3 intermediate revisions by 2 users not shown) |
| Line 1: |
Line 1: |
| − | | + | {{#if:{{{1|}}}|{{#cr:}}{{#bar:}}- valign="top"{{#cr:}}{{#bar:}}[[Volatile:ListRef?my_1={{#replace:{{#nth:{{{1}}}|2|&&}}| |_}}&my_2={{NAMESPACE}}|{{#nth:{{{1}}}|2|&&}}]]{{#bar:}}{{#bar:}}{{#nth:{{{1}}}|3|&&}}{{#bar:}}{{#bar:}}{{#nth:{{{1}}}|4|&&}}}}{{#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}} }}
| + | |
| − | }} | + | |
| − | }} | + | |
| − | |}
| + | |
Latest revision as of 13:13, 20 August 2010