Template:MassBank/Matrix
From Metabolomics.JP
(Difference between revisions)
m |
m |
||
Line 118: | Line 118: | ||
{{#repeat:MassBank/SearchFgmt|1| | {{#repeat:MassBank/SearchFgmt|1| | ||
{{#lua: | {{#lua: | ||
− | + | local ruler | |
− | local ruler | + | |
for line in stdin:gmatch("[%S ,]+") do | for line in stdin:gmatch("[%S ,]+") do | ||
if (string.find(line, "^&&[&%a%d]+&&$") ~= nil) | if (string.find(line, "^&&[&%a%d]+&&$") ~= nil) | ||
− | ruler | + | print(ruler) return |
end | end | ||
end | end | ||
− | |||
|{{{data|CHClNOPS}}} | |{{{data|CHClNOPS}}} | ||
}}|&&}} | }}|&&}} | ||
Line 133: | Line 131: | ||
local ruler = nil | local ruler = nil | ||
for line in stdin:gmatch("[%S ,]+") do | for line in stdin:gmatch("[%S ,]+") do | ||
− | if (string.find(line, "^&&[&%a%d]+&&$") | + | if (string.find(line, "^&&[&%a%d]+&&$") == nil) |
− | + | print(line) | |
end | end | ||
end | end | ||
− | |||
|{{{data|CHClNOPS}}} | |{{{data|CHClNOPS}}} | ||
}} | }} |
Revision as of 23:50, 13 May 2009
No 'ION INFO' line in the form &&(formula)&&(formula)&&...&&
MassBank/Matrix | 64 CHClONSP |
64 CHClONSP |
|
./lua: /tmp/mw_ex_lua_5iqhjh:5: 'then' expected near 'print'