Skip to content

Commit

Permalink
clean redundant error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpilz committed Nov 14, 2024
1 parent 20ac7d3 commit 842c3aa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions freyja/read_analysis_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,10 @@ def process_covariants(input_bam, min_site, max_site, ref_fasta, gff_file,
# Update coverage ranges
if coverage_start is None or start < coverage_start:
coverage_start = start
try:
if coverage_end is None or end > coverage_end:
coverage_end = end
except TypeError as e:
print(e)

if coverage_end is None or end > coverage_end:
coverage_end = end

cigar = re.findall(r'(\d+)([A-Z]{1})', x.cigarstring)
if 'I' in x.cigarstring:
i = 0
Expand Down

0 comments on commit 842c3aa

Please sign in to comment.