AtMet:Annotation/GC/Kusano07/Col0-1/View

From Metabolomics.JP
< AtMet:Annotation/GC/Kusano07/Col0-1(Difference between revisions)
Jump to: navigation, search
(Created page with "{| class="wikitable" {{#replace: {{#lua: total = 0 count = 0 Val = {} for value in stdin:gmatch("&&[A-Za-z0-9/]+Col0%-1([0-9.]+)") do count = count + 1 total =...")
 
m
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
{| class="wikitable"
+
{| class="wikitable sortable"
 +
|-style="font-size:8pt"
 +
{{#replace:
 +
{{#lua:
 +
  total = 0
 +
  count =0
 +
  output=""
 +
  for RI,abbrev,name in stdin:gmatch("&&[A-Za-z0-9/]+Header([^\t]+).([^\t]+).([^\n]+)") do
 +
    output = output .. " &width=30& " .. RI .. "\n" .. name .."\n"
 +
  end
 +
  print(output)
 +
|{{#SearchLineReg:.*|PSC|Annotation/GC/Kusano07/Header}}
 +
}}
 +
|&|{{#bar:}}}}
 +
|-
 
{{#replace:
 
{{#replace:
 
{{#lua:
 
{{#lua:
Line 15: Line 29:
 
     var = var + (value - avg) * (value - avg)
 
     var = var + (value - avg) * (value - avg)
 
   end
 
   end
   var = var / count
+
   var = math.sqrt(var / count)
 +
  print("avg " .. avg)
 +
  print("var " .. var)
 
   output = ""
 
   output = ""
 
   for key, value in pairs(Val) do
 
   for key, value in pairs(Val) do
     output = output .. "&-\n&" .. key .. "\n&"
+
     if (value > avg + 2*var) then
     if (value > avg + var) then
+
      output = output .. '&style="background-color:#faa"'
       output = output .. "background=#aff&"
+
    elseif (value > avg + var) then
     else
+
      output = output .. '&style="background-color:#fdd"'
       output = output .. "&"
+
     elseif (value < avg - var) then
 +
       output = output .. '&style="background-color:#ddf"'
 +
     elseif (value < avg - 2*var) then
 +
       output = output .. '&style="background-color:#aaf"'
 
     end
 
     end
     output = output .. value .. "\n"
+
     output = output .. "&" .. value .. "\n"
 
   end
 
   end
 
   print(output)
 
   print(output)

Latest revision as of 13:35, 17 January 2013

avg -nan var -nan
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox