Skip to content

Commit

Permalink
fixed wrong variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
fidelram committed Oct 4, 2017
1 parent a7861f8 commit bed6b4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hicexplorer/readBed.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,17 @@ def get_bed_interval(self, bed_line):
"""

line_data = bed_line.strip().split("\t")
if self.file_handle == 'bed12':
if self.file_type == 'bed12':
assert len(line_data) == 12, "File type detected is bed12 but line {}: {} does " \
"not have 12 fields.".format(self.line_number, bed_line)

elif self.file_handle == 'bed3':
elif self.file_type == 'bed3':
assert len(line_data) == 3, "File type detected is bed3 but line {}: {} does " \
"not have 3 fields.".format(self.line_number, bed_line)

elif self.file_handle == 'bed6':
elif self.file_type == 'bed6':
assert len(line_data) == 6, "File type detected is bed6 but line {}: {} does " \
"not have 3 fields.".format(self.line_number, bed_line)
"not have 6 fields.".format(self.line_number, bed_line)
line_values = []
for idx, r in enumerate(line_data):
# first field is always chromosome/contig name
Expand Down

0 comments on commit bed6b4b

Please sign in to comment.