Template:Index/mass
From Metabolomics.JP
(Difference between revisions)
| (10 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | <noinclude>質量のインデクス {{{1}}} 最小値(デフォルト0) {{{2}}} 最大値(デフォルト1万) {{{3}}} | + | <noinclude>質量のインデクス: {{{1}}} 最小値(デフォルト0) {{{2}}} 最大値(デフォルト1万) {{{3}}} 検索ページタイトル {{{4}}} true/nil EXTMASS と AVGMASSの選択</noinclude> |
| − | + | {{Warning/Persist}} | |
| − | {{Index/persist|exact mass|{{#expr:{{{1|0}}}-{{{2|0}}} | + | |
| + | {| width=100% | ||
| + | |- | ||
| + | |align=left| {{Index/persist|{{#if:{{{4|}}}|exact mass|average mass}}|{{#expr:{{{1|0}}}-{{{2|0}}}+{{{1|0}}}}}|{{{1|0}}}|Index/mass|{{{3}}}|{{{4|}}}}} | ||
| + | |align=center| [[Index:{{{3}}}|<big>Back to Index</big>]] | ||
| + | |align=right| {{Index/persist|{{#if:{{{4|}}}|exact mass|average mass}}|{{{2|0}}}|{{#expr:{{{2|0}}}+{{{2|0}}}-{{{1|0}}}}}|Index/mass|{{{3}}}|{{{4|}}}}} | ||
| + | |} | ||
| + | <hr> | ||
{| class="wikitable" style="width=100%; margin: 1em auto; border-width:0px 0px 0px 0px;" | {| class="wikitable" style="width=100%; margin: 1em auto; border-width:0px 0px 0px 0px;" | ||
| Line 7: | Line 14: | ||
{{#repeat:IndexTable|1| | {{#repeat:IndexTable|1| | ||
{{#lua: | {{#lua: | ||
| − | local id, ms, msd | + | local id, ms, msd; |
| + | local min = {{{1|0}}}; | ||
| + | local max = {{{2|2000}}}; | ||
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 | ||
| − | + | 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 | end | ||
| Line 33: | Line 35: | ||
end | end | ||
print(output); | print(output); | ||
| − | | | + | |{{#if:{{{4|}}}| {{#extmass:{{{3|FL1C99}}}}}| {{#avemass:{{{3|FL1C99}}}}} }} |
}} | }} | ||
}} | }} | ||
|} | |} | ||
Latest revision as of 03:00, 25 March 2009
質量のインデクス: {{{1}}} 最小値(デフォルト0) {{{2}}} 最大値(デフォルト1万) {{{3}}} 検索ページタイトル {{{4}}} true/nil EXTMASS と AVGMASSの選択
Do not edit! This page is automatically generated using Persist function (Last updated: 20090325030030).
| [[Index:{{{3}}}|Back to Index]] |