Template:MassBank/Matrix

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
m
Line 64: Line 64:
 
     local ret = "";
 
     local ret = "";
 
     for i,v in pairs(t1) do
 
     for i,v in pairs(t1) do
       if (v > 1) then ret = ret .. ATOMS[i] .. v;
+
       if (v >= 1) then ret = ret .. ATOMS[i] end
       else if (v == 1) then ret = ret .. ATOMS[i]; end end
+
       if (v > 1) then ret = ret .. v end
 
     end
 
     end
     return ret;
+
     return ret
 
--[[
 
--[[
 
     local c1,h1,cl1,n1,o1,p1,s1=string.match(str1,FORMULA_PAT);
 
     local c1,h1,cl1,n1,o1,p1,s1=string.match(str1,FORMULA_PAT);

Revision as of 23:34, 13 May 2009

No ion information in the form &&(formula)&&(formula)&&...&&

MassBank/Matrix 64
CHClONSP
64
CHClONSP



Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox