From a2290b78424b9ff9d1ce7117bbe0fff5df9a2549 Mon Sep 17 00:00:00 2001 From: Christoph Hafemeister Date: Wed, 26 Apr 2023 16:29:38 +0200 Subject: [PATCH] Bugfix: convert keys to list Fixes "AttributeError: 'dict_keys' object has no attribute 'index'" that occurred when using iGenomes GRCh38 Line 92 already wraps exon.keys() in list() - this seems to have been forgotten in line 199. --- bin/gtf2bed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gtf2bed.py b/bin/gtf2bed.py index 5c1ae37..27cd2b0 100755 --- a/bin/gtf2bed.py +++ b/bin/gtf2bed.py @@ -196,7 +196,7 @@ cds[txIter - 1]['end'] = int(end) cdsRank = cds.keys() - exonRank = exon.keys() + exonRank = list(exon.keys()) if len(cdsRank) == 0: if (curStrand == "+") :