Skip to content

Commit

Permalink
Update gap_assessment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cimendes committed Aug 11, 2022
1 parent 5743f23 commit ac99117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/gap_assessment.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_gaps(paf_file, ref_name, ref_len):
covered_bases.add(int(base-(2*ref_len)))

covered_bases = sorted(list(covered_bases))
gaps = [[s, e]for s, e in zip(covered_bases, covered_bases[1:]) if s+1 < e] # get list of gap sizes coords
gaps = [[s, e] for s, e in zip(covered_bases, covered_bases[1:]) if s+1 < e] # get list of gap sizes coords
gap_sizes = [coord[1]-coord[0]-1 for coord in gaps] # get list of gap sizes
return gaps, gap_sizes

Expand Down

0 comments on commit ac99117

Please sign in to comment.