Class Log2MACalculator

java.lang.Object
net.sf.basedb.util.ma.MACalculator
net.sf.basedb.util.ma.Log2MACalculator

public class Log2MACalculator extends MACalculator
MA calculator for log2-transformed spot intensity values.
Since:
3.2.4
Author:
nicklas
  • Field Details

    • INV_LOG2_10x2

      static final double INV_LOG2_10x2
  • Constructor Details

    • Log2MACalculator

      public Log2MACalculator()
  • Method Details

    • MA

      public double[] MA(double ch1, double ch2)
      M = ch1 - ch2 A = (ch1 + ch2) / (2 * log2(10))
      Overrides:
      MA in class MACalculator
      Returns:
      An array with [0] = M, [1] = A
    • correct

      public double[] correct(double ch1, double ch2, double factor)
      ch1 = old - factor ch2 = old + factor
      Overrides:
      correct in class MACalculator
      Returns:
      An array with [0] = newCh1, [1] = newCh2