Skip to content

Commit

Permalink
rm redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-fuchs committed Nov 13, 2024
1 parent 38b3181 commit 24243c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virheat/scripts/data_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ def parse_gff3(file, reference):
# create a new dict for each ID
if identifier == "ID" and identifier not in gff3_dict:
attribute_id = val
gff3_dict[gff_values[2]][attribute_id] = {}
gff3_dict[gff_values[2]][val] = {}
# add attributes
if identifier != "ID":
gff3_dict[gff_values[2]][attribute_id][identifier] = val.replace("\n", "")
gff3_dict[gff_values[2]][attribute_id][identifier] = val
# add start, stop and strand
gff3_dict[gff_values[2]][attribute_id]["start"] = int(gff_values[3])
gff3_dict[gff_values[2]][attribute_id]["stop"] = int(gff_values[4])
Expand Down

0 comments on commit 24243c6

Please sign in to comment.