Skip to content

Commit

Permalink
fixed issue #669
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Gabriel committed Nov 14, 2023
1 parent 866c0b4 commit 9209966
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/get_gc_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,11 @@ def print_gc_range(content_dic):
all_slices += g
if not numpy_imported:
all_slices.sort()
gc_range = []
for p in config['percentiles']:
gc_range.append(get_percentile(all_slices, p))
print(f'{p}-percentile:{config["delimiter"]}{gc_range[-1]}')
if all_slices:
gc_range = []
for p in config['percentiles']:
gc_range.append(get_percentile(all_slices, p))
print(f'{p}-percentile:{config["delimiter"]}{gc_range[-1]}')

def get_percentile(array, q):
if numpy_imported:
Expand Down

0 comments on commit 9209966

Please sign in to comment.