Skip to content

Commit

Permalink
Modified rsem-gff3-to-gtf so that it works for both python2 and python3
Browse files Browse the repository at this point in the history
  • Loading branch information
bli25 committed Jun 27, 2018
1 parent 48d3114 commit 08c0340
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rsem-gff3-to-gtf
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ class Transcript:
self.index = 0
return self

def next(self):
if self.index == len(self.results):
raise StopIteration
interval = self.results[self.index]
self.index += 1
return interval

def __next__(self):
if self.index == len(self.results):
raise StopIteration
Expand Down

0 comments on commit 08c0340

Please sign in to comment.