Skip to content

Commit

Permalink
Fix bug in CRISPRessoCompare where sample names were not properly set
Browse files Browse the repository at this point in the history
This was a place where it was (partially) missed during the crispresso2_info
object refactoring.
  • Loading branch information
Colelyman authored and kclem committed Jan 11, 2022
1 parent e999079 commit 3b3a741
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CRISPResso2/CRISPRessoCompareCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,15 @@ def main():
sample_1_name = args.sample_1_name
if args.sample_1_name is None:
sample_1_name = "Sample 1"
if 'name' in run_info_1 and run_info_1['running_info']['name'] != '':
if 'running_info' in run_info_1 and 'name' in run_info_1['running_info'] and run_info_1['running_info']['name']:
sample_1_name = run_info_1['running_info']['name']

sample_2_name = args.sample_2_name
if args.sample_2_name is None:
sample_2_name = "Sample 2"
if 'name' in run_info_2 and run_info_2['running_info']['name'] != '':
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']


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 3b3a741

Please sign in to comment.