diff --git a/rsem-gff3-to-gtf b/rsem-gff3-to-gtf index d544004..ce6e1fd 100755 --- a/rsem-gff3-to-gtf +++ b/rsem-gff3-to-gtf @@ -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