Template:MassBank/Matrix
From Metabolomics.JP
(Difference between revisions)
m |
m |
||
| Line 64: | Line 64: | ||
---Check Ruler--- | ---Check Ruler--- | ||
if (ruler == nil) then | if (ruler == nil) then | ||
| − | print("No | + | print("No 'ION INFO' line in the form &&(formula)&&(formula)&&...&&"); |
ruler = "CHClONSP"; | ruler = "CHClONSP"; | ||
end | end | ||
| Line 128: | Line 128: | ||
|{{{data|CHClNOPS}}} | |{{{data|CHClNOPS}}} | ||
}}|&&}} | }}|&&}} | ||
| + | |||
| + | {{#lua: | ||
| + | local fgmt = ""; | ||
| + | local ruler; | ||
| + | for line in stdin:gmatch("[%S ,]+") do | ||
| + | if (string.find(line, "^&&[&%a%d]+&&$") ~= nil) | ||
| + | then ruler = string.gsub(line, "&&", " "); | ||
| + | end | ||
| + | end | ||
| + | print(ruler); | ||
| + | |{{{data|CHClNOPS}}} | ||
Revision as of 23:47, 13 May 2009
No 'ION INFO' line in the form &&(formula)&&(formula)&&...&&
| MassBank/Matrix | 64 CHClONSP |
| 64 CHClONSP |
|
{{#lua:
local fgmt = "";
local ruler;
for line in stdin:gmatch("[%S ,]+") do
if (string.find(line, "^&&[&%a%d]+&&$") ~= nil)
then ruler = string.gsub(line, "&&", " ");
end
end
print(ruler);
|CHClNOPS