Skip to content

Commit

Permalink
Print batch summaries for amplicons with only one sample
Browse files Browse the repository at this point in the history
Previously, batch summaries were only printed for amplicons with more than one sample to save bits. This change produces batch summaries for amplicons with only one sample, and we shift responsibility to the user for purchasing carbon offsets to compensate for the generation and storage of these redundant bits.
  • Loading branch information
kclem committed Sep 9, 2021
1 parent 4306531 commit 80fe12e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRISPResso2/CRISPRessoBatchCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,10 @@ def main():
crispresso2_info['results']['general_plots']['summary_plot_labels'] = {}
crispresso2_info['results']['general_plots']['summary_plot_datas'] = {}

#report for amplicons that appear multiple times
#report for amplicons
for amplicon_index, amplicon_seq in enumerate(all_amplicons):
#only perform comparison if amplicon seen in more than one sample
if amplicon_counts[amplicon_seq] < 2:
if amplicon_counts[amplicon_seq] < 1:
continue

amplicon_name = amplicon_names[amplicon_seq]
Expand Down

0 comments on commit 80fe12e

Please sign in to comment.