ComBat { public DoubleMatrix2D run() throws ComBatException { return this.run( true ); } ComBat( DoubleMatrix<R, C> data, ObjectMatrix<C, String, ?> sampleInfo ); DoubleMatrix2D getDesignMatrix(); void plot( String filePrefix ); DoubleMatrix2D run(); DoubleMatrix2D run( boolean parametric );  }
@Test public final void test3() throws Exception { DoubleMatrixReader f = new DoubleMatrixReader(); DoubleMatrix<String, String> testMatrix = f.read( this.getClass() .getResourceAsStream( "/data/analysis/preprocess/batcheffects/comat.test.data.txt" ) ); StringMatrixReader of = new StringMatrixReader(); StringMatrix<String, String> sampleInfo = of.read( this.getClass() .getResourceAsStream( "/data/analysis/preprocess/batcheffects/combat.test.design.txt" ) ); @SuppressWarnings({ "unchecked", "rawtypes" }) ComBat<String, String> comBat = new ComBat( testMatrix, sampleInfo ); DoubleMatrix2D result = comBat.run(); assertNotNull( result ); }