Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fidelram committed Oct 7, 2016
2 parents b507198 + 750bc0f commit e30c4c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hicexplorer/trackPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,9 @@ def plot(self, ax, label_ax, chrom_region, start_region, end_region):
score_list = []
pos_list = []

if chrom_region not in self.interval_tree.keys():
chrom_region = change_chrom_names(chrom_region)

for region in self.interval_tree[chrom_region].find(start_region - 10000,
end_region + 10000):
score_list.append(float(region.value[0]))
Expand Down Expand Up @@ -1623,6 +1626,8 @@ def plot(self, ax, label_ax, chrom_region, region_start, region_end):
max_diameter = 0
count = 0

if chrom_region not in self.interval_tree.keys():
chrom_region = change_chrom_names(chrom_region)
arcs_in_region = self.interval_tree[chrom_region].find(region_start, region_end)

for idx, interval in enumerate(arcs_in_region):
Expand Down

0 comments on commit e30c4c1

Please sign in to comment.