Skip to content

Commit

Permalink
Merge pull request #91 from edilytics/cole/fix-compare-divide-by-zero
Browse files Browse the repository at this point in the history
Fix Compare divide by zero
  • Loading branch information
kclem authored Aug 1, 2024
2 parents 653204b + fbc30a5 commit f43979d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRISPResso2/CRISPRessoCompareCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def get_plot_title_with_ref_name(plotTitle, refName):
sig_counts = {} # number of bp significantly modified (bonferonni corrected fisher pvalue)
sig_counts_quant_window = {}
percent_complete_start, percent_complete_end = 10, 90
percent_complete_step = (percent_complete_end - percent_complete_start) / len(amplicon_names_in_both)
if amplicon_names_in_both:
percent_complete_step = (percent_complete_end - percent_complete_start) / len(amplicon_names_in_both)
for amplicon_name in amplicon_names_in_both:
percent_complete = percent_complete_start + percent_complete_step * amplicon_names_in_both.index(amplicon_name)
info('Loading data for amplicon %s' % amplicon_name, {'percent_complete': percent_complete})
Expand Down

0 comments on commit f43979d

Please sign in to comment.