From c78024dedf5fc5f1cdbbb4722963344249352188 Mon Sep 17 00:00:00 2001
From: s181385 <spencer.barnes@utsouthwestern.edu>
Date: Thu, 6 Aug 2020 12:49:26 -0500
Subject: [PATCH] update peak annotation pytest

---
 workflow/tests/test_annotate_peaks.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/workflow/tests/test_annotate_peaks.py b/workflow/tests/test_annotate_peaks.py
index 0a6bf8f..784213b 100644
--- a/workflow/tests/test_annotate_peaks.py
+++ b/workflow/tests/test_annotate_peaks.py
@@ -25,8 +25,10 @@ def test_annotation_singleend():
     annotation_file = test_output_path + 'ENCSR238SGC.chipseeker_annotation.tsv'
     assert os.path.exists(annotation_file)
     assert utils.count_lines(annotation_file) >= 149284
-    df = pd.read_csv(annotation_file, sep = "\t")
-    assert df['symbol'].notna().all()
+    df = pd.read_csv(annotation_file, sep = "\t", header = 0)
+    print(df.head())
+    #assert df['symbol'].notna().all()
+    assert not(df['symbol'].isnull().values.any())
 
 
 @pytest.mark.pairedend
@@ -44,5 +46,7 @@ def test_annotation_pairedend():
     annotation_file = test_output_path + 'ENCSR729LGA.chipseeker_annotation.tsv'
     assert os.path.exists(annotation_file)
     assert utils.count_lines(annotation_file) >= 25367
-    df = pd.read_csv(annotation_file, sep = "\t")
-    assert df['symbol'].notna().all()
+    df = pd.read_csv(annotation_file, sep = "\t", header = 0)
+    print(df.head())
+    #assert df['symbol'].notna().all()
+    assert not(df['symbol'].isnull().values.any()) 
-- 
GitLab