Skip to content

Commit

Permalink
Fix bug when comparing two samples with the same name. (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colelyman authored Jul 9, 2022
1 parent e8a796f commit cb58212
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRISPResso2/CRISPRessoCompareCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cb58212

Please sign in to comment.