This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
how_to:studio:calculator [2015/06/29 16:26] 132.168.72.206 |
how_to:studio:calculator [2015/06/30 10:00] (current) 132.168.72.237 |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Calculator ====== | ====== Calculator ====== | ||
- | Calculator let you write python scripts to manipulate freely viewed data. | + | Calculator lets you write python scripts to manipulate freely viewed data. |
1) To open the calculator, click on the calculator icon (not available on all views for the moment) | 1) To open the calculator, click on the calculator icon (not available on all views for the moment) | ||
Line 74: | Line 74: | ||
t.addColumn(colDiff) | t.addColumn(colDiff) | ||
t.addColumn(colMean) | t.addColumn(colMean) | ||
+ | </code> | ||
+ | |||
+ | === Script to perform a perform a pvalue and a ttd on a XIC quantitation table === | ||
+ | |||
+ | <code> | ||
+ | #### Algorithm to perform a pvalue and a ttd on abundances column of a XIC quantitation #### | ||
+ | t = Table.get(1) | ||
+ | |||
+ | pvalueCol = Stats.pvalue( (t[2], t[3]), (t[4],t[5]) ) | ||
+ | ttdCol = Stats.ttd( (t[2], t[3]), (t[4],t[5]) ) | ||
+ | |||
+ | pvalueCol.setColumnName("pvalue") | ||
+ | ttdCol.setColumnName("ttd") | ||
+ | |||
+ | t.addColumn(pvalueCol) | ||
+ | t.addColumn(ttdCol) | ||
</code> | </code> | ||