Skip to content

Commit

Permalink
fixed bed strand if none provided (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-fuchs committed Nov 3, 2023
1 parent 7247533 commit ed3a24d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bamdash/scripts/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ def bed_to_dict(bed_file, coverage_df, ref, min_cov):
bed_dict["bed annotations"][f"{start} {stop}"] = {}
bed_dict["bed annotations"][f"{start} {stop}"]["start"] = start
bed_dict["bed annotations"][f"{start} {stop}"]["stop"] = stop
# always add strand dummy information in case its not in bed file
bed_dict["bed annotations"][f"{start} {stop}"]["strand"] = "NA"
# check for additional info
if len(line) > 3:
for element, classifier in zip(line[3:], possible_classifiers):
Expand Down

0 comments on commit ed3a24d

Please sign in to comment.