def test_min_max(self): mat = numpy.array([[1, 2, 3], [4, 5, 6]]) assert calc_min_max(mat) == (1, 6) assert calc_min_max(mat, chunk_size=1) == (1, 6) assert calc_min_max(mat, chunk_size=None) == (1, 6) assert calc_min_max(mat, sample_idx=1) == (2, 5) assert calc_min_max(mat, sample_idx=1, chunk_size=None) == (2, 5)
def histograma_min_max_prueba(): fpath = join(TEST_DATA_DIR, 'performance', 'inca_torvum_all_snps.h5') h5 = VariationsH5(fpath, mode='r') _, _ = calc_min_max(h5['/calls/GT'])