DataMatrixIO { public static DataMatrix loadOffHeapDataMatrix(Path ppiMapPath) { logger.debug("Loading off-heap PPI data matrix from map..."); return OffHeapDataMatrix.load(ppiMapPath); } private  DataMatrixIO(); static void convertToMap(String matrixFileZip, String entrezId2indexFileZip, Path outfileName); static DataMatrix loadOffHeapDataMatrix(Path ppiMapPath); static DataMatrix loadInMemoryDataMatrix(Path ppiMapPath); static DataMatrix loadInMemoryDataMatrixFromFile(String matrixFileZip, String entrezId2indexFileZip, boolean shouldUseExponent); static void writeMatrix(DataMatrix dataMatrix, String file, boolean doLogarithm); static void writeMatrix(FloatMatrix matrix, String file, Map<String, Integer> id2index, boolean doLogarithm); static void writeMatrixInclHeaderAndRowIDs(DataMatrix dataMatrix, String file, boolean doLogarithm); static void writeMatrixInclHeaderAndRowIDs(FloatMatrix matrix, String file, Map<String, Integer> id2index, boolean doLogarithm);  }
@Test public void loadDataMatrixFromMap() { Path mapPath = Paths.get("src/test/resources/prioritisers/test_ppi_matrix.mv"); DataMatrix dataMatrix = DataMatrixIO.loadOffHeapDataMatrix(mapPath); assertThat(dataMatrix.numRows(), equalTo(10)); assertThat(dataMatrix.numColumns(), equalTo(10)); }