diff --git a/big_scape/genbank/bgc_record.py b/big_scape/genbank/bgc_record.py index 3a676e0b..9cf99981 100644 --- a/big_scape/genbank/bgc_record.py +++ b/big_scape/genbank/bgc_record.py @@ -93,7 +93,8 @@ def get_cds(self, return_all=False, reverse=False) -> Generator[CDS, None, None] if return_all: # TODO: I don't like this solution. maybe go back to the more difficult one if reverse: - return reversed(self.parent_gbk.genes) + yield from reversed(self.parent_gbk.genes) + return yield from self.parent_gbk.genes return