Skip to content

Commit

Permalink
Convert to Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
kcha committed Mar 17, 2022
1 parent 22489cd commit 80b7a4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/find_sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def finalize(self):
finalstart = self.peak
finalend = self.peak + 1
self.name = self.chr + ":" + str(self.start) + "-" + str(self.end)
print "\t".join([self.chr, str(finalstart), str(finalend),
self.name, str(self.score), self.strand])
print("\t".join([self.chr, str(finalstart), str(finalend),
self.name, str(self.score), self.strand]))

def finalize_interval(self):
print "\t".join([self.chr, str(self.start), str(self.end),
self.peak, str(self.read_count), self.strand])
print("\t".join([self.chr, str(self.start), str(self.end),
self.peak, str(self.read_count), self.strand]))

def overlaps(a, b):
'''Determine if two intervals overlap in genomic coordinates'''
Expand Down

0 comments on commit 80b7a4b

Please sign in to comment.