From 3631108cca846728e72d3d06d4519ae1b5956f80 Mon Sep 17 00:00:00 2001
From: Venkat Malladi <venkat.malladi@utsouthwestern.edu>
Date: Mon, 7 Jan 2019 13:56:42 -0600
Subject: [PATCH] Fix paired-end tests.

---
 workflow/tests/test_annotate_peaks.py  | 8 ++++----
 workflow/tests/test_call_peaks_macs.py | 2 +-
 workflow/tests/test_diff_peaks.py      | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/workflow/tests/test_annotate_peaks.py b/workflow/tests/test_annotate_peaks.py
index 1381350..0b0d8f1 100644
--- a/workflow/tests/test_annotate_peaks.py
+++ b/workflow/tests/test_annotate_peaks.py
@@ -21,8 +21,8 @@ def test_annotate_peaks_singleend():
 
 @pytest.mark.pairedend
 def test_annotate_peaks_pairedend():
-    assert os.path.exists(os.path.join(test_output_path, 'ENCSR217LRF.chipseeker_pie.pdf'))
-    assert os.path.exists(os.path.join(test_output_path, 'ENCSR217LRF.chipseeker_upsetplot.pdf'))
-    annotation_file = test_output_path + 'ENCSR217LRF.chipseeker_annotation.csv'
+    assert os.path.exists(os.path.join(test_output_path, 'ENCSR217LGA.chipseeker_pie.pdf'))
+    assert os.path.exists(os.path.join(test_output_path, 'ENCSR217LGA.chipseeker_upsetplot.pdf'))
+    annotation_file = test_output_path + 'ENCSR217LGA.chipseeker_annotation.csv'
     assert os.path.exists(annotation_file)
-    assert utils.count_lines(annotation_file) == 25390
+    assert utils.count_lines(annotation_file) == 25391
diff --git a/workflow/tests/test_call_peaks_macs.py b/workflow/tests/test_call_peaks_macs.py
index 71358bc..9b22e9e 100644
--- a/workflow/tests/test_call_peaks_macs.py
+++ b/workflow/tests/test_call_peaks_macs.py
@@ -21,4 +21,4 @@ def test_call_peaks_macs_pairedend():
     assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.fc_signal.bw'))
     assert os.path.exists(os.path.join(test_output_path, 'ENCLB568IYX.pvalue_signal.bw'))
     peak_file = test_output_path + 'ENCLB568IYX_peaks.narrowPeak'
-    assert utils.count_lines(peak_file) == 112652
+    assert utils.count_lines(peak_file) == 138827
diff --git a/workflow/tests/test_diff_peaks.py b/workflow/tests/test_diff_peaks.py
index ad66c4a..1d48b61 100644
--- a/workflow/tests/test_diff_peaks.py
+++ b/workflow/tests/test_diff_peaks.py
@@ -33,7 +33,7 @@ def test_annotate_peaks_pairedend_single_rep():
     assert os.path.exists(os.path.join(test_output_path, 'heatmap.pdf'))
     assert os.path.exists(os.path.join(test_output_path, 'pca.pdf'))
     assert os.path.exists(os.path.join(test_output_path, 'normcount_peaksets.txt'))
-    assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA_vs_ENCSR757EMK_diffbind.bed'))
-    diffbind_file = test_output_path + 'ENCSR729LGA_vs_ENCSR757EMK_diffbind.csv'
+    assert os.path.exists(os.path.join(test_output_path, 'ENCSR757EMK_vs_ENCSR729LGA_diffbind.bed'))
+    diffbind_file = test_output_path + 'ENCSR757EMK_vs_ENCSR729LGA_diffbind.csv'
     assert os.path.exists(diffbind_file)
-    assert utils.count_lines(diffbind_file) == 112652
+    assert utils.count_lines(diffbind_file) == 66201
-- 
GitLab