From 08c0340d7c867695ebb044f4a3b18e9deb84346d Mon Sep 17 00:00:00 2001 From: Bo Li Date: Wed, 27 Jun 2018 14:52:38 -0400 Subject: [PATCH] Modified rsem-gff3-to-gtf so that it works for both python2 and python3 --- rsem-gff3-to-gtf | 7 +++++++ 1 file changed, 7 insertions(+) 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