Skip to content

Commit ed3a24d

Browse files
authored
fixed bed strand if none provided (#9)
1 parent 7247533 commit ed3a24d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bamdash/scripts/data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ def bed_to_dict(bed_file, coverage_df, ref, min_cov):
269269
bed_dict["bed annotations"][f"{start} {stop}"] = {}
270270
bed_dict["bed annotations"][f"{start} {stop}"]["start"] = start
271271
bed_dict["bed annotations"][f"{start} {stop}"]["stop"] = stop
272+
# always add strand dummy information in case its not in bed file
273+
bed_dict["bed annotations"][f"{start} {stop}"]["strand"] = "NA"
272274
# check for additional info
273275
if len(line) > 3:
274276
for element, classifier in zip(line[3:], possible_classifiers):

0 commit comments

Comments
 (0)