Template:MassBank/Matrix

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
m
Line 52: Line 52:
 
     else  
 
     else  
 
       ---register fragments---
 
       ---register fragments---
       head, tail = string.match(line, "^(["..FORMULA_CHAR.."]+) *: *(["..FORMULA_CHAR.." ]+)$");
+
       head, tail = string.match(line, "^(["..FORMULA_CHAR.."]+) *: *(["..FORMULA_CHAR.." ]+)$")
 
       if (head ~= nil and tail ~= nil) then
 
       if (head ~= nil and tail ~= nil) then
 
         y = {};
 
         y = {};
Line 138: Line 138:
 
{{#lua:
 
{{#lua:
 
   ---find and print comments---
 
   ---find and print comments---
 +
  FORMULA_CHAR = "CHNOPSl0-9";
 
   for line in stdin:gmatch("[%S ,]+") do
 
   for line in stdin:gmatch("[%S ,]+") do
 
     head, tail = string.match(line, "^(["..FORMULA_CHAR.."]+) *: *(["..FORMULA_CHAR.." ]+)$");
 
     head, tail = string.match(line, "^(["..FORMULA_CHAR.."]+) *: *(["..FORMULA_CHAR.." ]+)$");

Revision as of 00:10, 14 May 2009

No 'ION INFO' line in the form &&(formula)&&(formula)&&...&&

MassBank/Matrix 64
CHClONSP
64
CHClONSP




Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox