From a79a5aac4868fe67a8191386c2a9bf5e662a7ffc Mon Sep 17 00:00:00 2001 From: Venkat Malladi <venkat.malladi@utsouthwestern.edu> Date: Fri, 20 Mar 2020 12:15:40 -0500 Subject: [PATCH] Unit test other functions. --- workflow/tests/plot_profile.bats | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/workflow/tests/plot_profile.bats b/workflow/tests/plot_profile.bats index 8c435b7..229a0f1 100644 --- a/workflow/tests/plot_profile.bats +++ b/workflow/tests/plot_profile.bats @@ -6,3 +6,26 @@ profile_script="./workflow/scripts/plot_profile.sh" source ${profile_script} run check_tools } + +@test "Test deeptools present" { + source ${profile_script} + run check_tools +} + +@test "Test deeptools computeMatrix" { + source ${profile_script} + run compute_matrix test_data/ENCSR238SGC_pooled.fc_signal.bw /project/shared/bicf_workflow_ref/mouse/GRCm38/gencode.vM20.annotation.gtf + FILE=computeMatrix.gz + if [[ -f "$FILE" ]]; then + echo "$FILE exist" + fi +} + +@test "Test deeptools plotProfile" { + source ${profile_script} + run plot_profile computeMatrix.gz + FILE=plotProfile.png + if [[ -f "$FILE" ]]; then + echo "$FILE exist" + fi +} -- GitLab