@@ -28,8 +28,8 @@ def test_hicAggregateContacts():
28
28
29
29
outfile_aggregate_plots = NamedTemporaryFile (suffix = '.png' , prefix = 'hicaggregate_test_' , delete = False )
30
30
31
- args = "--matrix {root}/Li_et_al_2015.cool --BED {root}/hicAggregateContacts/test_regions.bed " \
32
- "--outFileName {out_agg} --numberOfBins 30 --range 50000:900000" .\
31
+ args = "--matrix {root}/Li_et_al_2015.h5 --BED {root}/hicAggregateContacts/test_regions.bed " \
32
+ "--outFileName {out_agg} --numberOfBins 30 --range 50000:900000 --disable_bbox_tight " .\
33
33
format (root = ROOT , out_agg = outfile_aggregate_plots .name )
34
34
35
35
test_image_agg = ROOT + 'hicAggregateContacts/master_aggregate.png'
@@ -42,16 +42,36 @@ def test_hicAggregateContacts():
42
42
os .remove (outfile_aggregate_plots .name )
43
43
44
44
45
+ @pytest .mark .skipif (MID_MEMORY > memory ,
46
+ reason = "Travis has too less memory to run it." )
47
+ def test_hicAggregateContacts_cooler ():
48
+
49
+ outfile_aggregate_plots = NamedTemporaryFile (suffix = '.png' , prefix = 'hicaggregate_test_' , delete = False )
50
+
51
+ args = "--matrix {root}/Li_et_al_2015.cool --BED {root}/hicAggregateContacts/test_regions.bed " \
52
+ "--outFileName {out_agg} --numberOfBins 30 --range 50000:900000 --disable_bbox_tight " .\
53
+ format (root = ROOT , out_agg = outfile_aggregate_plots .name )
54
+
55
+ test_image_agg = ROOT + 'hicAggregateContacts/master_aggregate_cool.png'
56
+
57
+ hicexplorer .hicAggregateContacts .main (args .split ())
58
+
59
+ res = compare_images (test_image_agg , outfile_aggregate_plots .name , tolerance )
60
+ assert res is None , res
61
+
62
+ os .remove (outfile_aggregate_plots .name )
63
+
64
+
45
65
@pytest .mark .skipif (MID_MEMORY > memory ,
46
66
reason = "Travis has too less memory to run it." )
47
67
def test_hicAggregateContacts_clustering ():
48
68
49
69
outfile_aggregate_plots = NamedTemporaryFile (suffix = '.png' , prefix = 'hicaggregate_test_' , delete = False )
50
70
outfile_heatmaps = NamedTemporaryFile (suffix = '.png' , prefix = 'hicaggregate_heatmap_' , delete = False )
51
71
52
- args = "--matrix {root}/Li_et_al_2015.cool --BED {root}/hicAggregateContacts/test_regions.bed " \
72
+ args = "--matrix {root}/Li_et_al_2015.h5 --BED {root}/hicAggregateContacts/test_regions.bed " \
53
73
"--outFileName {out_agg} --numberOfBins 30 --range 50000:900000 --hclust 4 " \
54
- "--diagnosticHeatmapFile {out_heat} --howToCluster diagonal " \
74
+ "--diagnosticHeatmapFile {out_heat} --howToCluster diagonal --disable_bbox_tight " \
55
75
"--BED2 {root}/hicAggregateContacts/test_regions.bed" .format (root = ROOT , out_agg = outfile_aggregate_plots .name ,
56
76
out_heat = outfile_heatmaps .name )
57
77
@@ -76,9 +96,9 @@ def test_hicAggregateContacts_3d():
76
96
77
97
outfile_aggregate_3d = NamedTemporaryFile (suffix = '.png' , prefix = 'hicaggregate_test_3d' , delete = False )
78
98
79
- args = "--matrix {root}/Li_et_al_2015.cool --BED {root}/hicAggregateContacts/test_regions.bed " \
99
+ args = "--matrix {root}/Li_et_al_2015.h5 --BED {root}/hicAggregateContacts/test_regions.bed " \
80
100
"--outFileName {out_agg} --numberOfBins 30 --range 50000:900000 --hclust 2 " \
81
- "--plotType 3d " \
101
+ "--plotType 3d --disable_bbox_tight " \
82
102
"--BED2 {root}/hicAggregateContacts/test_regions.bed" .format (root = ROOT , out_agg = outfile_aggregate_3d .name )
83
103
84
104
test_image_agg_3d = ROOT + 'hicAggregateContacts/master_aggregate_3d.png'
0 commit comments