Skip to content

Commit

Permalink
Fix empty ∆FP output
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Piper committed Jan 17, 2016
1 parent 00167d7 commit 84ff434
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.2.3 - 2016-01--17
==================
* BUG: Fix error in ``wellington_bootstrap.py`` which caused no output to be written to disk (thanks to Duy Pham for reporting)

0.2.2 - 2015-12-26
==================
* BUG: Fix error in ``wellington_bootstrap.py``
Expand Down
2 changes: 1 addition & 1 deletion pyDNase/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.2"
__version__ = "0.2.3"
4 changes: 1 addition & 3 deletions pyDNase/scripts/wellington_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def footprints(self, withCutoff = -20, merge = 1):
merged_ranges = []
while len(ranges):
# Find best score
sorted(ranges, key=lambda x: -x[2])
ranges.sort(key=lambda x: -x[2])
# Take the last value
best = ranges.pop()
merged_ranges.append(best)
Expand All @@ -85,8 +85,6 @@ def footprints(self, withCutoff = -20, merge = 1):
if not c <= best[1] <= d:
new_ranges.append([c, d, e, f])
ranges = new_ranges
else:
merged_ranges = ranges
# Creates reads GenomicIntervalSet and adds the footprints to them
for i in merged_ranges:
return_set.append(((i[0] + i[1])/2, i[3]))
Expand Down

0 comments on commit 84ff434

Please sign in to comment.