Skip to content

Commit

Permalink
if there is no additional information provided by the original input …
Browse files Browse the repository at this point in the history
…bed file. the point will be printed to the last column in the output bed file
  • Loading branch information
anastasiia committed Jan 4, 2019
1 parent 54723f7 commit e9850e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/1.1_footprint_extraction/footprints_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def make_bed_dictionary(bed_file):
for i in range(3, len(bed_line_array)):
value.append(bed_line_array[i])

if not value: #if there is no bonus information in the original bed file, add a "." to the coulmn in the output bed file
value = ["."]

bed_dictionary[key] = value
else: #this is not a bed file, force exit
logger.info('Error: please make sure the input bed file has a right format, the problem occured on the line ' + bed_line)
Expand Down

0 comments on commit e9850e0

Please sign in to comment.