|
24 | 24 |
|
25 | 25 | import java.util.List; |
26 | 26 |
|
27 | | -import org.apache.commons.math3.analysis.interpolation.LinearInterpolator; |
28 | | -import org.apache.commons.math3.analysis.polynomials.PolynomialSplineFunction; |
29 | | -import org.apache.commons.math3.exception.OutOfRangeException; |
30 | | - |
31 | 27 | import cern.colt.function.IntIntDoubleFunction; |
32 | 28 | import cern.colt.list.DoubleArrayList; |
33 | 29 | import cern.colt.list.IntArrayList; |
|
36 | 32 | import cern.colt.matrix.impl.DenseDoubleMatrix1D; |
37 | 33 | import cern.colt.matrix.impl.DenseDoubleMatrix2D; |
38 | 34 | import cern.colt.matrix.linalg.Algebra; |
39 | | -import cern.jet.stat.Descriptive; |
40 | | -import ubic.basecode.dataStructure.matrix.DenseDoubleMatrix; |
41 | 35 | import ubic.basecode.dataStructure.matrix.DoubleMatrix; |
42 | 36 | import ubic.basecode.math.DescriptiveWithMissing; |
43 | 37 | import ubic.basecode.math.MatrixRowStats; |
44 | | -import ubic.basecode.math.MatrixStats; |
45 | 38 | import ubic.basecode.math.Smooth; |
46 | 39 | import ubic.basecode.math.linalg.QRDecomposition; |
47 | 40 |
|
@@ -226,6 +219,7 @@ private void voom(DoubleMatrix2D designMatrix) { |
226 | 219 | voomXY.viewColumn(0).assign(sx); |
227 | 220 | voomXY.viewColumn(1).assign(sy); |
228 | 221 | DoubleMatrix2D fit = Smooth.loessFit(voomXY); |
| 222 | + this.meanVariance = voomXY; |
229 | 223 | this.loess = fit; |
230 | 224 |
|
231 | 225 | // quarterroot fitted counts |
@@ -255,7 +249,6 @@ private void voom(DoubleMatrix2D designMatrix) { |
255 | 249 | fittedValues = solver.mult(coeff.viewDice(), A.viewDice()); |
256 | 250 | } |
257 | 251 |
|
258 | | - |
259 | 252 | // back-compute the values we want |
260 | 253 | // fitted.cpm <- 2^fitted.values |
261 | 254 | // fitted.count <- 1e-6 * t(t(fitted.cpm)*(lib.size+1)) |
|
0 commit comments