Skip to content

Commit

Permalink
added error message if 'region' is missing in gff3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-fuchs committed Nov 17, 2023
1 parent af905a5 commit f397a53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions virheat/scripts/data_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ def get_genome_end(gff3_dict):

genome_end = 0

if "region" not in gff3_dict:
sys.exit("\033[31m\033[1mERROR:\033[0m Region annotation is missing in the gff3!")
for attribute in gff3_dict["region"].keys():
stop = gff3_dict["region"][attribute]["stop"]
if stop > genome_end:
Expand Down

0 comments on commit f397a53

Please sign in to comment.