From cb58212379803788c04ca5793baaa760cbbeaa81 Mon Sep 17 00:00:00 2001 From: Cole Lyman Date: Fri, 8 Jul 2022 21:09:49 -0600 Subject: [PATCH] Fix bug when comparing two samples with the same name. (#228) --- CRISPResso2/CRISPRessoCompareCORE.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRISPResso2/CRISPRessoCompareCORE.py b/CRISPResso2/CRISPRessoCompareCORE.py index cf2e287f..e10649f1 100644 --- a/CRISPResso2/CRISPRessoCompareCORE.py +++ b/CRISPResso2/CRISPRessoCompareCORE.py @@ -118,6 +118,9 @@ def main(): if 'running_info' in run_info_2 and 'name' in run_info_2['running_info'] and run_info_2['running_info']['name']: sample_2_name = run_info_2['running_info']['name'] + if sample_1_name == sample_2_name: + sample_2_name += '_2' + get_name_from_folder=lambda x: os.path.basename(os.path.abspath(x)).replace('CRISPResso_on_', '') if not args.name: