Skip to content

Commit

Permalink
PEP8 and additional test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 committed Oct 28, 2016
1 parent 982e412 commit c99606a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deeptools/test/test_bigwigCompare_and_multiBigwigSummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_bigwigCompare():
_foo = open(outfile, 'r')
resp = _foo.readlines()
_foo.close()
expected = ['3R\t0\t50\t0.00\n', '3R\t50\t100\t1.00\n', '3R\t100\t150\t2.00\n', '3R\t150\t200\t3.0\n']
expected = ['3R\t0\t50\t0\n', '3R\t50\t100\t1\n', '3R\t100\t150\t2\n', '3R\t150\t200\t3\n']
assert resp == expected, "{} != {}".format(resp, expected)
unlink(outfile)

Expand All @@ -57,7 +57,7 @@ def test_bigwigCompare_skipnas():
_foo = open(outfile, 'r')
resp = _foo.readlines()
_foo.close()
expected = ['3R\t100\t150\t2.00\n', '3R\t150\t200\t3.0\n']
expected = ['3R\t100\t150\t2\n', '3R\t150\t200\t3\n']
assert resp == expected, "{} != {}".format(resp, expected)
unlink(outfile)

Expand Down
4 changes: 2 additions & 2 deletions deeptools/writeBedGraph_bam_and_bw.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def writeBedGraph_worker(
if not np.isnan(previousValue):
_file.write(
toBytes("{0}\t{1}\t{2}\t{3:g}\n".format(chrom, writeStart,
writeEnd, previousValue)))
writeEnd, previousValue)))
previousValue = value
writeStart = writeEnd
writeEnd = min(writeStart + tileSize, end)
Expand All @@ -139,7 +139,7 @@ def writeBedGraph_worker(
if previousValue and writeStart != end and \
not np.isnan(previousValue):
_file.write(toBytes("{0}\t{1}\t{2}\t{3:g}\n".format(chrom, writeStart,
end, previousValue)))
end, previousValue)))

tempFileName = _file.name
_file.close()
Expand Down

0 comments on commit c99606a

Please sign in to comment.