Volatile:MetaboliteDistribution
From Metabolomics.JP
(Difference between revisions)
m |
|||
Line 13: | Line 13: | ||
|{{#SearchLine:{{{1|FL63}}}|Reference}} }} | |{{#SearchLine:{{{1|FL63}}}|Reference}} }} | ||
}} | }} | ||
− | + | ||
+ | {| | ||
+ | |- | ||
+ | | | ||
+ | {{#graph:pie|size=400x200;margin=0,0,0,0;title=Top 5 Families for class {{{1}}};legend=0.65x0.45;label=; | ||
+ | {{#lua: | ||
+ | T = {} | ||
+ | total = 0 | ||
+ | tfam = 0 | ||
+ | for family, num in stdin:gmatch("([%a]+) ([%d]+)") do | ||
+ | total = total + num | ||
+ | if (T[family] == null) then T[family] = tonumber(num) tfam = tfam + 1 else T[family] = T[family] + num end | ||
+ | end | ||
+ | S = {} | ||
+ | I = {} | ||
+ | for k,v in pairs(T) do | ||
+ | if (S[v] == null) then S[v] = { k } table.insert(I,v) else table.insert(S[v], k) end | ||
+ | end | ||
+ | table.sort(I) | ||
+ | for i=table.getn(I), math.max(table.getn(I)-4,1),-1 do | ||
+ | T = S[I[i]] | ||
+ | print(table.concat(T," ").."="..I[i]..";") | ||
+ | total=total-I[i] | ||
+ | end | ||
+ | print("others="..total) | ||
+ | | {{#repeat:Stats/Family/GetFamilyName|1|{{#var:stat}} }} | ||
+ | }} | ||
+ | }} | ||
+ | |width="30%"| The information on this page is automatically generated. | ||
+ | |} | ||
+ | |||
==Family Distribution== | ==Family Distribution== | ||
{{#lua: | {{#lua: |
Revision as of 08:25, 11 December 2009
|
The information on this page is automatically generated. |