From e991c627ad1fdeabd02937d64958f48bc7435c91 Mon Sep 17 00:00:00 2001 From: Venkat Malladi <venkat.malladi@utsouthwestern.edu> Date: Fri, 5 Jan 2018 15:41:54 -0600 Subject: [PATCH] Fix error if only a single replciate control used. --- workflow/scripts/pool_and_psuedoreplicate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/scripts/pool_and_psuedoreplicate.py b/workflow/scripts/pool_and_psuedoreplicate.py index f8334d0..9d8a82f 100644 --- a/workflow/scripts/pool_and_psuedoreplicate.py +++ b/workflow/scripts/pool_and_psuedoreplicate.py @@ -242,7 +242,7 @@ def main(): # Check controls against cutoff_ratio # if so replace with pool_control path_to_pool_control = cwd + '/' + pool_control - if control_df.values.max() > 1.2: + if control_df.values.max() > 1.2 and not single_control: logger.info("Number of reads in controls differ by " + " > factor of %f. Using pooled controls." % (cutoff_ratio)) design_new_df['control_tag_align'] = path_to_pool_control -- GitLab