Sandbox4

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
{{#def:list|{{#SearchLine:FL63|Reference}}}}
+
{{#def:stat|
 
+
 
{{#lua:
 
{{#lua:
 
   local T = {}
 
   local T = {}
Line 9: Line 8:
 
   for k,v in pairs(T) do
 
   for k,v in pairs(T) do
 
     total = total + v
 
     total = total + v
     print(k.."\t"..v)
+
     print(k.." "..v)
 +
  end
 +
  print(total)
 +
|{{#SearchLine:FL63|Reference}} }}
 +
}}
 +
 
 +
{{#lua:
 +
  local T = {}
 +
  for family, num in stdin:gmatch("([%a]+) ([%d]+)") do
 +
    if (T[family] == null) then T[family] = num else T[family] = T[family] + num end
 +
  end
 +
  total = 0
 +
  for k,v in pairs(T) do
 +
    total = total + v
 +
    print(k.." "..v)
 
   end
 
   end
 
   print(total)
 
   print(total)
|{{#var:list}} }}
+
| {{#repeat:Stats/Family/GetFamilyName|1|{{#var:stat}} }}
 +
}}

Revision as of 04:17, 10 December 2009


Orchidaceae 1 Theaceae 30 Davalliaceae 13 Rosaceae 23 Rhizophoraceae 11 Saxifragaceae 5 Ephedraceae 2 Dryopteridaceae 1 Amaryllidaceae 1 Ruscaceae 1 Fabaceae 106 Rhamnaceae 2 Ginkgoaceae 6 Schisandraceae 4 Pandaceae 4 Myricaceae 5 Vitaceae 8 Celastraceae 16 Gleicheniaceae 3 Ochnaceae 2 Fagaceae 8 Polypodiaceae 12 Myristicaceae 4 Dennstaedtiaceae 1 Polygonaceae 19 Daphniphyllaceae 1 Poaceae 2 Rubiaceae 10 Malpighiaceae 1 Phyllanthaceae 1 Myrtaceae 8 Salicaceae 4 Elaeagnaceae 2 Hamamelidaceae 3 Ulmaceae 4 Cupressaceae 3 Cochlospermaceae 2 Ericaceae 6 Asteraceae 4 Euphorbiaceae 8 Olacaceae 2 Crassulaceae 4 Meliaceae 1 Apocynaceae 4 Campanulaceae 1 Cistaceae 16 Aizoaceae 1 Altingiaceae 2 Podocarpaceae 15 Actinidiaceae 2 Erythroxylaceae 1 Malvaceae 3 Pinaceae 4 Lauraceae 29 Brassicaceae 3 Arecaceae 9 Cunoniaceae 3 Symplocaceae 1 Rhodomelaceae 1 Moraceae 2 Nothofagaceae 1 Betulaceae 2 Sapindaceae 1 455

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox