def test_average_regions_plot_log(): outfile = NamedTemporaryFile(suffix='.png', prefix='average_region_log', delete=False) matrix = ROOT + 'hicAverageRegions/result_range_100000.npz' args = "--matrix {} -o {} --log --colorMap RdYlBu_r".format(matrix, outfile.name).split() hicPlotAverageRegions.main(args) res = compare_images(ROOT + '/hicPlotAverageRegions/defaults_log.png', outfile.name, tol=50) assert res is None, res os.remove(outfile.name)
def test_average_regions_plot_log_vmin_vmax_colormap(): outfile = NamedTemporaryFile(suffix='.png', prefix='average_region_log1p', delete=False) matrix = ROOT + 'hicAverageRegions/result_range_100000.npz' args = "--matrix {} -o {} --vMax 20 --vMin 10 --colorMap plasma".format(matrix, outfile.name).split() hicPlotAverageRegions.main(args) res = compare_images(ROOT + '/hicPlotAverageRegions/defaults_log_vmin_vmax.png', outfile.name, tol=40) assert res is None, res os.remove(outfile.name)