From 83ca8c091732e71c77010f7c8f68f4f96d2cf2ea Mon Sep 17 00:00:00 2001 From: Venkat Malladi <venkat.malladi@utsouthwestern.edu> Date: Fri, 17 Nov 2017 22:36:52 -0600 Subject: [PATCH] Add in test peak calling step. --- workflow/tests/test_call_peaks_macs.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 workflow/tests/test_call_peaks_macs.py diff --git a/workflow/tests/test_call_peaks_macs.py b/workflow/tests/test_call_peaks_macs.py new file mode 100644 index 0000000..ebc8bb1 --- /dev/null +++ b/workflow/tests/test_call_peaks_macs.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python3 + +import pytest +import pandas as pd +from io import StringIO +import os +import utils +import call_peaks_macs + +test_output_path = os.path.dirname(os.path.abspath(__file__)) + \ + '/../output/callPeaksMACS/' + + +def test_call_peaks_macs_singleend(): + assert os.path.exists(os.path.join(test_output_path, 'ENCLB144FDT.fc_signal.bw')) + assert os.path.exists(os.path.join(test_output_path, 'ENCLB144FDT.pvalue_signal.bw')) + peak_file = test_output_path + 'ENCLB144FDT_peaks.narrowPeak' + assert utils.count_lines(peak_file) == '210349' + + +def test_call_peaks_macs_pairedend(): + # Do the same thing for paired end data + pass -- GitLab