Skip to content

Commit

Permalink
fix in summary script for single reference run
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralVerity committed Sep 24, 2024
1 parent 35c312c commit 62dc32d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions denv_pipeline/scripts/make_summary_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def pull_low_coverage_seqs(config, all_coverage, high_coverage):
lst.append(cov)

in_order = sorted(lst, reverse=True)
if len(in_order) > 1: #I'm not sure when it would ever be less than 6, but leaving for now just in case
if len(in_order) > 1:
if in_order[0] > (in_order[1] + 5):
top = [i for i in cov_dict if cov_dict[i]==in_order[0]][0]
else:
Expand All @@ -219,7 +219,7 @@ def pull_low_coverage_seqs(config, all_coverage, high_coverage):
top = "NA"

elif len(in_order) == 1:
top = in_order[0]
top = [i for i in cov_dict if cov_dict[i]==in_order[0]][0]
else:
top = "NA"

Expand Down

0 comments on commit 62dc32d

Please sign in to comment.