Skip to content

Commit

Permalink
Update CRISPRessoPooledCORE.py
Browse files Browse the repository at this point in the history
Fix bug in error reporting if duplicate names are present
  • Loading branch information
kclem committed Apr 22, 2024
1 parent 20903c1 commit 9b9b1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRISPResso2/CRISPRessoPooledCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def main():
raise Exception('The amplicon sequences must be distinct! (Duplicated entries: ' + str(duplicated_entries.values) + ')')

if not len(df_template.amplicon_name.unique())==df_template.shape[0]:
duplicated_entries = df_template.amplicon_name[df_template.Name.duplicated()]
duplicated_entries = df_template.amplicon_name[df_template.amplicon_name.duplicated()]
raise Exception('The amplicon names must be distinct! (Duplicated names: ' + str(duplicated_entries.values) + ')')

df_template=df_template.set_index('amplicon_name')
Expand Down

0 comments on commit 9b9b1e7

Please sign in to comment.