Template:MassBank/Matrix

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
m
Line 49: Line 49:
 
   local x, y;
 
   local x, y;
 
   for line in stdin:gmatch("[%S ,]+") do
 
   for line in stdin:gmatch("[%S ,]+") do
     if (string.find(line, "=") == nil) then ruler = line;
+
     if (string.find(line, ":") == nil) then ruler = line;
 
     else ---register fragments---
 
     else ---register fragments---
       head, tail = string.match(line, "([CHNO0-9]+) *= *([CHNO0-9 ]+)");
+
       head, tail = string.match(line, "([CHNO0-9]+) *: *([CHNO0-9 ]+)");
 
       y = {};
 
       y = {};
 
       for x in string.gmatch(tail,"[CHNO0-9]+") do
 
       for x in string.gmatch(tail,"[CHNO0-9]+") do

Revision as of 13:01, 12 May 2009

MassBank/Matrix 29
CHO
29
CHO
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox