Skip to content

Commit

Permalink
Fix #574
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 committed Aug 7, 2017
1 parent 99816a9 commit c8b4e20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Symbol colors for `plotPCA` can now be specified. (issue #560)
* `plotFingerprint` always returns the synthetic JSD, even if no `--JSDsample` is specified. (issue #564)
* `plotEnrichment` will only read in annotation files a single time rather than in each thread. This prevents terrible performance when using many tens of millions of BED/GTF regions at the expense of a slight memory increase. (issue #530)
* Fixed a small bug generally affecting `plotFingerprint` where BAM files without an index were processed as bigWig files, resulting in a confusing error message (issue #574). Thanks to Sitanshu Gakkhar for poiting this out!

2.5.3

Expand Down
4 changes: 4 additions & 0 deletions deeptools/countReadsPerBin.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ def run(self, allArgs=None):
for x in self.bamFilesList:
try:
y = bamHandler.openBam(x)
except SystemExit:
sys.exit(sys.exc_info()[1])
except:
y = pyBigWig.open(x)
bamFilesHandlers.append(y)
Expand Down Expand Up @@ -424,6 +426,8 @@ def count_reads_in_region(self, chrom, start, end, bed_regions_list=None):
for fname in self.bamFilesList:
try:
bam_handlers.append(bamHandler.openBam(fname))
except SystemExit:
sys.exit(sys.exc_info()[1])
except:
bam_handlers.append(pyBigWig.open(fname))

Expand Down

0 comments on commit c8b4e20

Please sign in to comment.